You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Hill Karimov <hi...@yahoo.com> on 2003/07/10 11:19:18 UTC

Re: java.net.SocketException: Connection reset by peer: socket write error

Hi

Yeah, I see this exception when I turn between links
so faster, while they are not loaded completely.

ERROR   (2003-07-10) 13:59.57:497   [access]
(/cocoon/api/java/index.html) Thread-15/CocoonServlet:
Internal Cocoon Problem
java.net.SocketException: Connection reset by peer:
socket write error
	at java.net.SocketOutputStream.socketWrite0(Native
Method)
	at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
	at
java.net.SocketOutputStream.write(SocketOutputStream.java:126)
	at
org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:668)
	at
org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:166)
	at
org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:523)
	at
org.apache.coyote.Response.doWrite(Response.java:524)
...
ERROR   (2003-07-10) 13:59.57:497   [access]
(Unknown-URI) Unknown-thread/CocoonServlet: Cocoon got
an Exception while trying to close stream.
java.net.SocketException: Connection reset by peer:
socket write error
	at java.net.SocketOutputStream.socketWrite0(Native
Method)
	at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
	at
java.net.SocketOutputStream.write(SocketOutputStream.java:126)
	at
org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:668)
	at
org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:166)
	at
org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:523)
	at
org.apache.coyote.Response.doWrite(Response.java:524)
...
ERROR   (2003-07-10) 14:00.01:388   [access]
(/cocoon/docs/introduction.html)
Thread-13/CocoonServlet: Internal Cocoon Problem
java.net.SocketException: Connection reset by peer:
socket write error
	at java.net.SocketOutputStream.socketWrite0(Native
Method)
	at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
	at
java.net.SocketOutputStream.write(SocketOutputStream.java:126)
	at
org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:668)
	at
org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:166)
	at
org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:523)
	at
org.apache.coyote.Response.doWrite(Response.java:524)
...

is it normally? because user can play with links so
faster ... and we will get that exception on each
time.
is there some limit time or some other for configure
it?

any ideas,
Thanks,
Hill

IE 6.0
cocoon 2.1m2, tomcat 4.1, Java1.4



--- Joerg Heinicke <jo...@gmx.de> wrote:
> Hello Hill,
> 
> normally this exception is thrown if the browser
> cuts the connection. 
> This could happen if you change the URL of a
> resource before it's loaded 
> completely.
> 
> And there is no "javascript handler" in Cocoon. This
> stuff is not 
> touched by Cocoon, but only by the browser.
> 
> Joerg
> 
> Hill Karimov wrote:
> > Hi all,
> > 
> > After update my cocoon 2.1-dev to cocoon 2.1m2, I
> get
> > these exceptions in error.log:
> > ERROR   (2003-06-27) 15:52.52:235   [access]
> > (/cocoon/test/ftv2mlastnode.gif)
> > Thread-17/CocoonServlet: Internal Cocoon Problem
> > java.net.SocketException: Connection reset by
> peer:
> > socket write error
> > 	at
> java.net.SocketOutputStream.socketWrite0(Native
> > Method)
> > 	at
> >
>
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
> > 	at
> >
>
java.net.SocketOutputStream.write(SocketOutputStream.java:126)
> 
> ...
> 
> > gif files for tree menu, that is some complex
> > javascript that build the tree menu:
> > 
> > /snip
> > ...
> > function preLoadIcons() {
> > 	var auxImg
> > 	auxImg = new Image();
> > 	auxImg.src = ICONPATH + "ftv2vertline.gif";
> > 	auxImg.src = ICONPATH + "ftv2mlastnode.gif";
> > 	auxImg.src = ICONPATH + "ftv2plastnode.gif";
> > ...
> >  doc.write("  ...
> >     ... +  "<td valign=top background=" + ICONPATH
> +
> > "ftv2vertline.gif>" + auxEv + "<img
> name='nodeIcon" +
> > this.id + "' id='nodeIcon" + this.id + "' src='" +
> > nodeName + "' width=16 height=22
> border=0></a></td>"
> > ...
> > 
> > But I'm not sure that problem case is with
> Javascript
> > handler in cocoon, because I get like exception on
> > generating some xsp too.
> > 
> > Can some one explain me on what case throws that
> > exception?
> >   java.net.SocketException: Connection reset by
> peer:
> > socket write error
> > 
> > any ideas, tips, advice,
> > Thanks a lot,
> > Hill
> > 
> > cocoon 2.1m2, tomcat 4.1, Java1.4
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> cocoon-users-help@xml.apache.org
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: java.net.SocketException: Connection reset by peer: socket write error

Posted by Geoff Howard <co...@leverageweb.com>.
IIRC this is not a problem.  There is a socket "error" because of the 
user action, but they have abandoned that request anyway.  I guess the 
only "problem" is that this can fill up logs.  I thought this was logged 
at a lower level for just this reason (like WARN?) but apparently not. 
Can anyone else who remembers more comment?

Geoff

Hill Karimov wrote:
> Hi all
> 
> Any ideas?
> Please see below.
> 
> Thanks a lot,
> Hill
> 
> --- Hill Karimov <hi...@yahoo.com> wrote:
> 
>>Hi
>>
>>I see this exception when I turn between links
>>so faster, while they are not loaded completely.
>>
>>ERROR   (2003-07-10) 13:59.57:497   [access]
>>(/cocoon/api/java/index.html)
>>Thread-15/CocoonServlet:
>>Internal Cocoon Problem
>>java.net.SocketException: Connection reset by peer:
>>socket write error
>>	at java.net.SocketOutputStream.socketWrite0(Native
>>Method)
>>	at
>>
> 
> java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
> 
>>	at
>>
> 
> java.net.SocketOutputStream.write(SocketOutputStream.java:126)
> 
>>	at
>>
> 
> org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:668)
> 
>>	at
>>
> 
> org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:166)
> 
>>	at
>>
> 
> org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:523)
> 
>>	at
>>
> 
> org.apache.coyote.Response.doWrite(Response.java:524)
> 
>>...
>>ERROR   (2003-07-10) 13:59.57:497   [access]
>>(Unknown-URI) Unknown-thread/CocoonServlet: Cocoon
>>got
>>an Exception while trying to close stream.
>>java.net.SocketException: Connection reset by peer:
>>socket write error
>>	at java.net.SocketOutputStream.socketWrite0(Native
>>Method)
>>	at
>>
> 
> java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
> 
>>	at
>>
> 
> java.net.SocketOutputStream.write(SocketOutputStream.java:126)
> 
>>	at
>>
> 
> org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:668)
> 
>>	at
>>
> 
> org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:166)
> 
>>	at
>>
> 
> org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:523)
> 
>>	at
>>
> 
> org.apache.coyote.Response.doWrite(Response.java:524)
> 
>>...
>>ERROR   (2003-07-10) 14:00.01:388   [access]
>>(/cocoon/docs/introduction.html)
>>Thread-13/CocoonServlet: Internal Cocoon Problem
>>java.net.SocketException: Connection reset by peer:
>>socket write error
>>	at java.net.SocketOutputStream.socketWrite0(Native
>>Method)
>>	at
>>
> 
> java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
> 
>>	at
>>
> 
> java.net.SocketOutputStream.write(SocketOutputStream.java:126)
> 
>>	at
>>
> 
> org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:668)
> 
>>	at
>>
> 
> org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:166)
> 
>>	at
>>
> 
> org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:523)
> 
>>	at
>>
> 
> org.apache.coyote.Response.doWrite(Response.java:524)
> 
>>...
>>
>>is it normally? because user can play with links so
>>faster ... and we will get that exception on each
>>time.
>>is there some limit time or some other for configure
>>it?
>>
>>any ideas,
>>Thanks,
>>Hill
>>
>>IE 6.0
>>cocoon 2.1m2, tomcat 4.1, Java1.4
>>
>>
>>
>>--- Joerg Heinicke <jo...@gmx.de> wrote:
>>
>>>Hello Hill,
>>>
>>>normally this exception is thrown if the browser
>>>cuts the connection. 
>>>This could happen if you change the URL of a
>>>resource before it's loaded 
>>>completely.
>>>
>>>And there is no "javascript handler" in Cocoon.
>>
>>This
>>
>>>stuff is not 
>>>touched by Cocoon, but only by the browser.
>>>
>>>Joerg
>>>
>>>Hill Karimov wrote:
>>>
>>>>Hi all,
>>>>
>>>>After update my cocoon 2.1-dev to cocoon 2.1m2,
>>
>>I
>>
>>>get
>>>
>>>>these exceptions in error.log:
>>>>ERROR   (2003-06-27) 15:52.52:235   [access]
>>>>(/cocoon/test/ftv2mlastnode.gif)
>>>>Thread-17/CocoonServlet: Internal Cocoon Problem
>>>>java.net.SocketException: Connection reset by
>>>
>>>peer:
>>>
>>>>socket write error
>>>>	at
>>>
>>>java.net.SocketOutputStream.socketWrite0(Native
>>>
>>>>Method)
>>>>	at
>>>>
>>>
> java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
> 
>>>>	at
>>>>
>>>
> java.net.SocketOutputStream.write(SocketOutputStream.java:126)
> 
>>>...
>>>
>>>
>>>>gif files for tree menu, that is some complex
>>>>javascript that build the tree menu:
>>>>
>>>>/snip
>>>>...
>>>>function preLoadIcons() {
>>>>	var auxImg
>>>>	auxImg = new Image();
>>>>	auxImg.src = ICONPATH + "ftv2vertline.gif";
>>>>	auxImg.src = ICONPATH + "ftv2mlastnode.gif";
>>>>	auxImg.src = ICONPATH + "ftv2plastnode.gif";
>>>>...
>>>> doc.write("  ...
>>>>    ... +  "<td valign=top background=" +
>>
>>ICONPATH
>>
>>>+
>>>
>>>>"ftv2vertline.gif>" + auxEv + "<img
>>>
>>>name='nodeIcon" +
>>>
>>>>this.id + "' id='nodeIcon" + this.id + "' src='"
>>
>>+
>>
>>>>nodeName + "' width=16 height=22
>>>
>>>border=0></a></td>"
>>>
>>>>...
>>>>
>>>>But I'm not sure that problem case is with
>>>
>>>Javascript
>>>
>>>>handler in cocoon, because I get like exception
>>
>>on
>>
>>>>generating some xsp too.
>>>>
>>>>Can some one explain me on what case throws that
>>>>exception?
>>>>  java.net.SocketException: Connection reset by
>>>
>>>peer:
>>>
>>>>socket write error
>>>>
>>>>any ideas, tips, advice,
>>>>Thanks a lot,
>>>>Hill
>>>>
>>>>cocoon 2.1m2, tomcat 4.1, Java1.4
>>>
>>>
>>>
> ---------------------------------------------------------------------
> 
>>>To unsubscribe, e-mail:
>>>cocoon-users-unsubscribe@xml.apache.org
>>>For additional commands, e-mail:
>>>cocoon-users-help@xml.apache.org
>>>
>>
>>
>>__________________________________
>>Do you Yahoo!?
>>SBC Yahoo! DSL - Now only $29.95 per month!
>>http://sbc.yahoo.com
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: java.net.SocketException: Connection reset by peer: socket write error

Posted by Hill Karimov <hi...@yahoo.com>.
Hi all

Any ideas?
Please see below.

Thanks a lot,
Hill

--- Hill Karimov <hi...@yahoo.com> wrote:
> Hi
> 
> I see this exception when I turn between links
> so faster, while they are not loaded completely.
> 
> ERROR   (2003-07-10) 13:59.57:497   [access]
> (/cocoon/api/java/index.html)
> Thread-15/CocoonServlet:
> Internal Cocoon Problem
> java.net.SocketException: Connection reset by peer:
> socket write error
> 	at java.net.SocketOutputStream.socketWrite0(Native
> Method)
> 	at
>
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
> 	at
>
java.net.SocketOutputStream.write(SocketOutputStream.java:126)
> 	at
>
org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:668)
> 	at
>
org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:166)
> 	at
>
org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:523)
> 	at
>
org.apache.coyote.Response.doWrite(Response.java:524)
> ...
> ERROR   (2003-07-10) 13:59.57:497   [access]
> (Unknown-URI) Unknown-thread/CocoonServlet: Cocoon
> got
> an Exception while trying to close stream.
> java.net.SocketException: Connection reset by peer:
> socket write error
> 	at java.net.SocketOutputStream.socketWrite0(Native
> Method)
> 	at
>
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
> 	at
>
java.net.SocketOutputStream.write(SocketOutputStream.java:126)
> 	at
>
org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:668)
> 	at
>
org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:166)
> 	at
>
org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:523)
> 	at
>
org.apache.coyote.Response.doWrite(Response.java:524)
> ...
> ERROR   (2003-07-10) 14:00.01:388   [access]
> (/cocoon/docs/introduction.html)
> Thread-13/CocoonServlet: Internal Cocoon Problem
> java.net.SocketException: Connection reset by peer:
> socket write error
> 	at java.net.SocketOutputStream.socketWrite0(Native
> Method)
> 	at
>
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
> 	at
>
java.net.SocketOutputStream.write(SocketOutputStream.java:126)
> 	at
>
org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:668)
> 	at
>
org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:166)
> 	at
>
org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:523)
> 	at
>
org.apache.coyote.Response.doWrite(Response.java:524)
> ...
> 
> is it normally? because user can play with links so
> faster ... and we will get that exception on each
> time.
> is there some limit time or some other for configure
> it?
> 
> any ideas,
> Thanks,
> Hill
> 
> IE 6.0
> cocoon 2.1m2, tomcat 4.1, Java1.4
> 
> 
> 
> --- Joerg Heinicke <jo...@gmx.de> wrote:
> > Hello Hill,
> > 
> > normally this exception is thrown if the browser
> > cuts the connection. 
> > This could happen if you change the URL of a
> > resource before it's loaded 
> > completely.
> > 
> > And there is no "javascript handler" in Cocoon.
> This
> > stuff is not 
> > touched by Cocoon, but only by the browser.
> > 
> > Joerg
> > 
> > Hill Karimov wrote:
> > > Hi all,
> > > 
> > > After update my cocoon 2.1-dev to cocoon 2.1m2,
> I
> > get
> > > these exceptions in error.log:
> > > ERROR   (2003-06-27) 15:52.52:235   [access]
> > > (/cocoon/test/ftv2mlastnode.gif)
> > > Thread-17/CocoonServlet: Internal Cocoon Problem
> > > java.net.SocketException: Connection reset by
> > peer:
> > > socket write error
> > > 	at
> > java.net.SocketOutputStream.socketWrite0(Native
> > > Method)
> > > 	at
> > >
> >
>
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
> > > 	at
> > >
> >
>
java.net.SocketOutputStream.write(SocketOutputStream.java:126)
> > 
> > ...
> > 
> > > gif files for tree menu, that is some complex
> > > javascript that build the tree menu:
> > > 
> > > /snip
> > > ...
> > > function preLoadIcons() {
> > > 	var auxImg
> > > 	auxImg = new Image();
> > > 	auxImg.src = ICONPATH + "ftv2vertline.gif";
> > > 	auxImg.src = ICONPATH + "ftv2mlastnode.gif";
> > > 	auxImg.src = ICONPATH + "ftv2plastnode.gif";
> > > ...
> > >  doc.write("  ...
> > >     ... +  "<td valign=top background=" +
> ICONPATH
> > +
> > > "ftv2vertline.gif>" + auxEv + "<img
> > name='nodeIcon" +
> > > this.id + "' id='nodeIcon" + this.id + "' src='"
> +
> > > nodeName + "' width=16 height=22
> > border=0></a></td>"
> > > ...
> > > 
> > > But I'm not sure that problem case is with
> > Javascript
> > > handler in cocoon, because I get like exception
> on
> > > generating some xsp too.
> > > 
> > > Can some one explain me on what case throws that
> > > exception?
> > >   java.net.SocketException: Connection reset by
> > peer:
> > > socket write error
> > > 
> > > any ideas, tips, advice,
> > > Thanks a lot,
> > > Hill
> > > 
> > > cocoon 2.1m2, tomcat 4.1, Java1.4
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail:
> > cocoon-users-help@xml.apache.org
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail:
> users-help@cocoon.apache.org
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org