Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
mod_jk - WARNING: processCallbacks status 2 - fixed

mod_jk - WARNING: processCallbacks status 2 - fixed

2007-01-12       - By walt

 Back
walt wrote:
> Hi,
> I'm having a problem with Apache,Tomcat, and mod_jk.
> Apache - 1.3.33
> Tomcat - 5.5.12
> mod_jk - 1.2.20
>
> We have a jsp web page which calls a servlet to load images. The
> servlet gets the image by connecting to a java application running on
> a seperate file server. Every now and then we get the error at the end
> of this email.
>
> Using some stats from the this morning, the jsp page was called 263
> times and the servlet 490 times in 38 minutes.  Out of the 490 times
> the servlet was called, 10 of those generated errors. We have been
> unable to reproduce this error on our test & dev systems.  On our dev
> and test systems, we were able to call the jsp page 184 times and the
> servlet 500 times in a little over a minute and did not get any
> errors.  Everything had been working fine on our old production server
> for 2+ years which used the same apache version but Tomcat 3.2.3 and
> JDK1.2.2 .  The old production system  also used the AJP12 connection
> protocol where the new system uses the AJP 1.3 connection protocol.
>
> Here's some info from the conf files. All load balancing stuff in
> workers.properties is commented out.
>
> Thanks !
> walt
>
> server.xml
> <Connector port="8009"  enableLookups="false" protocol="AJP/1.3" />
>
> workers.properties
> worker.list=ajp13
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
>
>
> Jan 10, 2007 8:54:33 AM org.apache.jk.core.MsgContext Source code of org.apache.jk.core.MsgContext action
> WARNING: Error sending end packet
> java.net.SocketException Source code of 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 Source code of org.apache.jk.common.ChannelSocket(ChannelSocket.java:508)
>        at
> org.apache.jk.common.JkInputStream Source code of org.apache.jk.common.JkInputStream(JkInputStream.java:112)
>        at org.apache.jk.core.MsgContext Source code of org.apache.jk.core.MsgContext(MsgContext.java:293)
>        at org.apache.coyote.Response Source code of org.apache.coyote.Response(Response.java:182)
>        at org.apache.coyote.Response Source code of org.apache.coyote.Response(Response.java:304)
>        at
> org.apache.jk.server.JkCoyoteHandler Source code of org.apache.jk.server.JkCoyoteHandler(JkCoyoteHandler.java:204)
>        at
> org.apache.jk.common.HandlerRequest Source code of org.apache.jk.common.HandlerRequest(HandlerRequest.java:282)
>        at
> org.apache.jk.common.ChannelSocket Source code of org.apache.jk.common.ChannelSocket(ChannelSocket.java:744)
>        at
> org.apache.jk.common.ChannelSocket Source code of org.apache.jk.common.ChannelSocket(ChannelSocket.java:674)
>
>        at
> org.apache.jk.common.ChannelSocket Source code of org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java
:866)
>
>        at
> org.apache.tomcat.util.threads.ThreadPool Source code of org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java
:684)
>
>        at java.lang.Thread Source code of java.lang.Thread(Thread.java:595)
> Jan 10, 2007 8:54:33 AM org.apache.jk.common.ChannelSocket Source code of org.apache.jk.common.ChannelSocket
> processConnection
> WARNING: processCallbacks status 2
>
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
I hope this helps somebody -
The code in question also talks to a remote c++ app on another server.
The socket errors were coming from that communication when "readln()"
was called on the socket.  We have "readln()" in a wrapper function and
adding "Thread.sleep(10);" before the actual readln() call on the socket
stops the error.

walt


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.