org.springframework.amqp.AmqpIOException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Hi, I am testing HA mode (Active/Active) in RabbitMQ 2.6.1. In one of the tests, I am stopping rabbitmq master "sudo /etc/init.d/rabbitmq-server stop". sometimes it works fine, but occasionally it leads to this NPE below: Consumer null (amq.ctag-6iSabxbsB8yndhtRW0FC2A==) method handleCancelOk for channel AMQChannel(amqp://guest@127.0.0.1:5672/,2) threw an exception for channel AMQChannel(amqp://guest@127.0.0.1:5672/,2): java.lang.NullPointerException at com.rabbitmq.client.impl.ChannelN$2.transformReply(ChannelN.java:929) at com.rabbitmq.client.impl.ChannelN$2.transformReply(ChannelN.java:921) at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.handleCommand(AMQChannel.java:328) at com.rabbitmq.client.impl.AMQChannel.handleCompleteInboundCommand(AMQChannel.java:157) at com.rabbitmq.client.impl.AMQChannel.handleFrame(AMQChannel.java:99) at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:443) Exception in thread "SimpleAsyncTaskExecutor-1" org.springframework.amqp.AmqpIOException: java.io.IOException at org.springframework.amqp.rabbit.connection.RabbitUtils.convertRabbitAccessException(RabbitUtils.java:109) at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:118) at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createConnection(CachingConnectionFactory.java:179) at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createBareChannel(CachingConnectionFactory.java:171) at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.access$200(CachingConnectionFactory.java:48) at org.springframework.amqp.rabbit.connection.CachingConnectionFactory$CachedChannelInvocationHandler.invoke(CachingConnectionFactory.java:296) at $Proxy142.basicRecover(Unknown Source) at org.springframework.amqp.rabbit.connection.RabbitUtils.closeMessageConsumer(RabbitUtils.java:129) at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.stop(BlockingQueueConsumer.java:210) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.restart(SimpleMessageListenerContainer.java:379) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$1300(SimpleMessageListenerContainer.java:56) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:551) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.IOException at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:110) at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:263) at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:403) at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:423) at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:116) ... 11 more Caused by: com.rabbitmq.client.ShutdownSignalException: connection error; reason: java.io.EOFException at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:67) at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:33) at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:337) at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:248) ... 14 more Caused by: java.io.EOFException at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:273) at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:99) at com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:140) at com.rabbitmq.client.impl.AMQConnection.readFrame(AMQConnection.java:399) at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:427)
    via by Dmitry,
  • Hi, I am testing HA mode (Active/Active) in RabbitMQ 2.6.1. In one of the tests, I am stopping rabbitmq master "sudo /etc/init.d/rabbitmq-server stop". sometimes it works fine, but occasionally it leads to this NPE below: Consumer null (amq.ctag-6iSabxbsB8yndhtRW0FC2A==) method handleCancelOk for channel AMQChannel(amqp://guest@127.0.0.1:5672/,2) threw an exception for channel AMQChannel(amqp://guest@127.0.0.1:5672/,2): java.lang.NullPointerException at com.rabbitmq.client.impl.ChannelN$2.transformReply(ChannelN.java:929) at com.rabbitmq.client.impl.ChannelN$2.transformReply(ChannelN.java:921) at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.handleCommand(AMQChannel.java:328) at com.rabbitmq.client.impl.AMQChannel.handleCompleteInboundCommand(AMQChannel.java:157) at com.rabbitmq.client.impl.AMQChannel.handleFrame(AMQChannel.java:99) at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:443) Exception in thread "SimpleAsyncTaskExecutor-1" org.springframework.amqp.AmqpIOException: java.io.IOException at org.springframework.amqp.rabbit.connection.RabbitUtils.convertRabbitAccessException(RabbitUtils.java:109) at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:118) at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createConnection(CachingConnectionFactory.java:179) at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createBareChannel(CachingConnectionFactory.java:171) at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.access$200(CachingConnectionFactory.java:48) at org.springframework.amqp.rabbit.connection.CachingConnectionFactory$CachedChannelInvocationHandler.invoke(CachingConnectionFactory.java:296) at $Proxy142.basicRecover(Unknown Source) at org.springframework.amqp.rabbit.connection.RabbitUtils.closeMessageConsumer(RabbitUtils.java:129) at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.stop(BlockingQueueConsumer.java:210) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.restart(SimpleMessageListenerContainer.java:379) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$1300(SimpleMessageListenerContainer.java:56) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:551) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.IOException at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:110) at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:263) at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:403) at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:423) at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:116) ... 11 more Caused by: com.rabbitmq.client.ShutdownSignalException: connection error; reason: java.io.EOFException at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:67) at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:33) at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:337) at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:248) ... 14 more Caused by: java.io.EOFException at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:273) at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:99) at com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:140) at com.rabbitmq.client.impl.AMQConnection.readFrame(AMQConnection.java:399) at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:427)
    via by Dmitry,
  • How to use AMQP with Active MQ in Mule
    via Stack Overflow by Utsav
    ,
  • How to tolerate RabbitMQ restarts in Langohr?
    via Stack Overflow by JohnJ
    ,
  • rabbitmq not working with java
    via Stack Overflow by sau
    ,
  • "Channel shutdown: connection error"
    via by Unknown author,
    • org.springframework.amqp.AmqpIOException: java.io.IOException at org.springframework.amqp.rabbit.connection.RabbitUtils.convertRabbitAccessException(RabbitUtils.java:109) at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:118) at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createConnection(CachingConnectionFactory.java:179) at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createBareChannel(CachingConnectionFactory.java:171) at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.access$200(CachingConnectionFactory.java:48) at org.springframework.amqp.rabbit.connection.CachingConnectionFactory$CachedChannelInvocationHandler.invoke(CachingConnectionFactory.java:296) at $Proxy142.basicRecover(Unknown Source) at org.springframework.amqp.rabbit.connection.RabbitUtils.closeMessageConsumer(RabbitUtils.java:129) at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.stop(BlockingQueueConsumer.java:210) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.restart(SimpleMessageListenerContainer.java:379) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$1300(SimpleMessageListenerContainer.java:56) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:551) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.IOException at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:110) at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:263) at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:403) at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:423) at org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.createBareConnection(AbstractConnectionFactory.java:116) ... 11 more Caused by: com.rabbitmq.client.ShutdownSignalException: connection error; reason: java.io.EOFException at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:67) at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:33) at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:337) at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:248) ... 14 more Caused by: java.io.EOFException at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:273) at com.rabbitmq.client.impl.Frame.readFrom(Frame.java:99) at com.rabbitmq.client.impl.SocketFrameHandler.readFrame(SocketFrameHandler.java:140) at com.rabbitmq.client.impl.AMQConnection.readFrame(AMQConnection.java:399) at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:427)

    Users with the same issue

    HronomHronom
    14 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    5 more bugmates