Uploaded image for project: 'Qpid JMS'
  1. Qpid JMS
  2. QPIDJMS-307

fix handling of tx declare rejection while creating a transacted Session

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.23.0
    • 0.24.0
    • qpid-jms-client
    • None

    Description

      The client doesnt currently handle the failure to create a transacted session when running against Dispatch 0.7.0, NPE'ing in the process giving the exception below rather than a more helpful exception, as detailed at https://lists.apache.org/thread.html/b81df836d2bd11801f1aaf5e835de19ac14d10a0e5b14f64f5aa663c@%3Cusers.qpid.apache.org%3E

      javax.jms.JMSException: java.lang.NullPointerException
      at
      org.apache.qpid.jms.exceptions.JmsExceptionSupport.create(JmsExceptionSupport.java:86)
      at
      org.apache.qpid.jms.exceptions.JmsExceptionSupport.create(JmsExceptionSupport.java:108)
      at org.apache.qpid.jms.JmsConnection.createResource(JmsConnection.java:609)
      at
      org.apache.qpid.jms.JmsLocalTransactionContext.begin(JmsLocalTransactionContext.java:125)
      at org.apache.qpid.jms.JmsSession.<init>(JmsSession.java:143)
      at org.apache.qpid.jms.JmsConnection.createSession(JmsConnection.java:299)
      at org.myorg.mymessaging.PostOffice.buildSession(PostOffice.java:149)
      ...
      Caused by: java.io.IOException: java.lang.NullPointerException
      at
      org.apache.qpid.jms.util.IOExceptionSupport.create(IOExceptionSupport.java:45)
      at
      org.apache.qpid.jms.provider.amqp.AmqpTransactionCoordinator.processDeliveryUpdates(AmqpTransactionCoordinator.java:117)
      at
      org.apache.qpid.jms.provider.amqp.AmqpProvider.processUpdates(AmqpProvider.java:928)
      at
      org.apache.qpid.jms.provider.amqp.AmqpProvider.access$1800(AmqpProvider.java:93)
      at
      org.apache.qpid.jms.provider.amqp.AmqpProvider$18.run(AmqpProvider.java:790)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at
      java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
      at
      java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      at
      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.NullPointerException
      at
      org.apache.qpid.jms.provider.amqp.AmqpTransactionCoordinator.processDeliveryUpdates(AmqpTransactionCoordinator.java:93)
      ... 10 more
      

      Attachments

        Issue Links

          Activity

            People

              robbie Robbie Gemmell
              robbie Robbie Gemmell
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: