tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nitschke Michael" <mnitsc...@mbi.co.at>
Subject AW: Exception in Tomcat?
Date Fri, 12 Sep 2003 11:22:32 GMT
If the connection is not proper established this error occurs.
The easiest was to fix it is to catch the exception in your application, so your application
would not die at every occurrence.
Surround the socket write statement with the catch construct. 


-----Ursprüngliche Nachricht-----
Von: Bjørn T Johansen [mailto:btj@havleik.no] 
Gesendet: Freitag, 12. September 2003 13:16
An: tomcat-user@jakarta.apache.org
Betreff: Exception in Tomcat?

I have a Struts app that's running under Tomcat 4.1.27 and now and then
I get this in my log:

11.sep.2003 10:44:13 org.apache.jk.server.JkCoyoteHandler action
SEVERE: Error in action code
java.net.SocketException: Broken pipe
        at java.net.SocketOutputStream.socketWrite0(Native Method)
        at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
        at
java.net.SocketOutputStream.write(SocketOutputStream.java:136)
        at
org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407)
        at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599)
        at
org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:385)
        at org.apache.coyote.Response.action(Response.java:222)
        at org.apache.coyote.Response.finish(Response.java:343)
        at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:268)
        at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
        at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604)
        at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562)
        at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
        at java.lang.Thread.run(Thread.java:534)
11.sep.2003 10:44:13 org.apache.jk.common.ChannelSocket
processConnection
INFO: server has been restarted or reset this connection

Is this something I should worry about or? My app is working even if I
get these...

Regards,

BTJ

-- 
-----------------------------------------------------------------------------------------------
Bjørn T Johansen (BSc,MNIF)
Executive Manager
btj@havleik.no                  Havleik Consulting
Phone : +47 67 54 15 17         Conradisvei 4
Fax : +47 67 54 13 91           N-1338 Sandvika
Cellular : +47 926 93 298       http://www.havleik.no
-----------------------------------------------------------------------------------------------
"The stickers on the side of the box said "Supported Platforms: Windows
98, Windows NT 4.0,
Windows 2000 or better", so clearly Linux was a supported platform."
-----------------------------------------------------------------------------------------------


Mime
View raw message