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

[7.8.EAP] Race condition in ActiveMQSession (AMQ212051)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • +
    • Hide

      None

      Show
      None
    • Hide

      EAP:

      • add user: ./add-user.sh -a -u 'quickuser' -p 'quick123+' -g 'guest'
      • start: ./standalone.sh -b 0.0.0.0 -c standalone-full-test-case.xml -P=play.properties

      test-case

      • build and deploy: test-case/ear/target/jboss-jms-queue-ear.ear

      standalone-jms-reproducer

      • run: mvn exec:java -Dqueue.name=jms/queue/inQueue -Dmessage.number=1000 -Dclient.number=5
      Show
      EAP: add user: ./add-user.sh -a -u 'quickuser' -p 'quick123+' -g 'guest' start: ./standalone.sh -b 0.0.0.0 -c standalone-full-test-case.xml -P=play.properties test-case build and deploy: test-case/ear/target/jboss-jms-queue-ear.ear standalone-jms-reproducer run: mvn exec:java -Dqueue.name=jms/queue/inQueue -Dmessage.number=1000 -Dclient.number=5

      JBoss EAP throws the exception:

      2017-12-19 09:38:37,429 WARN  org.apache.activemq.artemis.core.client: AMQ212051: Invalid concurrent session usage. Sessions are not supposed to be used by more than one thread concurrently.: java.lang.Exception: trace
      	at org.apache.activemq.artemis.core.client.impl.ClientSessionImpl.startCall(ClientSessionImpl.java:1089)
      	at org.apache.activemq.artemis.core.client.impl.ClientSessionImpl.internalCreateQueue(ClientSessionImpl.java:1549)
      	at org.apache.activemq.artemis.core.client.impl.ClientSessionImpl.createTemporaryQueue(ClientSessionImpl.java:299)
      	at org.apache.activemq.artemis.jms.client.ActiveMQSession.createTemporaryQueue(ActiveMQSession.java:812)
      	at org.apache.activemq.artemis.ra.ActiveMQRASession.createTemporaryQueue(ActiveMQRASession.java:939)
      	at org.acme.jms.queue.ejb.MessagesProcessorImpl.sendMessage(MessagesProcessorImpl.java:66)
      	at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      

              dbruscin Domenico Francesco Bruscino
              mpetrov@redhat.com Michal Petrov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: