activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Tully (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (AMQ-2867) a bug when send time out
Date Fri, 13 Aug 2010 13:58:50 GMT

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

Gary Tully reassigned AMQ-2867:
-------------------------------

    Assignee: Gary Tully

> 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
>            Assignee: Gary Tully
>            Priority: Critical
>             Fix For: 5.4.1
>
>
>   
> 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