java.lang.IllegalStateException

Spring JIRA | Jared White | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    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.

    Spring JIRA | 2 years ago | Jared White
    java.lang.IllegalStateException
  2. 0

    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.

    Spring JIRA | 2 years ago | Jared White
    java.lang.IllegalStateException

    Root Cause Analysis

    1. java.lang.IllegalStateException

      No message provided

      at java.util.TreeMap$Entry.getValue()
    2. Java RT
      TreeMap$Entry.getValue
      1. java.util.TreeMap$Entry.getValue(TreeMap.java:139)
      1 frame
    3. Spring RabbitMQ Support
      PublisherCallbackChannelImpl.handleAck
      1. org.springframework.amqp.rabbit.support.PublisherCallbackChannelImpl.processAck(PublisherCallbackChannelImpl.java:658)
      2. org.springframework.amqp.rabbit.support.PublisherCallbackChannelImpl.handleAck(PublisherCallbackChannelImpl.java:628)
      2 frames
    4. RabbitMQ Java Client
      AMQConnection$MainLoop.run
      1. com.rabbitmq.client.impl.ChannelN.processAsync(ChannelN.java:372)
      2. com.rabbitmq.client.impl.AMQChannel.handleCompleteInboundCommand(AMQChannel.java:144)
      3. com.rabbitmq.client.impl.AMQChannel.handleFrame(AMQChannel.java:91)
      4. com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:551)
      4 frames