Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-3760

Unable to use address strings with java client due to NPE

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 0.10
    • Fix Version/s: 0.22
    • Component/s: JMS AMQP 0-x
    • Labels:

      Description

      Stacktrace:

      Exception in thread "Thread-5" java.lang.NullPointerException
      	at org.apache.qpid.client.AMQDestination.equals(AMQDestination.java:577)
      	at org.springframework.jms.connection.CachingConnectionFactory$DestinationCacheKey.destinationEquals(CachingConnectionFactory.java:467)
      	at org.springframework.jms.connection.CachingConnectionFactory$DestinationCacheKey.equals(CachingConnectionFactory.java:474)
      	at java.util.HashMap.get(HashMap.java:385)
      	at org.springframework.jms.connection.CachingConnectionFactory$CachedSessionInvocationHandler.getCachedProducer(CachingConnectionFactory.java:353)
      	at org.springframework.jms.connection.CachingConnectionFactory$CachedSessionInvocationHandler.invoke(CachingConnectionFactory.java:320)
      	at $Proxy1.createProducer(Unknown Source)
      

      Exception happens for the following address:

      JbenchQueue;{create: always, node: {type:queue}}
      

      It seems the qpid java client tries to obtain exchangeClass property in AMQDestination.equals method, but this property is not set when using address strings.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              szhemzhitsky Sergey Zhemzhitsky
            • Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: