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 2AA1819D2A for ; Thu, 10 Mar 2016 16:07:00 +0000 (UTC) Received: (qmail 22999 invoked by uid 500); 10 Mar 2016 16:06:59 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 22954 invoked by uid 500); 10 Mar 2016 16:06:59 -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 22942 invoked by uid 99); 10 Mar 2016 16:06:59 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Mar 2016 16:06:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id CEEC3C2354 for ; Thu, 10 Mar 2016 16:06:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.448 X-Spam-Level: X-Spam-Status: No, score=0.448 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, KAM_LIVE=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id ySo4xXzX_2CQ for ; Thu, 10 Mar 2016 16:06:58 +0000 (UTC) Received: from mail-qg0-f53.google.com (mail-qg0-f53.google.com [209.85.192.53]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 1F1195F5CD for ; Thu, 10 Mar 2016 16:06:58 +0000 (UTC) Received: by mail-qg0-f53.google.com with SMTP id y89so74071514qge.2 for ; Thu, 10 Mar 2016 08:06:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=OdU8e+yRUyYLj2r8o6hI7AtqHAqBO5uqeK+hGWn80SM=; b=zsDaD259uCYn4Tb9L5xsY52C4l6MIAM7/hrE5FiWme346YZwh+CH74BBgisnCTUJ9p 1HZuYermMjK8V4SUOyZTLqP6WVhs0BKbOD/uPH2IycpDY+ieQaCLoM89aCpVmTaQeq/J c/iee1bbzbjQAuPdpXaZIbnADj9V8+dpfGxZdF41Z0AVZLZl7cN2VwZqJLDdDMeJCN1e UNfNdrght8kxQ8LqRsQwp9BaM55h31Tm39IsQZtvVlJj3qIhgO0DcBxWBXA7/jtKmpon Dp9Qn5Txet30xutVQQ20KoLWCDD1lurVbGCwLIqjMhkUpVhmU/kVMLye5sdiBpMn417/ Yi1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=OdU8e+yRUyYLj2r8o6hI7AtqHAqBO5uqeK+hGWn80SM=; b=ab5qk4EHYFwa56mbM0/PKWe+olFhvkzhfJQbNhNpb7BH6Vj5Aj9ftMJMbOWOLLCwhY uRM0uanBozG7CDaKsttdSuNJXWcPMJFD/f3JTvhPbuaBnGZ6iMgAOBDHYzSOQkG6Av9H 5O3mZ8xlc6TRuiwjOTS6rLe/l40/qGCXS/8rXyzkNknTZQG274TwELOqxDeYKfYfhDdR hl42v+fafuqWPp5uWeRYgc2K4Jwdpf1ttbYKH8RPQwBVyfw9AbJEfDksjZyR0wj0LRAi rRqsxPvPG1F4T2R/YNSsDyUX9KozxDzzcfujv3+j2jDDvOnaeVSaPFQqC368T+vba0cF z1Ag== X-Gm-Message-State: AD7BkJK70pgNppFJo2cwo71oqg9kgjqMNad0jYwpmpuCXzJC7ubnc/LH37CyIAmh9tBP2w== X-Received: by 10.140.239.66 with SMTP id k63mr5523021qhc.11.1457626017421; Thu, 10 Mar 2016 08:06:57 -0800 (PST) Received: from [192.168.2.150] (c-73-191-41-186.hsd1.va.comcast.net. [73.191.41.186]) by smtp.googlemail.com with ESMTPSA id v66sm1931057qhb.26.2016.03.10.08.06.56 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 10 Mar 2016 08:06:56 -0800 (PST) Subject: Re: ActiveMQ-CPP Exception connecting to broker To: users@activemq.apache.org References: From: Timothy Bish Message-ID: <56E19BA0.80603@gmail.com> Date: Thu, 10 Mar 2016 11:06:56 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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/