activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: ActiveMQ-CPP Exception connecting to broker
Date Thu, 10 Mar 2016 16:06:56 GMT
On 03/10/2016 10:37 AM, spamtrap wrote:
> [ActiveMQ-CPP v3.9.0]
>
> We have a c++ program which connects to a broker, sends a message to a
> topic and then closes the connections & exits.  Every now and then it
> fails to connect reporting a "Address already in use" exception
> (based on ex.what()).
>
> The code is like this:
>
> ----- cut ------
>     try {
>       pConnectionFactory =
> cms::ConnectionFactory::createCMSConnectionFactory(
>               brokerURI);
>       pConnection = pConnectionFactory->createConnection();
>     } catch (cms::CMSException &ex)
>     {
>        fprintf(stderr, "CMSException: \n");
>        ex.printStackTrace();
>        ...
>     }
> ----- cut ------
>
> ex.printStackTrace prints nothing even though I am using the following
> connection string (broker URI):
> "tcp://localhost:61616?wireFormat.stackTraceEnabled=true"
>
> How can I get more information about this problem?
>
>
>
You'd need to do some debugging on the client end to see what is causing 
this, not been reported before.

-- 
Tim Bish
twitter: @tabish121
blog: http://timbish.blogspot.com/


Mime
View raw message