🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #511

Re: streams in applet (another question)

#511
From: Rich Wilkman
Date: Mon, 14 Jul 2003 22:24
46 lines
2064 bytes
The error indicates that the VM used in IE is older than the one you are 
using in JB so it doesn't have the implentations found in the newer 
versions.  Either write 1.1.4 code or use the Plugin to get around this.

-Rich

Alex Tyutyunik wrote:

>Good day, some trouble here...
>
>  private InputStream in;
>  private Socket sock;
>
>      sock = new Socket(_QComputer.get_IPAddress(),26000);
>      in = sock.getInputStream();
>
>Then in another thread i get data from socket:
>
>      while (in.available() != 0) {
>        quote += (char) in.read();
>      }
>
>First run - OK. When i pressed F5(refresh) in IE, i saw in console:
>
>java.io.IOException: Stream closed.
>
> at java.net.PlainSocketImpl.available(Unknown Source)
>
> at java.net.SocketInputStream.available(Unknown Source)
>
> at applet2.Applet2.get_data(Applet2.java:319)
>
> at applet2.Applet2.run(Applet2.java:79)
>
> at java.lang.Thread.run(Unknown Source)
>
>What i have to do?
>Why this my example do not work in IE? In AV - all OK
>
>
>
>
>
>
>  
>
Technical Details
Message-ID: <3F132DAE.40909@formlessvoid.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.rt.ru!news.donbass.net!newsgroups.borland.com!not-for-mail
References: <3f12a9ee@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,fcb4df792b3dbafa
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2003-07-14 15:34:57 PST
Message-ID: <3F132DAE.40909@formlessvoid.com>
Date: Mon, 14 Jul 2003 15:24:46 -0700
From: Rich Wilkman <richw@formlessvoid.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: streams in applet (another question)
References: <3f12a9ee@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 63.249.85.97
X-Trace: newsgroups.borland.com 1058221482 63.249.85.97 (14 Jul 2003 15:24:42 -0700)
Lines: 47
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.rt.ru!news.donbass.net!newsgroups.borland.com!not-for-mail