activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dacy.zhouy (JIRA)" <j...@apache.org>
Subject [jira] Created: (AMQ-2867) a bug when send time out
Date Thu, 12 Aug 2010 03:14:47 GMT
a bug when send time out
------------------------

                 Key: AMQ-2867
                 URL: https://issues.apache.org/activemq/browse/AMQ-2867
             Project: ActiveMQ
          Issue Type: Bug
          Components: Connector
    Affects Versions: 5.3.0
         Environment: linux/ java
            Reporter: dacy.zhouy
            Priority: Critical


  
There is a bug at ActiveMQConnection.java. The response is null when time out,but the code
not handled 

	private Response doSyncSendPacket(Command command, int timeout)
			throws JMSException {
		try {
		    Response response = (Response)this.transport.request(command, timeout);
		    if (response != null && response.isException()) {
		        ExceptionResponse er = (ExceptionResponse)response;
		        if (er.getException() instanceof JMSException) {
		            throw (JMSException)er.getException();
		        } else {
		            throw JMSExceptionSupport.create(er.getException());
		        }
		    }
		    return response;
		} catch (IOException e) {
		    throw JMSExceptionSupport.create(e);
		}
	}



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message