Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #25499
| Date | 2011-01-30 19:26 -0500 |
|---|---|
| From | Arne Vajhøj <arne@vajhoej.dk> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Closing a stream in an applet causes a crash |
| References | <ii4ua5$elc$1@news.eternal-september.org> |
| Message-ID | <4d4601ba$0$23757$14726298@news.sunsite.dk> (permalink) |
| Organization | SunSITE.dk - Supporting Open source |
On 30-01-2011 19:04, Sam Takoy wrote: > I have a signed applet that includes the following code: > > URL url = new URL(urlString); > URLConnection urlc = url.openConnection(); > > InputStream is = urlc.getInputStream(); > > > ///// > > is.close(); > > > And everything works perfectly in terms of opening the stream and > reading from it, until I attempt is.close() - then I get the > > java.io.IOException: stream is closed > > exception. Interestingly, this does not happen when I use the same code > from an application rather than a signed applet. What could be going on > here? The only explanation I can think of is that the underlying TCP/IP tries to send a closing to the other end and that send is failing. Arne
Back to comp.lang.java.programmer | Previous | Next | Find similar
Re: Closing a stream in an applet causes a crash Arne Vajhøj <arne@vajhoej.dk> - 2011-01-30 19:26 -0500
csiph-web