activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bozimmerman>
Subject Fixed Ab-end in latest public release.
Date Wed, 02 Jul 2008 15:48:31 GMT

Forgive me if this is already known.

On both solarisx86 and linux platforms, version 2.1.3 public release.

My code looks like this:

activemq::core::ActiveMQConnectionFactory connectionFactory = new
cms::Connection connection = connectionFactory->createConnection();

Problem: the start command above would cause my application to ab-end...
VERY infrequently... I would normally have to connect repeatedly every 30
secs or so for a whole day to see the problem.

Cause: In ResponseCorrelator::request method: 

futureResponse->wait( maxResponseWaitTime ) would time-out (the full default
3 seconds went by), and 

response = futureResponse->getResponse() would return null.

Now, at the bottom, after response is checked for null, 

throw CommandIOException( __FILE__, __LINE__,
    "No valid response received for command: %s, check broker.",
    command->toString().c_str() );

would cause the crash in my application.  I suspect (but did not confirm)
that command->toString() is either crashing itself, or returning null or a
bad buffer pointer.  Since its just an exception message, I didn't really

throw CommandIOException( __FILE__, __LINE__, "No valid response received
for command, check broker.");

Verified: I ran my tests, and after 15 hours of continuous running I got
exactly one timeout on connection->start().  However, unlike all the other
times, no ab-end was observed and my application recovered and reconnected
normally after catching the exception.

Please do with what you will.  Have a good day!

- Bo Zimmerman
View this message in context:
Sent from the ActiveMQ - Dev mailing list archive at

View raw message