Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #25980
| From | Sam Takoy <sam.takoy@yahoo.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Closing a stream in an applet causes a crash |
| Date | 2011-01-30 19:04 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <ii4ua5$elc$1@news.eternal-september.org> (permalink) |
Hi,
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?
Thanks in advance!
Sam
Back to comp.lang.java.programmer | Previous | Next | Find similar
Closing a stream in an applet causes a crash Sam Takoy <sam.takoy@yahoo.com> - 2011-01-30 19:04 -0500
csiph-web