Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-2872

Contention between concurrent connection start and new session creation - start can find partially created session

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.4.0
    • 5.4.1
    • JMS client
    • None

    Description

      Exception in thread "Thread-20" java.lang.NullPointerException
      	at org.apache.activemq.ActiveMQSession.start(ActiveMQSession.java:1637)
      	at org.apache.activemq.ActiveMQConnection.start(ActiveMQConnection.java:508)
      	at org.springframework.jms.connection.SingleConnectionFactory$SharedConnectionInvocationHandler.invoke(SingleConnectionFactory.java:514)
      	at $Proxy5.start(Unknown Source)
      	at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:464)
      	at org.springframework.jms.core.JmsTemplate.receiveSelected(JmsTemplate.java:708)
      	at org.springframework.jms.core.JmsTemplate.receive(JmsTemplate.java:686)
      	at com.iona.cpi.failure.http.HttpLoadTest$Receiver.run(HttpLoadTest.java:90)
      	at java.lang.Thread.run(Thread.java:613)

      Issue is async connection start and session creation. The partially created session is added to the connection too soon.

      Attachments

        Activity

          People

            gtully Gary Tully
            gtully Gary Tully
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: