[ 
https://issues.apache.org/jira/browse/QPID-3760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Keith Wall resolved QPID-3760.
------------------------------

       Resolution: Duplicate
    Fix Version/s: 0.22

Comments below suggest this was fixed in 0.22 by QPID-3769.

> Unable to use address strings with java client due to NPE
> ---------------------------------------------------------
>
>                 Key: QPID-3760
>                 URL: https://issues.apache.org/jira/browse/QPID-3760
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: 0.10
>            Reporter: Sergey Zhemzhitsky
>              Labels: addressing
>             Fix For: 0.22
>
>
> Stacktrace:
> {code}
> 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)
> {code}
> Exception happens for the following address:
> {code}
> JbenchQueue;{create: always, node: {type:queue}}
> {code}
> 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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to