Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #25979

Re: Closing a stream in an applet causes a crash

Path csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!news.glorb.com!news-xfer.nntp.sonic.net!posts.news.sonic.net!nnrp0.nntp.sonic.net!not-for-mail
From Kevin McMurtrie <mcmurtrie@pixelmemory.us>
Newsgroups comp.lang.java.programmer
Subject Re: Closing a stream in an applet causes a crash
References <ii4ua5$elc$1@news.eternal-september.org>
MIME-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
User-Agent MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
X-Face #tdH+D1#njA1e^CLB^/(2]&X!c><$I]~!twG8kd3Ny41&5}K7Vyg"?Qs,G<{zMHK5h5@itD <+6=*QG@h3RactCyNsI2qChmy)Bl7)BlQPBND4,`9N|NaHykv%.u"Z\?S5^TZ="q568?wU.Aa"/n9} Ru\Cn'?7P@m.!dc}6Vp{Ua_NjHr\o7w?C^HC"u\'bU&9hI_SMAX|i8)};lfJF-wS~4cL{E8YI"U4$o _<qSZ<w)
Date Mon, 31 Jan 2011 21:52:50 -0800
Lines 37
Message-ID <4d479fb2$0$22116$742ec2ed@news.sonic.net> (permalink)
Organization Sonic.Net
NNTP-Posting-Date 01 Feb 2011 05:52:50 GMT
NNTP-Posting-Host 4a1269c4.news.sonic.net
X-Trace DXC=3ES[N;=`DF^]87AJRe1kT_m4K\QM1CV^P1OYf0H`?;XQ]nj2md6OCbT=i`3mDRBA_ZAni8>YUM44_b5[T06lNLAX
X-Complaints-To abuse@sonic.net
Xref csiph.com comp.lang.java.programmer:25979

Show key headers only | View raw


In article <ii4ua5$elc$1@news.eternal-september.org>,
 Sam Takoy <sam.takoy@yahoo.com> wrote:

> 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

You need to post more to get help.  The InputStream is going to have 
several layers of protocol handlers between you and the socket.  It's 
probable that your use has caused one layer to close the connection but 
another layer is trying to read a trailer.
-- 
I will not see posts or email from Google because I must filter them as spam

Back to comp.lang.java.programmer | Previous | Next | Find similar


Thread

Re: Closing a stream in an applet causes a crash Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2011-01-31 21:52 -0800

csiph-web