W3C home > Mailing lists > Public > www-jigsaw@w3.org > July to August 1996

Problem: Client output stream closed

From: Radomir Mladenovic <rade@ban.junis.ni.ac.yu>
Date: Tue, 23 Jul 1996 10:07:40 +0200
Message-ID: <31F4884C.167E@ban.junis.ni.ac.yu>
To: www-jigsaw@w3.org
Anselm Baird-Smith writes:
 > Radomir Mladenovic writes:
 >  > I have a problem with jigsaw on Irix 5.3
 >  > Most of the time jigsaw work great, but sometimes client 
(netscape)
 >  > sends request end wait for reply, and wait...
 >  > Jigsaw prints message in errlog :
 >  > 
 > <c1;client1>: caught ClientException:
[w3c.jigsaw.http.ClientException]
 >  > Client output stream closed.

 > That's normal, and shouldn't appear in the errlog. It's a consequence
 > of the way Jigsaw implements persistent connections.

 >  > When I press Stop button in netscape, jigsaw says:
 >  > 
 >  > <c2;client2>: caught ClientException: 
[w3c.jigsaw.http.ClientException]
 >  > IOError while parsing request: Connection reset by peer
 >  > 
 >  > Does anyone have a similiar problem. Is this a jigsaw, java 
 >  > or configuration problem?

 > Normal again, and shouldn't appear in the errlog too. This shouldn't
 > cause any "other" problems (if it dies, let me know).

I think that I've been missunderstood here. On most of the requests
the jigsaw server responds great. Unfortunately, sometimes it gets false
alarm that client output stream is closed. Netscape Navigator waits
for a reply, and, after aprox. 40 seconds, I get a message box with 
text "Document contains no data"! That can't be normal (persistent
or non persistent connection).

When server is in trace mode, in this case, it reports:

java.io.IOException: Client output stream closed.
        at w3c.jigsaw.http.Reply.flush(Reply.java)
        at w3c.jigsaw.http.Reply.emit(Reply.java)
        at w3c.jigsaw.http.Client.emitReply(Client.java)
        at w3c.jigsaw.http.Client.loop(Client.java)
        at w3c.jigsaw.http.Client.runConnection(Client.java)
        at w3c.jigsaw.http.Client.run(Client.java)
        at java.lang.Thread.run(Thread.java)
w3c.jigsaw.http.ClientException: Client output stream closed.
        at w3c.jigsaw.http.Client.emitReply(Client.java)
        at w3c.jigsaw.http.Client.loop(Client.java)
        at w3c.jigsaw.http.Client.runConnection(Client.java)
        at w3c.jigsaw.http.Client.run(Client.java)
        at java.lang.Thread.run(Thread.java)

If I request same document again, I get correct data. Request refers
to ordinary HTML document, not to my resource class.

I think that jigsaw arhitecture is realy promissing, but sometimes it
has strange behavior. That can be java implementation problem on
Irix (I notice some problems with streams in my classes too). 

If someone of you has the same problem, or use jigsaw or java on Irix, 
please contact me on rade@ban.junis.ni.ac.yu.

Rade.
Received on Tuesday, 23 July 1996 04:29:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:25 GMT