You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by dacy <da...@alibaba-inc.com> on 2010/08/04 09:33:42 UTC
a bug in activemq-core
hi
i had used activemq5.3.0 in a application, and it crashed a month ago
we found there is a bug in activemq's source code. when send message time
out ,response return null not exception, but code not handle.
it's terrible !!! please fix it as soon as possible~
at ActiveMQConection.java
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);
}
}
--
View this message in context: http://old.nabble.com/a-bug-in-activemq-core-tp29342865p29342865.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: a bug in activemq-core
Posted by Gary Tully <ga...@gmail.com>.
can you raise a jira issue for this, possibly include the stack trace
if you still have it. Thanks.
On 4 August 2010 08:33, dacy <da...@alibaba-inc.com> wrote:
>
> hi
> i had used activemq5.3.0 in a application, and it crashed a month ago
> we found there is a bug in activemq's source code. when send message time
> out ,response return null not exception, but code not handle.
> it's terrible !!! please fix it as soon as possible~
>
> at ActiveMQConection.java
>
> 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);
> }
> }
> --
> View this message in context: http://old.nabble.com/a-bug-in-activemq-core-tp29342865p29342865.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>
--
http://blog.garytully.com
Open Source Integration
http://fusesource.com