[ http://issues.apache.org/jira/browse/QPID-186?page=all ]
Marnie McCormack resolved QPID-186.
-----------------------------------
Resolution: Fixed
Added check for instanceof AMQException into construction of JMSException in
receivedException method of AMQConnection to use of error code, if available.
Svn revision 487176.
> AMQConnection does not set error code when constructing a JMSException
> ----------------------------------------------------------------------
>
> Key: QPID-186
> URL: http://issues.apache.org/jira/browse/QPID-186
> Project: Qpid
> Issue Type: Bug
> Components: Java Client
> Affects Versions: M1
> Reporter: Marnie McCormack
> Assigned To: Marnie McCormack
> Priority: Minor
> Fix For: M2
>
>
> The code
> log("ExceptionListener event: error " + exception.getErrorCode() + ",
> message: " + exception.getMessage());
> gives
> ExceptionListener event: error null, message: Exception thrown against
> AMQConnection:
> Host: localhost
> Port: 5672
> Virtual Host: /myBroker
> Client ID: blah
> Active session count: 0: org.apache.qpid.client.AMQNoRouteException: Error:
> Routing key queueNODEF is not known to
> org.apache.qpid.server.exchange.DestNameExchange[amq.direct] [error code 312]
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira