It's probably a timeout between the front end http server (apache?) and the back end tomcat installation, related to mod_jk. IThe java application takes too long to start generating an answer and the http server (apache?) considers there is a problem and closes connection. What you see in catalina.out is the result when the webapp starts to write output and the connection has already been closed. This is just my opinion, could be something else :)

En l'instant précis du 07/01/08 06:01, micro_learner s'exprimait en ces termes:
I've volunteered to maintain a Java based application for a non-profit org.

Specs: Apache TomCat 4.1.24
            Database : Mysql 4.X
            Application : Java,VTL,Torgue and Turbine

The application used to gather reports works well for a small date range (
lesser time) and fails (not always) for bigger date range (more time , but
does not fail always.wks sometimes) with a
org.apache.jk.server.JkCoyoteHandler action
SEVERE: Error in action code
java.net.SocketException: Broken pipe on the Catalina.out.

The funny thing is that this same thing works on my Local machine (almost
same config but on Tomcat 5.3).

Also, even when the app. works fine the Catalina.out has this message (dont
know if it is benign)

##########
an 3, 2008 1:08:07 PM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
######################


The Excepion on Catalina is as follows.


##################################################################################

qJan 3, 2008 12:50:13 PM 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:372)
      at org.apache.coyote.Response.action(Response.java:222)
      at org.apache.coyote.Response.finish(Response.java:343)
      at org.apache.coyote.tomcat4.OutputBuffer.close(OutputBuffer.java:326)
      at
org.apache.coyote.tomcat4.CoyoteResponse.finishResponse(CoyoteResponse.java:500)
      at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:224)
      at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261)
      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:595)
Jan 3, 2008 12:50:13 PM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Jan 3, 2008 12:50:13 PM 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:372)
      at org.apache.coyote.Response.action(Response.java:222)
      at org.apache.coyote.Response.finish(Response.java:343)
      at org.apache.coyote.tomcat4.OutputBuffer.close(OutputBuffer.java:326)
      at
org.apache.coyote.tomcat4.CoyoteResponse.finishResponse(CoyoteResponse.java:500)
      at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:224)
      at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261)
      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:595)
Jan 3, 2008 12:50:13 PM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Jan 3, 2008 12:50:13 PM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Jan 3, 2008 12:50:13 PM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Jan 3, 2008 12:50:13 PM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Jan 3, 2008 12:50:13 PM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Jan 3, 2008 12:50:13 PM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Jan 3, 2008 12:50:13 PM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Jan 3, 2008 12:50:13 PM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Jan 3, 2008 12:50:13 PM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Jan 3, 2008 12:50:13 PM 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:372)
      at org.apache.coyote.Response.action(Response.java:222)
      at org.apache.coyote.Response.finish(Response.java:343)
      at org.apache.coyote.tomcat4.OutputBuffer.close(OutputBuffer.java:326)
      at
org.apache.coyote.tomcat4.CoyoteResponse.finishResponse(CoyoteResponse.java:500)
      at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:224)
      at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261)
      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:595)
Jan 3, 2008 12:50:13 PM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Stopping service Tomcat-Standalone
Jan 3, 2008 12:50:31 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Jan 3, 2008 12:50:31 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Jan 3, 2008 12:50:31 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24-LE-jdk14
Jan 3, 2008 12:50:38 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:9009
Jan 3, 2008 12:50:38 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=9/40 config=/usr/local/jakarta-tomcat-4.1.24/conf/jk2.properties
log4j:WARN No appenders could be found for logger
(org.apache.commons.configuration.ConfigurationUtils).
log4j:WARN Please initialize the log4j system properly.
Jan 3, 2008 12:56:55 PM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Jan 3, 2008 12:56:56 PM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Jan 3, 2008 12:58:01 PM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
building formatting object tree
WARNING: Unknown enumerated value for property 'text-align': left
Error in text-align property value 'left':
org.apache.fop.fo.expr.PropertyException: No conversion defined
setting up fonts
formatting FOs into areas
 [1Leader doesn't fit into line, it will be clipped to fit.
Leader doesn't fit into line, it will be clipped to fit.
Leader doesn't fit into line, it will be clipped to fit.
Leader doesn't fit into line, it will be clipped to fit.
Leader doesn't fit into line, it will be clipped to fit.
Leader doesn't fit into line, it will be clipped to fit.
] [2]
rendering areas to PDF
writing out PDF
Jan 3, 2008 12:59:39 PM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Jan 3, 2008 1:08:06 PM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection
Jan 3, 2008 1:08:07 PM org.apache.jk.common.ChannelSocket processConnection
INFO: server has been restarted or reset this connection

#################################################################################


Thanks for your time.


--
http://www.devlog.be (a belgian developer's logs)



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to