[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?