Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-7861

[LTS] [Possible Regression] Errors occurred during the buffering operation : javax.jms.IllegalStateException: Cannot add a producer to a connection that had not been registered:

XMLWordPrintable

    • False
    • None
    • False
    • Hide

      -Set up a broker using the attached broker.xml for example configuration. Use the attached logging.properties for logging configuration
      -Configure and build the attached camel-bridge application (it will create 10 consumers that copy messages from queue rec1 to queue rec1.response)
      -Configure and run the attached amqp producer (producer will produce messages to RequestQueue, which are diverted to rec1)

      After some time. the broker will show the stack traces below:

      2022-08-27 14:09:18,656 ERROR [org.apache.activemq.artemis.core.server] error init session: java.util.ConcurrentModificationException
      	at java.base/java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:970) [java.base:]
      	at java.base/java.util.LinkedList$ListItr.next(LinkedList.java:892) [java.base:]
      	at org.apache.activemq.artemis.core.persistence.impl.journal.OperationContextImpl.toString(OperationContextImpl.java:391) [artemis-server-2.21.0.redhat-00025.jar:2.21.0.redhat-00025]
      	at java.base/java.lang.String.valueOf(String.java:2951) [java.base:]
      	at java.base/java.util.Arrays.toString(Arrays.java:5113) [java.base:]
      	at org.apache.activemq.artemis.logs.AuditLogger.arrayToString(AuditLogger.java:151) [artemis-commons-2.21.0.redhat-00025.jar:]
      	at org.apache.activemq.artemis.logs.AuditLogger.createCoreSession(AuditLogger.java:2296) [artemis-commons-2.21.0.redhat-00025.jar:]
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.createSession(ActiveMQServerImpl.java:1712) [artemis-server-2.21.0.redhat-00025.jar:2.21.0.redhat-00025]
      	at org.apache.activemq.artemis.core.protocol.openwire.amq.AMQSession.initialize(AMQSession.java:133) [artemis-openwire-protocol-2.21.0.redhat-00025.jar:2.21.0.redhat-00025]
      	at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection.addSession(OpenWireConnection.java:1100) [artemis-openwire-protocol-2.21.0.redhat-00025.jar:2.21.0.redhat-00025]
      	at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection$CommandProcessor.processAddSession(OpenWireConnection.java:1464) [artemis-openwire-protocol-2.21.0.redhat-00025.jar:2.21.0.redhat-00025]
      	at org.apache.activemq.command.SessionInfo.visit(SessionInfo.java:66) [activemq-client-5.11.0.redhat-630516.jar:5.11.0.redhat-630516]
      	at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection.act(OpenWireConnection.java:368) [artemis-openwire-protocol-2.21.0.redhat-00025.jar:2.21.0.redhat-00025]
      	at org.apache.activemq.artemis.utils.actors.ThresholdActor.doTask(ThresholdActor.java:67) [artemis-commons-2.21.0.redhat-00025.jar:]
      	at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.21.0.redhat-00025.jar:]
      	at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:42) [artemis-commons-2.21.0.redhat-00025.jar:]
      	at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:31) [artemis-commons-2.21.0.redhat-00025.jar:]
      	at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.21.0.redhat-00025.jar:]
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [java.base:]
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [java.base:]
      	at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) [artemis-commons-2.21.0.redhat-00025.jar:]
      
      2022-08-27 14:09:18,669 WARN  [org.apache.activemq.artemis.core.server] Errors occurred during the buffering operation : java.lang.NullPointerException
      	at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection.addSession(OpenWireConnection.java:1103) [artemis-openwire-protocol-2.21.0.redhat-00025.jar:2.21.0.redhat-00025]
      	at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection$CommandProcessor.processAddSession(OpenWireConnection.java:1464) [artemis-openwire-protocol-2.21.0.redhat-00025.jar:2.21.0.redhat-00025]
      	at org.apache.activemq.command.SessionInfo.visit(SessionInfo.java:66) [activemq-client-5.11.0.redhat-630516.jar:5.11.0.redhat-630516]
      	at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection.act(OpenWireConnection.java:368) [artemis-openwire-protocol-2.21.0.redhat-00025.jar:2.21.0.redhat-00025]
      	at org.apache.activemq.artemis.utils.actors.ThresholdActor.doTask(ThresholdActor.java:67) [artemis-commons-2.21.0.redhat-00025.jar:]
      	at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.21.0.redhat-00025.jar:]
      	at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:42) [artemis-commons-2.21.0.redhat-00025.jar:]
      	at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:31) [artemis-commons-2.21.0.redhat-00025.jar:]
      	at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.21.0.redhat-00025.jar:]
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [java.base:]
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [java.base:]
      	at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) [artemis-commons-2.21.0.redhat-00025.jar:]
      
      2022-08-27 14:09:18,673 WARN  [org.apache.activemq.artemis.core.server] Errors occurred during the buffering operation : javax.jms.IllegalStateException: Cannot add a producer to a session that had not been registered: ID:ibm-p8-17-fsp.mgmt.pnr.lab.eng.rdu2.redhat.com-32893-1661623712038-3:1:122
      	at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection$CommandProcessor.processAddProducer(OpenWireConnection.java:1235) [artemis-openwire-protocol-2.21.0.redhat-00025.jar:2.21.0.redhat-00025]
      	at org.apache.activemq.command.ProducerInfo.visit(ProducerInfo.java:108) [activemq-client-5.11.0.redhat-630516.jar:5.11.0.redhat-630516]
      	at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection.act(OpenWireConnection.java:368) [artemis-openwire-protocol-2.21.0.redhat-00025.jar:2.21.0.redhat-00025]
      	at org.apache.activemq.artemis.utils.actors.ThresholdActor.doTask(ThresholdActor.java:67) [artemis-commons-2.21.0.redhat-00025.jar:]
      	at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.21.0.redhat-00025.jar:]
      	at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:42) [artemis-commons-2.21.0.redhat-00025.jar:]
      	at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:31) [artemis-commons-2.21.0.redhat-00025.jar:]
      	at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.21.0.redhat-00025.jar:]
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [java.base:]
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [java.base:]
      	at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) [artemis-commons-2.21.0.redhat-00025.jar:]
      
      2022-08-27 14:09:18,681 WARN  [org.apache.activemq.artemis.core.server] Errors occurred during the buffering operation : javax.jms.IllegalStateException: Cannot remove session that had not been registered: ID:ibm-p8-17-fsp.mgmt.pnr.lab.eng.rdu2.redhat.com-32893-1661623712038-3:1:122
      	at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection$CommandProcessor.processRemoveSession(OpenWireConnection.java:1288) [artemis-openwire-protocol-2.21.0.redhat-00025.jar:2.21.0.redhat-00025]
      	at org.apache.activemq.command.RemoveInfo.visit(RemoveInfo.java:75) [activemq-client-5.11.0.redhat-630516.jar:5.11.0.redhat-630516]
      	at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection.act(OpenWireConnection.java:368) [artemis-openwire-protocol-2.21.0.redhat-00025.jar:2.21.0.redhat-00025]
      	at org.apache.activemq.artemis.utils.actors.ThresholdActor.doTask(ThresholdActor.java:67) [artemis-commons-2.21.0.redhat-00025.jar:]
      	at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.21.0.redhat-00025.jar:]
      	at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:42) [artemis-commons-2.21.0.redhat-00025.jar:]
      	at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:31) [artemis-commons-2.21.0.redhat-00025.jar:]
      	at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.21.0.redhat-00025.jar:]
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [java.base:]
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [java.base:]
      	at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) [artemis-commons-2.21.0.redhat-00025.jar:]
      Show
      -Set up a broker using the attached broker.xml for example configuration. Use the attached logging.properties for logging configuration -Configure and build the attached camel-bridge application (it will create 10 consumers that copy messages from queue rec1 to queue rec1.response) -Configure and run the attached amqp producer (producer will produce messages to RequestQueue, which are diverted to rec1) After some time. the broker will show the stack traces below: 2022-08-27 14:09:18,656 ERROR [org.apache.activemq.artemis.core.server] error init session: java.util.ConcurrentModificationException at java.base/java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:970) [java.base:] at java.base/java.util.LinkedList$ListItr.next(LinkedList.java:892) [java.base:] at org.apache.activemq.artemis.core.persistence.impl.journal.OperationContextImpl.toString(OperationContextImpl.java:391) [artemis-server-2.21.0.redhat-00025.jar:2.21.0.redhat-00025] at java.base/java.lang.String.valueOf(String.java:2951) [java.base:] at java.base/java.util.Arrays.toString(Arrays.java:5113) [java.base:] at org.apache.activemq.artemis.logs.AuditLogger.arrayToString(AuditLogger.java:151) [artemis-commons-2.21.0.redhat-00025.jar:] at org.apache.activemq.artemis.logs.AuditLogger.createCoreSession(AuditLogger.java:2296) [artemis-commons-2.21.0.redhat-00025.jar:] at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.createSession(ActiveMQServerImpl.java:1712) [artemis-server-2.21.0.redhat-00025.jar:2.21.0.redhat-00025] at org.apache.activemq.artemis.core.protocol.openwire.amq.AMQSession.initialize(AMQSession.java:133) [artemis-openwire-protocol-2.21.0.redhat-00025.jar:2.21.0.redhat-00025] at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection.addSession(OpenWireConnection.java:1100) [artemis-openwire-protocol-2.21.0.redhat-00025.jar:2.21.0.redhat-00025] at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection$CommandProcessor.processAddSession(OpenWireConnection.java:1464) [artemis-openwire-protocol-2.21.0.redhat-00025.jar:2.21.0.redhat-00025] at org.apache.activemq.command.SessionInfo.visit(SessionInfo.java:66) [activemq-client-5.11.0.redhat-630516.jar:5.11.0.redhat-630516] at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection.act(OpenWireConnection.java:368) [artemis-openwire-protocol-2.21.0.redhat-00025.jar:2.21.0.redhat-00025] at org.apache.activemq.artemis.utils.actors.ThresholdActor.doTask(ThresholdActor.java:67) [artemis-commons-2.21.0.redhat-00025.jar:] at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.21.0.redhat-00025.jar:] at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:42) [artemis-commons-2.21.0.redhat-00025.jar:] at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:31) [artemis-commons-2.21.0.redhat-00025.jar:] at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.21.0.redhat-00025.jar:] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [java.base:] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [java.base:] at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) [artemis-commons-2.21.0.redhat-00025.jar:] 2022-08-27 14:09:18,669 WARN [org.apache.activemq.artemis.core.server] Errors occurred during the buffering operation : java.lang.NullPointerException at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection.addSession(OpenWireConnection.java:1103) [artemis-openwire-protocol-2.21.0.redhat-00025.jar:2.21.0.redhat-00025] at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection$CommandProcessor.processAddSession(OpenWireConnection.java:1464) [artemis-openwire-protocol-2.21.0.redhat-00025.jar:2.21.0.redhat-00025] at org.apache.activemq.command.SessionInfo.visit(SessionInfo.java:66) [activemq-client-5.11.0.redhat-630516.jar:5.11.0.redhat-630516] at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection.act(OpenWireConnection.java:368) [artemis-openwire-protocol-2.21.0.redhat-00025.jar:2.21.0.redhat-00025] at org.apache.activemq.artemis.utils.actors.ThresholdActor.doTask(ThresholdActor.java:67) [artemis-commons-2.21.0.redhat-00025.jar:] at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.21.0.redhat-00025.jar:] at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:42) [artemis-commons-2.21.0.redhat-00025.jar:] at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:31) [artemis-commons-2.21.0.redhat-00025.jar:] at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.21.0.redhat-00025.jar:] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [java.base:] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [java.base:] at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) [artemis-commons-2.21.0.redhat-00025.jar:] 2022-08-27 14:09:18,673 WARN [org.apache.activemq.artemis.core.server] Errors occurred during the buffering operation : javax.jms.IllegalStateException: Cannot add a producer to a session that had not been registered: ID:ibm-p8-17-fsp.mgmt.pnr.lab.eng.rdu2.redhat.com-32893-1661623712038-3:1:122 at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection$CommandProcessor.processAddProducer(OpenWireConnection.java:1235) [artemis-openwire-protocol-2.21.0.redhat-00025.jar:2.21.0.redhat-00025] at org.apache.activemq.command.ProducerInfo.visit(ProducerInfo.java:108) [activemq-client-5.11.0.redhat-630516.jar:5.11.0.redhat-630516] at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection.act(OpenWireConnection.java:368) [artemis-openwire-protocol-2.21.0.redhat-00025.jar:2.21.0.redhat-00025] at org.apache.activemq.artemis.utils.actors.ThresholdActor.doTask(ThresholdActor.java:67) [artemis-commons-2.21.0.redhat-00025.jar:] at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.21.0.redhat-00025.jar:] at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:42) [artemis-commons-2.21.0.redhat-00025.jar:] at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:31) [artemis-commons-2.21.0.redhat-00025.jar:] at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.21.0.redhat-00025.jar:] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [java.base:] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [java.base:] at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) [artemis-commons-2.21.0.redhat-00025.jar:] 2022-08-27 14:09:18,681 WARN [org.apache.activemq.artemis.core.server] Errors occurred during the buffering operation : javax.jms.IllegalStateException: Cannot remove session that had not been registered: ID:ibm-p8-17-fsp.mgmt.pnr.lab.eng.rdu2.redhat.com-32893-1661623712038-3:1:122 at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection$CommandProcessor.processRemoveSession(OpenWireConnection.java:1288) [artemis-openwire-protocol-2.21.0.redhat-00025.jar:2.21.0.redhat-00025] at org.apache.activemq.command.RemoveInfo.visit(RemoveInfo.java:75) [activemq-client-5.11.0.redhat-630516.jar:5.11.0.redhat-630516] at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection.act(OpenWireConnection.java:368) [artemis-openwire-protocol-2.21.0.redhat-00025.jar:2.21.0.redhat-00025] at org.apache.activemq.artemis.utils.actors.ThresholdActor.doTask(ThresholdActor.java:67) [artemis-commons-2.21.0.redhat-00025.jar:] at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.21.0.redhat-00025.jar:] at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:42) [artemis-commons-2.21.0.redhat-00025.jar:] at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:31) [artemis-commons-2.21.0.redhat-00025.jar:] at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.21.0.redhat-00025.jar:] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [java.base:] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [java.base:] at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) [artemis-commons-2.21.0.redhat-00025.jar:]

      OperationContext should be logged for auditing purposes due to concurrency. Can't be synchronized due to major performance impact and it's better to remove it.

      Original description:
      In an environment with 2 brokers connected via AMQP Bridge, with a producer sending messages to the upstream broker via openwire, we are seeing an initial ConcurrentModificationException, as below:

      2022-08-23 16:32:02,909 ERROR [org.apache.activemq.artemis.core.server] error init session: java.util.ConcurrentModificationException
      	at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:966) [rt.jar:1.8.0_322]
      	at java.util.LinkedList$ListItr.next(LinkedList.java:888) [rt.jar:1.8.0_322]
      	at org.apache.activemq.artemis.core.persistence.impl.journal.OperationContextImpl.toString(OperationContextImpl.java:391) [artemis-server-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at java.lang.String.valueOf(String.java:2994) [rt.jar:1.8.0_322]
      	at java.util.Arrays.toString(Arrays.java:4571) [rt.jar:1.8.0_322]
      	at org.apache.activemq.artemis.logs.AuditLogger.arrayToString(AuditLogger.java:151) [artemis-commons-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.artemis.logs.AuditLogger.createCoreSession(AuditLogger.java:2296) [artemis-commons-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.createSession(ActiveMQServerImpl.java:1682) [artemis-server-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.artemis.core.protocol.openwire.amq.AMQSession.initialize(AMQSession.java:133) [artemis-openwire-protocol-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection.addSession(OpenWireConnection.java:1090) [artemis-openwire-protocol-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection$CommandProcessor.processAddSession(OpenWireConnection.java:1444) [artemis-openwire-protocol-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.command.SessionInfo.visit(SessionInfo.java:66) [activemq-client-5.11.0.redhat-630515.jar:5.11.0.redhat-630515]
      	at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection.act(OpenWireConnection.java:365) [artemis-openwire-protocol-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.artemis.utils.actors.ThresholdActor.doTask(ThresholdActor.java:67) [artemis-commons-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:42) [artemis-commons-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:31) [artemis-commons-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [rt.jar:1.8.0_322]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [rt.jar:1.8.0_322]
      	at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) [artemis-commons-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      

      Following this, we see a NullPointerException:

      2022-08-23 16:32:02,935 WARN  [org.apache.activemq.artemis.core.server] Errors occurred during the buffering operation : java.lang.NullPointerException
      	at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection.addSession(OpenWireConnection.java:1093) [artemis-openwire-protocol-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection$CommandProcessor.processAddSession(OpenWireConnection.java:1444) [artemis-openwire-protocol-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.command.SessionInfo.visit(SessionInfo.java:66) [activemq-client-5.11.0.redhat-630515.jar:5.11.0.redhat-630515]
      	at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection.act(OpenWireConnection.java:365) [artemis-openwire-protocol-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.artemis.utils.actors.ThresholdActor.doTask(ThresholdActor.java:67) [artemis-commons-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:42) [artemis-commons-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:31) [artemis-commons-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [rt.jar:1.8.0_322]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [rt.jar:1.8.0_322]
      	at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) [artemis-commons-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      

      Thereafter, we see repeated IllegalStateExceptions as in the related issue:

      2022-08-23 16:32:02,938 WARN  [org.apache.activemq.artemis.core.server] Errors occurred during the buffering operation : javax.jms.IllegalStateException: Cannot add a producer to a session that had not been registered: ID:erps0jb02.dbag.prod-40587-1661192832995-3:1:345
      	at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection$CommandProcessor.processAddProducer(OpenWireConnection.java:1215) [artemis-openwire-protocol-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.command.ProducerInfo.visit(ProducerInfo.java:108) [activemq-client-5.11.0.redhat-630515.jar:5.11.0.redhat-630515]
      	at org.apache.activemq.artemis.core.protocol.openwire.OpenWireConnection.act(OpenWireConnection.java:365) [artemis-openwire-protocol-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.artemis.utils.actors.ThresholdActor.doTask(ThresholdActor.java:67) [artemis-commons-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:42) [artemis-commons-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:31) [artemis-commons-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:65) [artemis-commons-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [rt.jar:1.8.0_322]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [rt.jar:1.8.0_322]
      	at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118) [artemis-commons-2.16.0.redhat-00036.jar:2.16.0.redhat-00036]
      

              rhn-support-jbertram Justin Bertram
              rhn-support-dhawkins Duane Hawkins
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: