java.lang.IllegalStateException

An Executor cannot be shut down from the thread acquired from itself. Please make sure you are not calling releaseExternalResources() from an I/O worker thread.

Solutions on the web25919

  • via XWiki.org JIRA by Sorin Burjan, 10 months ago
    An Executor cannot be shut down from the thread acquired from itself. Please make sure you are not calling releaseExternalResources() from an I/O worker thread.
  • An Executor cannot be shut down from the thread acquired from itself. Please make sure you are not calling releaseExternalResources() from an I/O worker thread.
  • via Google Groups by Christian Schratter, 1 week ago
    > it supposed to be possible to run an application without working > ProcessorThreads?? > P.S.: I just saw that the line numbers in the thread heap dump are not > correct in relation to the official source files, since I added a > couple of
  • Stack trace

    • java.lang.IllegalStateException: An Executor cannot be shut down from the thread acquired from itself. Please make sure you are not calling releaseExternalResources() from an I/O worker thread. at org.jboss.netty.util.internal.ExecutorUtil.terminate(ExecutorUtil.java:71)[netty-3.2.5.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory.releaseExternalResources(NioClientSocketChannelFactory.java:143)[netty-3.2.5.Final.jar:na] at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.close(NettyAsyncHttpProvider.java:757)[async-http-client-1.6.5.jar:na] at com.ning.http.client.AsyncHttpClient.close(AsyncHttpClient.java:360)[async-http-client-1.6.5.jar:na] at org.sonatype.aether.connector.async.AsyncRepositoryConnector$GetTask$1.onThrowable(AsyncRepositoryConnector.java:672)[aether-connector-asynchttpclient-1.13.1.jar:na] at com.ning.http.client.providers.netty.NettyResponseFuture.getContent(NettyResponseFuture.java:248)[async-http-client-1.6.5.jar:na] at com.ning.http.client.providers.netty.NettyResponseFuture.done(NettyResponseFuture.java:269)[async-http-client-1.6.5.jar:na] at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.markAsDone(NettyAsyncHttpProvider.java:1560)[async-http-client-1.6.5.jar:na] at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.finishUpdate(NettyAsyncHttpProvider.java:1577)[async-http-client-1.6.5.jar:na] at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.messageReceived(NettyAsyncHttpProvider.java:1243)[async-http-client-1.6.5.jar:na] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)[netty-3.2.5.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)[netty-3.2.5.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:783)[netty-3.2.5.Final.jar:na] at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(ChunkedWriteHandler.java:149)[netty-3.2.5.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)[netty-3.2.5.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:783)[netty-3.2.5.Final.jar:na] at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:302)[netty-3.2.5.Final.jar:na] at org.jboss.netty.handler.codec.replay.ReplayingDecoder.unfoldAndFireMessageReceived(ReplayingDecoder.java:522)[netty-3.2.5.Final.jar:na] at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:506)[netty-3.2.5.Final.jar:na] at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:443)[netty-3.2.5.Final.jar:na] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)[netty-3.2.5.Final.jar:na] at org.jboss.netty.handler.codec.http.HttpClientCodec.handleUpstream(HttpClientCodec.java:77)[netty-3.2.5.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)[netty-3.2.5.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)[netty-3.2.5.Final.jar:na] at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)[netty-3.2.5.Final.jar:na] at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)[netty-3.2.5.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:349)[netty-3.2.5.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:280)[netty-3.2.5.Final.jar:na] at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:200)[netty-3.2.5.Final.jar:na] at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)[netty-3.2.5.Final.jar:na] at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44)[netty-3.2.5.Final.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[na:1.6.0_24] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[na:1.6.0_24] at java.lang.Thread.run(Thread.java:679)[na:1.6.0_24]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.