https://bz.apache.org/bugzilla/show_bug.cgi?id=57749
Bug ID: 57749
Summary: NullPointerException in
InternalNio2OutputBuffer$2.failed(InternalNio2OutputBu
ffer.java:205) (8.0.21 RC)
Product: Tomcat 8
Version: trunk
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Connectors
Assignee: [email protected]
Reporter: [email protected]
Created attachment 32602
--> https://bz.apache.org/bugzilla/attachment.cgi?id=32602&action=edit
TEST-org.apache.catalina.nonblocking.TestNonBlockingAPI.NIO2.txt
Testing 8.0.21 (release candidate), the following test failed:
TEST-org.apache.catalina.nonblocking.TestNonBlockingAPI.NIO2.txt
-> testNonBlockingWrite
Testcase: testNonBlockingWrite took 7,925 sec
Caused an ERROR
Connection reset
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:189)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.net.SocketInputStream.read(SocketInputStream.java:107)
at
org.apache.catalina.nonblocking.TestNonBlockingAPI.testNonBlockingWrite(TestNonBlockingAPI.java:156)
Looking into the junit log, there was an NPE in InternalNio2OutputBuffer:
[[[
org.apache.catalina.nonblocking.TestNonBlockingAPI$NBWriteServlet$1 onComplete
INFO: onComplete
Exception in thread "http-nio2-127.0.0.1-auto-5-exec-4"
java.lang.NullPointerException
at
org.apache.coyote.http11.InternalNio2OutputBuffer$2.failed(InternalNio2OutputBuffer.java:205)
at
org.apache.coyote.http11.InternalNio2OutputBuffer$2.failed(InternalNio2OutputBuffer.java:165)
at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:128)
at sun.nio.ch.Invoker$2.run(Invoker.java:218)
at
sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
]]]
Those lines:
@Override
public void failed(Throwable exc, ByteBuffer[] attachment) {
205: socket.setError(true);
So apparently socket is null.
All other tests (all 4 connectors) have passed successfully.
Summary:
[[[
test:
[concat] Testsuites with skipped tests:
[concat] TEST-org.apache.catalina.comet.TestCometProcessor.BIO.txt
[concat] TEST-org.apache.catalina.connector.TestRequest.APR.txt
[concat] TEST-org.apache.catalina.connector.TestRequest.BIO.txt
[concat] TEST-org.apache.catalina.connector.TestRequest.NIO.txt
[concat] TEST-org.apache.catalina.connector.TestRequest.NIO2.txt
[concat] TEST-org.apache.catalina.nonblocking.TestNonBlockingAPI.BIO.txt
[concat] TEST-org.apache.tomcat.util.net.TestClientCert.APR.txt
[concat] TEST-org.apache.tomcat.util.net.TestClientCert.NIO.txt
[concat] TEST-org.apache.tomcat.util.net.TestCustomSsl.APR.txt
[concat] TEST-org.apache.tomcat.util.net.TestCustomSsl.NIO.txt
[concat] TEST-org.apache.tomcat.util.net.TestSsl.APR.txt
[concat] TEST-org.apache.tomcat.util.net.TestSsl.NIO.txt
[concat]
TEST-org.apache.tomcat.websocket.TestWebSocketFrameClientSSL.BIO.txt
[concat] TEST-org.apache.tomcat.websocket.TestWsWebSocketContainer.BIO.txt
[concat] Testsuites with failed tests:
[concat] TEST-org.apache.catalina.nonblocking.TestNonBlockingAPI.NIO2.txt
]]]
I am using JDK 8u31 (32-bit) on Windows 7, and testing with
test.accesslog=true
I am attaching TEST-org.apache.catalina.nonblocking.TestNonBlockingAPI.NIO2.txt
file. I converted the file from my local code page into UTF-8.
--
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]