java.lang.IllegalStateException

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.

  • We have had an issue with the *rabbitTemplate.convertAndSend(String, Object, CorrelationData)* hanging occasionally. On further analysis, we think the root of the problem is in *org.springframework.amqp.rabbit.support.PublisherCallbackChannelImpl.processAck(PublisherCallbackChannelImpl)* In a large message volume environment when we throttle back the hardware we see this stack trace in the console. {code} DefaultExceptionHandler: ConfirmListener.handle{N,A}ck threw an exception for channel AMQChannel(amqp://spectrum@192.168.1.139:5672vhost.spectrum,1): java.lang.IllegalStateException at java.util.TreeMap$Entry.getValue(TreeMap.java:139) at org.springframework.amqp.rabbit.support.PublisherCallbackChannelImpl.processAck(PublisherCallbackChannelImpl.java:658) at org.springframework.amqp.rabbit.support.PublisherCallbackChannelImpl.handleAck(PublisherCallbackChannelImpl.java:628) at com.rabbitmq.client.impl.ChannelN.processAsync(ChannelN.java:372) at com.rabbitmq.client.impl.AMQChannel.handleCompleteInboundCommand(AMQChannel.java:144) at com.rabbitmq.client.impl.AMQChannel.handleFrame(AMQChannel.java:91) at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:551) {code} I think that when this exception is thrown, the channel goes in to a bad state and does not respond when the *rabbitTemplate.convertAndSend()* is called. Note: We were not able to use the PublisherCallback functionality in production. We devised a different method to ensure message delivery. We are using: * spring-rabbit-1.3.6.RELEASE.jar * spring-amqp-1.3.2.RELEASE.jar Please let me know what additional information I can provide.
    via by Jared White,
  • We have had an issue with the *rabbitTemplate.convertAndSend(String, Object, CorrelationData)* hanging occasionally. On further analysis, we think the root of the problem is in *org.springframework.amqp.rabbit.support.PublisherCallbackChannelImpl.processAck(PublisherCallbackChannelImpl)* In a large message volume environment when we throttle back the hardware we see this stack trace in the console. {code} DefaultExceptionHandler: ConfirmListener.handle{N,A}ck threw an exception for channel AMQChannel(amqp://spectrum@192.168.1.139:5672vhost.spectrum,1): java.lang.IllegalStateException at java.util.TreeMap$Entry.getValue(TreeMap.java:139) at org.springframework.amqp.rabbit.support.PublisherCallbackChannelImpl.processAck(PublisherCallbackChannelImpl.java:658) at org.springframework.amqp.rabbit.support.PublisherCallbackChannelImpl.handleAck(PublisherCallbackChannelImpl.java:628) at com.rabbitmq.client.impl.ChannelN.processAsync(ChannelN.java:372) at com.rabbitmq.client.impl.AMQChannel.handleCompleteInboundCommand(AMQChannel.java:144) at com.rabbitmq.client.impl.AMQChannel.handleFrame(AMQChannel.java:91) at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:551) {code} I think that when this exception is thrown, the channel goes in to a bad state and does not respond when the *rabbitTemplate.convertAndSend()* is called. Note: We were not able to use the PublisherCallback functionality in production. We devised a different method to ensure message delivery. We are using: * spring-rabbit-1.3.6.RELEASE.jar * spring-amqp-1.3.2.RELEASE.jar Please let me know what additional information I can provide.
    via by Jared White,
    • java.lang.IllegalStateException at java.util.TreeMap$Entry.getValue(TreeMap.java:139) at org.springframework.amqp.rabbit.support.PublisherCallbackChannelImpl.processAck(PublisherCallbackChannelImpl.java:658) at org.springframework.amqp.rabbit.support.PublisherCallbackChannelImpl.handleAck(PublisherCallbackChannelImpl.java:628) at com.rabbitmq.client.impl.ChannelN.processAsync(ChannelN.java:372) at com.rabbitmq.client.impl.AMQChannel.handleCompleteInboundCommand(AMQChannel.java:144) at com.rabbitmq.client.impl.AMQChannel.handleFrame(AMQChannel.java:91) at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:551)
    No Bugmate found.