java.lang.IllegalStateException

await*() in I/O thread causes a dead lock or sudden performance drop. Use addListener() instead or call await*() from a different thread.

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web19

  • via Unknown by Michael Kjellman,
  • via Unknown by Michael Kjellman,
  • via Unknown by Joaquin Casares,
  • Stack trace

    • java.lang.IllegalStateException: await*() in I/O thread causes a dead lock or sudden performance drop. Use addListener() instead or call await*() from a different thread. at org.jboss.netty.channel.DefaultChannelFuture.checkDeadLock(DefaultChannelFuture.java:342) at org.jboss.netty.channel.DefaultChannelFuture.awaitUninterruptibly(DefaultChannelFuture.java:256) at com.datastax.driver.core.Connection.<init>(Connection.java:104) at com.datastax.driver.core.Connection.<init>(Connection.java:50) at com.datastax.driver.core.Connection$Factory.open(Connection.java:361) at com.datastax.driver.core.ControlConnection.tryConnect(ControlConnection.java:181) at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:144) at com.datastax.driver.core.ControlConnection.reconnect(ControlConnection.java:98) at com.datastax.driver.core.ControlConnection.onDown(ControlConnection.java:402) at com.datastax.driver.core.Cluster$Manager.onDown(Cluster.java:582) at com.datastax.driver.core.Host$HealthMonitor.setDown(Host.java:178) at com.datastax.driver.core.Host$HealthMonitor.signalConnectionFailure(Host.java:195) at com.datastax.driver.core.HostConnectionPool.returnConnection(HostConnectionPool.java:206) at com.datastax.driver.core.RequestHandler.onException(RequestHandler.java:390) at com.datastax.driver.core.Connection$Dispatcher.errorOutAllHandler(Connection.java:468) at com.datastax.driver.core.Connection.defunct(Connection.java:182) at com.datastax.driver.core.Connection$Dispatcher.exceptionCaught(Connection.java:461) at org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:60) at org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:60) at org.jboss.netty.handler.codec.frame.FrameDecoder.exceptionCaught(FrameDecoder.java:377) at org.jboss.netty.channel.Channels.fireExceptionCaught(Channels.java:525) at org.jboss.netty.channel.AbstractChannelSink.exceptionCaught(AbstractChannelSink.java:48) at org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:60) at org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:60) at org.jboss.netty.handler.codec.frame.FrameDecoder.cleanup(FrameDecoder.java:493) at org.jboss.netty.handler.codec.frame.FrameDecoder.channelClosed(FrameDecoder.java:371) at org.jboss.netty.channel.Channels.fireChannelClosed(Channels.java:468) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.close(AbstractNioWorker.java:351) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:93) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) 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:722)

    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

    We couldn't find other users who have seen this exception.