java.lang.IllegalStateException

Spring JIRA | Jared White | 2 years ago
  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
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Causes for IllegalStateException

    Stack Overflow | 4 years ago | Gokul Nath
    java.lang.IllegalStateException
  5. 0

    Grails, Tomcat deployment error

    Stack Overflow | 4 years ago | Eddard Stark
    java.lang.IllegalStateException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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