https://issues.apache.org/bugzilla/show_bug.cgi?id=56239
Bug ID: 56239
Summary: NullPointerException when finishing response under the
Linux traffic control
Product: Tomcat 7
Version: 7.0.39
Hardware: PC
OS: Linux
Status: NEW
Severity: major
Priority: P2
Component: Connectors
Assignee: [email protected]
Reporter: [email protected]
hi, when i using apache benchmark to test my tomcat instance, i got a
NullPointerException
this is stacktrace:
[2013-12-21 19:47:00][ERROR] [http-nio-5000-exec-6]2013-12-21 19:47:00:
org.apache.coyote.http11.AbstractHttp11Processor.endRequest Error finishing
response
java.lang.NullPointerException
at
org.apache.coyote.http11.InternalNioOutputBuffer.addToBB(InternalNioOutputBuffer.java:210)
at
org.apache.coyote.http11.InternalNioOutputBuffer.commit(InternalNioOutputBuffer.java:202)
at
org.apache.coyote.http11.AbstractHttp11Processor.action(AbstractHttp11Processor.java:765)
at org.apache.coyote.Response.action(Response.java:171)
at
org.apache.coyote.http11.AbstractOutputBuffer.endRequest(AbstractOutputBuffer.java:302)
at
org.apache.coyote.http11.InternalNioOutputBuffer.endRequest(InternalNioOutputBuffer.java:120)
at
org.apache.coyote.http11.AbstractHttp11Processor.endRequest(AbstractHttp11Processor.java:1660)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1053)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1686)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
[2013-12-21 19:46:58][ERROR] [http-nio-5000-exec-5]2013-12-21 19:46:58:
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process Error
reading request, ignored
java.lang.NullPointerException
at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.release(Http11NioProtocol.java:221)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:616)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1686)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
I am using "org.apache.coyote.http11.Http11NioProtocol" in server.xml like
this:
<Connector port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol"
... />
I have already test 2 cases:
1) without Linux Traffic Control, my testcase was very ok!
2) when i using linux tc to control the output network traffic. and tomcat gave
me a NullPointerException above. that the tomcat instance still at running
state,(some requests has failed)
I test many times with tc, NullPointerException almost has been happened
I was changed tomcat version at 7.0.52 with the same problem
I have seen 7.0.39-7.0.52's changelog, and find nothing with something like
this Exception.
so please help ..
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]