tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Gibby <dgi...@edirectpublishing.com>
Subject connector errors for real
Date Wed, 28 Apr 2004 14:03:19 GMT
I know that certain connector errors can be explained as a user hitting 
Stop on the browser or something like that ('Connection reset by 
peer')... but I am getting a different error than that. It is happening 
almost all the time in my catalina.out.
I truly believe that it is an indicator of the thing that causes tomcat 
to stop serving requests every other day. I have to do a full restart of 
tomcat.
catalina.sh stop won't work and I have to kill the java processes and 
start again. Stopping and starting apache does not help.

A lot of people have reported this on the list, and no-one has received 
any answers that explain it as far as I've seen. I've even called up 
individual members of this list and asked them if they ever solved their 
tomcat lockups, and none have the answer yet. It doesn't appear that we 
have any connector developers that lurk on this list, and there isn't a 
list specific for mod_jk and mod_jk2 problems or else a large portion of 
the questions to this list would be gone! ;-)

So *please* if you are a developer or have a knack for understanding the 
code, and can dig into it (I've tried): What exactly do these errors 
mean? I'm sure that error 21000 has some sort of specific meaning. Who 
knows? I think that basically one end point (either apache or tomcat) 
isn't available to connect to, so the connector tries again and has 
Success. I could be wrong on that though.

[Wed Apr 28 00:55:58 2004] (error ) [jk_channel_un.c (422)]  
channelUn.receive(): error receiving -1 0 Success 85cf1c0 181
Apr 28, 2004 12:55:58 AM org.apache.jk.common.JniHandler nativeDispatch
SEVERE: nativeDispatch: error 21000
java.lang.Throwable
        at 
org.apache.jk.common.JniHandler.nativeDispatch(JniHandler.java(Compiled 
Code))
        at org.apache.jk.common.ChannelUn.receive(ChannelUn.java:224)
        at 
org.apache.jk.common.ChannelUn.processConnection(ChannelUn.java:279)
        at org.apache.jk.common.AprConnection.runIt(ChannelUn.java:347)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:568)
Apr 28, 2004 12:55:58 AM org.apache.jk.common.ChannelUn receive
SEVERE: receive error:   21000
java.lang.Throwable
        at org.apache.jk.common.ChannelUn.receive(ChannelUn.java:227)
        at 
org.apache.jk.common.ChannelUn.processConnection(ChannelUn.java:279)
        at org.apache.jk.common.AprConnection.runIt(ChannelUn.java:347)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:568)

I'm definitely not ruling out a programming bug, I'm open here! It could 
be that I'm trying to include a page after the response has been 
committed or something, but that usually produces a different error that 
says that the response has already been committed.

Another similar problem:
[Wed Apr 28 00:46:45 2004] (error ) [jk_channel_un.c (422)]  
channelUn.receive(): error receiving -1 4 Interrupted system call 
0x860f5a0 182
Apr 28, 2004 12:46:45 AM org.apache.jk.common.JniHandler nativeDispatch
SEVERE: nativeDispatch: error 21000
java.lang.Throwable
        at 
org.apache.jk.common.JniHandler.nativeDispatch(JniHandler.java(Compiled 
Code))
        at org.apache.jk.common.ChannelUn.receive(ChannelUn.java:224)
        at 
org.apache.jk.common.ChannelUn.processConnection(ChannelUn.java:279)
        at org.apache.jk.common.AprConnection.runIt(ChannelUn.java:347)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:568)
Apr 28, 2004 12:46:45 AM org.apache.jk.common.ChannelUn receive
SEVERE: receive error:   21000
java.lang.Throwable
        at org.apache.jk.common.ChannelUn.receive(ChannelUn.java:227)
        at 
org.apache.jk.common.ChannelUn.processConnection(ChannelUn.java:279)
        at org.apache.jk.common.AprConnection.runIt(ChannelUn.java:347)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:568)


And another:

[Wed Apr 28 00:46:42 2004] (error ) [jk_channel_un.c (422)]  
channelUn.receive(): error receiving -1 32 Broken pipe 0x7c77eb18 96
Apr 28, 2004 12:46:42 AM org.apache.jk.common.JniHandler nativeDispatch
SEVERE: nativeDispatch: error 21000
java.lang.Throwable
        at 
org.apache.jk.common.JniHandler.nativeDispatch(JniHandler.java(Compiled 
Code))
        at org.apache.jk.common.ChannelUn.receive(ChannelUn.java:224)
        at 
org.apache.jk.common.ChannelUn.processConnection(ChannelUn.java:279)
        at org.apache.jk.common.AprConnection.runIt(ChannelUn.java:347)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:568)
Apr 28, 2004 12:46:42 AM org.apache.jk.common.ChannelUn receive
SEVERE: receive error:   21000
java.lang.Throwable
        at org.apache.jk.common.ChannelUn.receive(ChannelUn.java:227)
        at 
org.apache.jk.common.ChannelUn.processConnection(ChannelUn.java:279)
        at org.apache.jk.common.AprConnection.runIt(ChannelUn.java:347)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:568)

server specs:
tomcat 4.1.30 mod_jk AND mod_jk2 2.0.2 apache 2.0.40 on a RedHat Linux 
SMP multiprocessor machine...

UnixSockets have to use JNI, right? I'll gladly switch to whatever else 
if my setup just plain won't work! I've tried upgrading to the latest 
apache and 2.0.4 connector, but I get compile problems on apache for 
another reason with kerberos stuff. Does someone have SMP compiled 686 
binaries for latest apache, connectors and tomcat somewhere? Maybe I 
should just try what someone else already has successfully and then I'd 
know at least if this is a configuration issue or a code issue.

Thanks,

Daniel Gibby

P.S.

The first time I got this error, it was accompanied with this Exception 
which may or may not be related:
Compile failed; see the compiler error output for details.
        at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:978)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:799)
        at 
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:320)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
        at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
        at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
        at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
        at 
javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java(Compiled

Code))
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java(Compiled

Code))
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java(Compiled

Code))
        at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java(Compiled

Code))
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java(Compiled

Code))
        at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java(Compiled

Code))
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java(Compiled

Code))
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
        at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:324)
        at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:395)
        at 
org.apache.jk.common.ChannelUn.processConnection(ChannelUn.java:286)
        at org.apache.jk.common.AprConnection.runIt(ChannelUn.java:347)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:568)


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message