-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
None
-
None
Errors such as the one below:
[INFO] Running org.xnio.nio.test.NioSslBufferExpansionTcpChannelTestCase [ERROR] Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 61.089 s <<< FAILURE! - in org.xnio.nio.test.NioSslBufferExpansionTcpChannelTestCase [ERROR] twoWayTransfer(org.xnio.nio.test.NioSslBufferExpansionTcpChannelTestCase) Time elapsed: 60.51 s <<< FAILURE! java.lang.AssertionError at org.junit.Assert.fail(Assert.java:87) at org.junit.Assert.assertTrue(Assert.java:42) at org.junit.Assert.assertTrue(Assert.java:53) at org.xnio.nio.test.AbstractNioSslTcpTest$7.run(AbstractNioSslTcpTest.java:243) at org.xnio.nio.test.AbstractNioTcpTest.doConnectionTest(AbstractNioTcpTest.java:95) at org.xnio.nio.test.AbstractNioSslTcpTest.twoWayTransfer(AbstractNioSslTcpTest.java:240) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
When looking at the output we can see broken pipe and closed channel exceptions:
12:38:02,074 WARN (XNIO-2 I/O-1) [org.xnio] <JsseSslConduitEngine.java:927> XNIO000307: Failed to close ssl engine when handling exception java.nio.channels.ClosedChannelException: java.nio.channels.ClosedChannelException at java.base/sun.nio.ch.SocketChannelImpl.ensureOpenAndConnected(SocketChannelImpl.java:180) at java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:452) at org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:153) at org.xnio.ssl.JsseSslConduitEngine.doFlush(JsseSslConduitEngine.java:863) at org.xnio.ssl.JsseSslConduitEngine.handleWrapResult(JsseSslConduitEngine.java:410) at org.xnio.ssl.JsseSslConduitEngine.wrapCloseMessage(JsseSslConduitEngine.java:835) at org.xnio.ssl.JsseSslConduitEngine.closeOutbound(JsseSslConduitEngine.java:916) at org.xnio.ssl.JsseSslStreamSinkConduit.truncateWrites(JsseSslStreamSinkConduit.java:176) at org.xnio.conduits.ConduitStreamSinkChannel.close(ConduitStreamSinkChannel.java:186) at org.xnio.IoUtils.safeClose(IoUtils.java:152) at org.xnio.conduits.WriteReadyHandler$ChannelListenerHandler.forceTermination(WriteReadyHandler.java:57) at org.xnio.nio.NioSocketConduit.forceTermination(NioSocketConduit.java:108) at org.xnio.nio.WorkerThread.run(WorkerThread.java:507) 12:38:02,075 INFO (main) [TEST] <AbstractNioTcpTest.java:179> Test: closeWorker 12:38:02,081 INFO (main) [TEST] <AbstractNioSslTcpTest.java:234> Test: twoWayTransfer 12:38:02,084 INFO (XNIO-4 I/O-1) [TEST] <AbstractNioSslTcpTest.java:258> client handle readable 12:38:02,118 INFO (XNIO-4 I/O-1) [TEST] <AbstractNioSslTcpTest.java:276> client handle writable 12:38:02,119 INFO (XNIO-4 I/O-1) [TEST] <AbstractNioSslTcpTest.java:339> server handle readable 12:38:02,123 INFO (XNIO-4 I/O-1) [TEST] <AbstractNioSslTcpTest.java:347> server shutting down reads 12:38:02,123 INFO (XNIO-4 I/O-1) [TEST] <AbstractNioSslTcpTest.java:358> server handle writable 12:38:02,583 ERROR (main) [TEST] <AbstractNioTcpTest.java:102> Error running body: java.lang.AssertionError at org.junit.Assert.fail(Assert.java:87) at org.junit.Assert.assertTrue(Assert.java:42) at org.junit.Assert.assertTrue(Assert.java:53) at org.xnio.nio.test.AbstractNioSslTcpTest$7.run(AbstractNioSslTcpTest.java:243) at org.xnio.nio.test.AbstractNioTcpTest.doConnectionTest(AbstractNioTcpTest.java:95) at org.xnio.nio.test.AbstractNioSslTcpTest.twoWayTransfer(AbstractNioSslTcpTest.java:240) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) 12:39:02,590 INFO (main) [TEST] <AbstractNioSslTcpTest.java:57> Test: clientClose 12:39:02,593 INFO (XNIO-5 I/O-1) [TEST] <AbstractNioSslTcpTest.java:109> In server opened 12:39:02,593 INFO (XNIO-5 I/O-1) [TEST] <AbstractNioSslTcpTest.java:109> In server opened 12:39:02,594 INFO (XNIO-5 I/O-1) [TEST] <AbstractNioSslTcpTest.java:118> In server readable 12:39:02,596 INFO (XNIO-5 I/O-1) [TEST] <AbstractNioSslTcpTest.java:118> In server readable 12:39:02,598 INFO (XNIO-5 I/O-1) [TEST] <AbstractNioSslTcpTest.java:71> In client open 12:39:02,599 INFO (XNIO-5 I/O-1) [TEST] <AbstractNioSslTcpTest.java:118> In server readable 12:39:02,600 INFO (XNIO-5 I/O-1) [TEST] <AbstractNioSslTcpTest.java:112> In server close 12:39:02,600 INFO (XNIO-5 I/O-1) [TEST] <AbstractNioSslTcpTest.java:75> In client close 12:39:02,601 INFO (XNIO-5 I/O-1) [TEST] <AbstractNioSslTcpTest.java:112> In server close 12:39:02,601 WARN (XNIO-5 I/O-1) [org.xnio] <JsseSslConduitEngine.java:927> XNIO000307: Failed to close ssl engine when handling exception java.nio.channels.ClosedChannelException: java.nio.channels.ClosedChannelException at java.base/sun.nio.ch.SocketChannelImpl.ensureOpenAndConnected(SocketChannelImpl.java:180) at java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:452) at org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:153) at org.xnio.ssl.JsseSslConduitEngine.doFlush(JsseSslConduitEngine.java:863) at org.xnio.ssl.JsseSslConduitEngine.handleWrapResult(JsseSslConduitEngine.java:410) at org.xnio.ssl.JsseSslConduitEngine.wrapCloseMessage(JsseSslConduitEngine.java:835) at org.xnio.ssl.JsseSslConduitEngine.closeOutbound(JsseSslConduitEngine.java:916) at org.xnio.ssl.JsseSslStreamSinkConduit.truncateWrites(JsseSslStreamSinkConduit.java:176) at org.xnio.conduits.ConduitStreamSinkChannel.close(ConduitStreamSinkChannel.java:186) at org.xnio.IoUtils.safeClose(IoUtils.java:152) at org.xnio.conduits.WriteReadyHandler$ChannelListenerHandler.forceTermination(WriteReadyHandler.java:57) at org.xnio.nio.NioSocketConduit.forceTermination(NioSocketConduit.java:108) at org.xnio.nio.WorkerThread.run(WorkerThread.java:507) 12:39:02,603 INFO (main) [TEST] <AbstractNioTcpTest.java:344> Test: oneWayTransfer1 12:39:02,685 WARN (XNIO-6 I/O-1) [org.xnio] <JsseSslConduitEngine.java:927> XNIO000307: Failed to close ssl engine when handling exception java.io.IOException: Broken pipe: java.io.IOException: Broken pipe at java.base/sun.nio.ch.FileDispatcherImpl.write0(Native Method) at java.base/sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) at java.base/sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:113) at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:58) at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:50) at java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:462) at org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:153) at org.xnio.ssl.JsseSslConduitEngine.doFlush(JsseSslConduitEngine.java:863) at org.xnio.ssl.JsseSslConduitEngine.handleWrapResult(JsseSslConduitEngine.java:410) at org.xnio.ssl.JsseSslConduitEngine.wrapCloseMessage(JsseSslConduitEngine.java:835) at org.xnio.ssl.JsseSslConduitEngine.closeOutbound(JsseSslConduitEngine.java:916) at org.xnio.ssl.JsseSslConduitEngine.close(JsseSslConduitEngine.java:955) at org.xnio.ssl.JsseSslStreamConnection.closeAction(JsseSslStreamConnection.java:126) at org.xnio.Connection.close(Connection.java:132) at org.xnio.channels.AssembledStreamChannel.close(AssembledStreamChannel.java:230) at org.xnio.nio.test.AbstractNioTcpTest$10$2.handleEvent(AbstractNioTcpTest.java:416) at org.xnio.nio.test.AbstractNioTcpTest$10$2.handleEvent(AbstractNioTcpTest.java:407) at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092) at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:89) at org.xnio.nio.WorkerThread.run(WorkerThread.java:591) 12:39:02,685 ERROR (XNIO-6 I/O-1) [TEST] <AbstractNioTcpTest.java:419> Failed to close channel (propagating as RT exception): java.io.IOException: Broken pipe at java.base/sun.nio.ch.FileDispatcherImpl.write0(Native Method) at java.base/sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) at java.base/sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:113) at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:58) at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:50) at java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:462) at org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:153) at org.xnio.ssl.JsseSslConduitEngine.doFlush(JsseSslConduitEngine.java:863) at org.xnio.ssl.JsseSslConduitEngine.handleWrapResult(JsseSslConduitEngine.java:410) at org.xnio.ssl.JsseSslConduitEngine.wrapCloseMessage(JsseSslConduitEngine.java:835) at org.xnio.ssl.JsseSslConduitEngine.closeOutbound(JsseSslConduitEngine.java:916) at org.xnio.ssl.JsseSslConduitEngine.close(JsseSslConduitEngine.java:955) at org.xnio.ssl.JsseSslStreamConnection.closeAction(JsseSslStreamConnection.java:126) at org.xnio.Connection.close(Connection.java:132) at org.xnio.channels.AssembledStreamChannel.close(AssembledStreamChannel.java:230) at org.xnio.nio.test.AbstractNioTcpTest$10$2.handleEvent(AbstractNioTcpTest.java:416) at org.xnio.nio.test.AbstractNioTcpTest$10$2.handleEvent(AbstractNioTcpTest.java:407) at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092) at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:89) at org.xnio.nio.WorkerThread.run(WorkerThread.java:591) 12:39:02,686 ERROR (XNIO-6 I/O-1) [org.xnio.listener] <ChannelListeners.java:94> XNIO001007: A channel event listener threw an exception: java.lang.RuntimeException: java.io.IOException: Broken pipe at org.xnio.nio.test.AbstractNioTcpTest$10$2.handleEvent(AbstractNioTcpTest.java:420) at org.xnio.nio.test.AbstractNioTcpTest$10$2.handleEvent(AbstractNioTcpTest.java:407) at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092) at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:89) at org.xnio.nio.WorkerThread.run(WorkerThread.java:591) Caused by: java.io.IOException: Broken pipe at java.base/sun.nio.ch.FileDispatcherImpl.write0(Native Method) at java.base/sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) at java.base/sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:113) at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:58) at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:50) at java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:462) at org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:153) at org.xnio.ssl.JsseSslConduitEngine.doFlush(JsseSslConduitEngine.java:863) at org.xnio.ssl.JsseSslConduitEngine.handleWrapResult(JsseSslConduitEngine.java:410) at org.xnio.ssl.JsseSslConduitEngine.wrapCloseMessage(JsseSslConduitEngine.java:835) at org.xnio.ssl.JsseSslConduitEngine.closeOutbound(JsseSslConduitEngine.java:916) at org.xnio.ssl.JsseSslConduitEngine.close(JsseSslConduitEngine.java:955) at org.xnio.ssl.JsseSslStreamConnection.closeAction(JsseSslStreamConnection.java:126) at org.xnio.Connection.close(Connection.java:132) at org.xnio.channels.AssembledStreamChannel.close(AssembledStreamChannel.java:230) at org.xnio.nio.test.AbstractNioTcpTest$10$2.handleEvent(AbstractNioTcpTest.java:416) ... 7 more 12:39:02,687 WARN (XNIO-6 I/O-1) [org.xnio] <JsseSslConduitEngine.java:927> XNIO000307: Failed to close ssl engine when handling exception java.nio.channels.ClosedChannelException: java.nio.channels.ClosedChannelException at java.base/sun.nio.ch.SocketChannelImpl.ensureOpenAndConnected(SocketChannelImpl.java:180) at java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:452) at org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:153) at org.xnio.ssl.JsseSslConduitEngine.doFlush(JsseSslConduitEngine.java:863) at org.xnio.ssl.JsseSslConduitEngine.handleWrapResult(JsseSslConduitEngine.java:410) at org.xnio.ssl.JsseSslConduitEngine.wrapCloseMessage(JsseSslConduitEngine.java:835) at org.xnio.ssl.JsseSslConduitEngine.closeOutbound(JsseSslConduitEngine.java:916) at org.xnio.ssl.JsseSslStreamSinkConduit.truncateWrites(JsseSslStreamSinkConduit.java:176) at org.xnio.conduits.ConduitStreamSinkChannel.close(ConduitStreamSinkChannel.java:186) at org.xnio.IoUtils.safeClose(IoUtils.java:152) at org.xnio.conduits.WriteReadyHandler$ChannelListenerHandler.forceTermination(WriteReadyHandler.java:57) at org.xnio.nio.NioSocketConduit.forceTermination(NioSocketConduit.java:108) at org.xnio.nio.WorkerThread.run(WorkerThread.java:507) 12:39:02,689 INFO (main) [TEST] <AbstractNioTcpTest.java:432> Test: oneWayTransfer2 12:39:02,728 WARN (XNIO-7 I/O-1) [org.xnio] <JsseSslConduitEngine.java:927> XNIO000307: Failed to close ssl engine when handling exception java.nio.channels.ClosedChannelException: java.nio.channels.ClosedChannelException at java.base/sun.nio.ch.SocketChannelImpl.ensureOpenAndConnected(SocketChannelImpl.java:180) at java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:452) at org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:153) at org.xnio.ssl.JsseSslConduitEngine.doFlush(JsseSslConduitEngine.java:863) at org.xnio.ssl.JsseSslConduitEngine.handleWrapResult(JsseSslConduitEngine.java:410) at org.xnio.ssl.JsseSslConduitEngine.wrapCloseMessage(JsseSslConduitEngine.java:835) at org.xnio.ssl.JsseSslConduitEngine.closeOutbound(JsseSslConduitEngine.java:916) at org.xnio.ssl.JsseSslStreamSinkConduit.truncateWrites(JsseSslStreamSinkConduit.java:176) at org.xnio.conduits.ConduitStreamSinkChannel.close(ConduitStreamSinkChannel.java:186) at org.xnio.IoUtils.safeClose(IoUtils.java:152) at org.xnio.conduits.WriteReadyHandler$ChannelListenerHandler.forceTermination(WriteReadyHandler.java:57) at org.xnio.nio.NioSocketConduit.forceTermination(NioSocketConduit.java:108) at org.xnio.nio.WorkerThread.run(WorkerThread.java:507)
- causes
-
XNIO-347 XNIO SSL is broken with JDK11
- Open