Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7060419BD0 for ; Thu, 10 Mar 2016 15:39:06 +0000 (UTC) Received: (qmail 26504 invoked by uid 500); 10 Mar 2016 15:39:01 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 26475 invoked by uid 500); 10 Mar 2016 15:39:01 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 26463 invoked by uid 99); 10 Mar 2016 15:39:00 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Mar 2016 15:39:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 1F153C035F for ; Thu, 10 Mar 2016 15:39:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.334 X-Spam-Level: * X-Spam-Status: No, score=1.334 tagged_above=-999 required=6.31 tests=[FSL_HELO_BARE_IP_2=1.499, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_NUMERIC_HELO=0.865, RP_MATCHES_RCVD=-0.329, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id MWh8udSiBt_f for ; Thu, 10 Mar 2016 15:38:58 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 580C05F572 for ; Thu, 10 Mar 2016 15:38:58 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ae2fi-0007EJ-FX for users@activemq.apache.org; Thu, 10 Mar 2016 16:38:42 +0100 Received: from 212.159.122.158 ([212.159.122.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Mar 2016 16:38:42 +0100 Received: from nospam.1.friedbadger by 212.159.122.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Mar 2016 16:38:42 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: users@activemq.apache.org From: spamtrap Subject: ActiveMQ-CPP Exception connecting to broker Date: Thu, 10 Mar 2016 15:37:55 +0000 Lines: 29 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 212.159.122.158 X-Newsreader: Forte Agent 1.93/32.576 English (American) [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?