StackOverflowError - A channel event listener threw an exception
deveshmishra Jun 11, 2015 6:21 AMWe are receiving multiple errors and a hang situation while shutting down JBOSS. I upgraded to latest xnio and remoting packages but still see the same error Following is the stack trace ..
10 Jun 2015 09:42:59,405 ERROR [org.xnio.listener] (Remoting "management-client" read-1) null A channel event listener threw an exception: java.lang.StackOverflowError at org.xnio.nio.NioHandle.cancelKey(NioHandle.java:63) at org.xnio.nio.AbstractNioStreamChannel.cancelWriteKey(AbstractNioStreamChannel.java:389) at org.xnio.nio.NioTcpChannel.shutdownWrites(NioTcpChannel.java:193) at org.xnio.ssl.JsseConnectedSslStreamChannel.shutdownWritesAction(JsseConnectedSslStreamChannel.java:590) at org.xnio.channels.TranslatingSuspendableChannel.shutdownWrites(TranslatingSuspendableChannel.java:699) at org.xnio.channels.TranslatingSuspendableChannel.shutdownWritesAction(TranslatingSuspendableChannel.java:710) at org.xnio.channels.TranslatingSuspendableChannel.shutdownWrites(TranslatingSuspendableChannel.java:699) at org.jboss.remoting3.remote.RemoteConnection$RemoteWriteListener.send(RemoteConnection.java:302) at org.jboss.remoting3.remote.RemoteConnection.send(RemoteConnection.java:124) at org.jboss.remoting3.remote.RemoteConnectionHandler.sendCloseRequestBody(RemoteConnectionHandler.java:284) at org.jboss.remoting3.remote.RemoteConnectionHandler.sendCloseRequestBody(RemoteConnectionHandler.java:273) at org.jboss.remoting3.remote.RemoteConnectionHandler.receiveCloseRequest(RemoteConnectionHandler.java:211) at org.jboss.remoting3.remote.RemoteReadListener.handleEvent(RemoteReadListener.java:106) at org.jboss.remoting3.remote.RemoteReadListener.handleEvent(RemoteReadListener.java:45) at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72) at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:189) at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:103) at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72) at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:189) at org.xnio.ssl.JsseConnectedSslStreamChannel.handleReadable(JsseConnectedSslStreamChannel.java:180) at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:103) at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72) at org.xnio.nio.NioHandle.run(NioHandle.java:90) at org.xnio.nio.WorkerThread.run(WorkerThread.java:198)
The same thread printed the following trace before ...
10 Jun 2015 09:42:52,469 ERROR [org.jboss.remoting.handler-errors] (Thread-87) Close handler threw an exception: java.lang.NullPointerException
at org.jboss.as.cli.impl.CommandContextImpl.handleClose(CommandContextImpl.java:1206) [jboss-as-cli-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
at org.jboss.as.cli.impl.CLIModelControllerClient$4.handleClose(CLIModelControllerClient.java:156) [jboss-as-cli-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
at org.jboss.as.cli.impl.CLIModelControllerClient$4.handleClose(CLIModelControllerClient.java:153) [jboss-as-cli-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
at org.jboss.remoting3.spi.SpiUtils.safeHandleClose(SpiUtils.java:54)
at org.jboss.remoting3.spi.AbstractHandleableCloseable$CloseHandlerTask.run(AbstractHandleableCloseable.java:501)
at org.jboss.remoting3.spi.AbstractHandleableCloseable.runCloseTask(AbstractHandleableCloseable.java:406)
at org.jboss.remoting3.spi.AbstractHandleableCloseable.closeComplete(AbstractHandleableCloseable.java:277)
at org.jboss.remoting3.ConnectionImpl.access$000(ConnectionImpl.java:38)
at org.jboss.remoting3.ConnectionImpl$1.handleClose(ConnectionImpl.java:55)
at org.jboss.remoting3.ConnectionImpl$1.handleClose(ConnectionImpl.java:53)
at org.jboss.remoting3.spi.SpiUtils.safeHandleClose(SpiUtils.java:54)
at org.jboss.remoting3.spi.AbstractHandleableCloseable$CloseHandlerTask.run(AbstractHandleableCloseable.java:501)
at org.jboss.remoting3.spi.AbstractHandleableCloseable.runCloseTask(AbstractHandleableCloseable.java:406)
at org.jboss.remoting3.spi.AbstractHandleableCloseable.addCloseHandler(AbstractHandleableCloseable.java:400)
at org.jboss.remoting3.ConnectionImpl.closeAction(ConnectionImpl.java:53)
at org.jboss.remoting3.spi.AbstractHandleableCloseable.close(AbstractHandleableCloseable.java:153)
at org.jboss.as.protocol.StreamUtils.safeClose(StreamUtils.java:66)
at org.jboss.as.protocol.ProtocolConnectionManager.shutdown(ProtocolConnectionManager.java:119)
at org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.close(FutureManagementChannel.java:198)
at org.jboss.as.protocol.StreamUtils.safeClose(StreamUtils.java:66)
at org.jboss.as.cli.impl.CLIModelControllerClient.close(CLIModelControllerClient.java:175) [jboss-as-cli-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
at org.jboss.as.protocol.StreamUtils.safeClose(StreamUtils.java:66)
at org.jboss.as.cli.impl.CommandContextImpl.disconnectController(CommandContextImpl.java:960) [jboss-as-cli-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
at org.jboss.as.cli.impl.CommandContextImpl.terminateSession(CommandContextImpl.java:630) [jboss-as-cli-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
at org.jboss.as.cli.impl.CommandContextFactoryImpl$1.shutdown(CommandContextFactoryImpl.java:84) [jboss-as-cli-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
at org.jboss.as.cli.impl.CliShutdownHook$1.run(CliShutdownHook.java:46) [jboss-as-cli-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
at java.lang.Thread.run(Thread.java:801) [vm.jar:1.7.0]