You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "dacy.zhouy (JIRA)" <ji...@apache.org> on 2010/08/12 05:14:47 UTC

[jira] Created: (AMQ-2867) a bug when send time out

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.


[jira] Assigned: (AMQ-2867) a bug when send time out

Posted by "Gary Tully (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Resolved: (AMQ-2867) a bug when send time out

Posted by "Gary Tully (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-2867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Tully resolved AMQ-2867.
-----------------------------

    Fix Version/s: 5.4.1
       Resolution: Fixed

resolved in r985201
also related to https://issues.apache.org/activemq/browse/AMQ-2507

> 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.