From users-return-27458-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Tue May 10 12:25:11 2011 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 DB566589E for ; Tue, 10 May 2011 12:25:11 +0000 (UTC) Received: (qmail 18728 invoked by uid 500); 10 May 2011 12:25:11 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 18705 invoked by uid 500); 10 May 2011 12:25:11 -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 18697 invoked by uid 99); 10 May 2011 12:25:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 May 2011 12:25:11 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [195.166.52.163] (HELO mail.myedgeservices.com) (195.166.52.163) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 May 2011 12:25:04 +0000 Received: from CORP-MAIL-002.edge.local (10.105.12.7) by uk-mail-edge.edge.local (10.95.0.4) with Microsoft SMTP Server (TLS) id 14.1.270.1; Tue, 10 May 2011 13:24:38 +0100 Received: from cobalt.mettonigroup.com (172.21.252.20) by mail.myedgeservices.com (10.105.12.7) with Microsoft SMTP Server id 14.1.255.0; Tue, 10 May 2011 13:24:39 +0100 Received: from nickel.mettonigroup.com ([172.21.252.25]) by cobalt.mettonigroup.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 10 May 2011 13:24:40 +0100 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CC0F0D.3B9D4A00" X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: ActiveMQ-CPP client hangs while connecting when ActiveMQ is not running Date: Tue, 10 May 2011 13:24:39 +0100 Message-ID: <3181A30B8C35AB4AA8577B78DDF461380816AA0C@nickel.mettonigroup.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ActiveMQ-CPP client hangs while connecting when ActiveMQ is not running Thread-Index: AcwPDTtXMTFSXEU0SbqbhnGrdgH4eg== From: Suneel Papineni To: X-OriginalArrivalTime: 10 May 2011 12:24:40.0127 (UTC) FILETIME=[3BECD4F0:01CC0F0D] ------_=_NextPart_001_01CC0F0D.3B9D4A00 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, =20 I am trying to connect to ActiveMQ which is not running or stopped through an ActiveMQ-CPP client. The application hangs while doing this and I need to kill the application through task manager. (i.e. getting hung at "connectionFactory->createConnection(uname,pwd,applicationId);" at this statement. =20 When I tried to debug the code, it is hanging at "connection->setDefaultClientId( this->settings->clientId );" in ActiveMQConnectionFactory.cpp. Please find attached output log from Visual Studio. =20 I am using Broker URI as "failover:tcp://localhost:61616?transport.useInactivityMonitor=3Dtrue". Also I tried to use "failover:tcp://localhost:61616?startupMaxReconnectAttempts=3D3&transport= . useInactivityMonitor=3Dtrue". This is also hanging the application. =20 Could someone please let me know how can I solve this and through an exception when ActiveMQ server is not running. Also please let me know if I need to add any more configuration. =20 Thanks & Regards Suneel =20 Debug log from Visual Studio is: =20 'MBBL_Test_App.exe': Loaded 'C:\Windows\SysWOW64\FWPUCLNT.DLL' 'MBBL_Test_App.exe': Loaded 'C:\Windows\SysWOW64\rasadhlp.dll' 'MBBL_Test_App.exe': Loaded 'C:\Windows\SysWOW64\WSHTCPIP.DLL' First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::net::SocketException at memory location 0x022be228.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be36c.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be5b0.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be56c.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022be8d4.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022bed90.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022bf0b0.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022bf254.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::lang::exceptions::NoSuchElementException at memory location 0x022bf344.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::net::SocketException at memory location 0x022be228.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be36c.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be5b0.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be56c.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022be8d4.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022bed90.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022bf0b0.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022bf254.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::lang::exceptions::NoSuchElementException at memory location 0x022bf344.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::net::SocketException at memory location 0x022be228.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be36c.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be5b0.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be56c.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022be8d4.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022bed90.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022bf0b0.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022bf254.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::lang::exceptions::NoSuchElementException at memory location 0x022bf344.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::net::SocketException at memory location 0x022be228.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be36c.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be5b0.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be56c.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022be8d4.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022bed90.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022bf0b0.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022bf254.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::lang::exceptions::NoSuchElementException at memory location 0x022bf344.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::net::SocketException at memory location 0x022be228.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be36c.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be5b0.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be56c.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022be8d4.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022bed90.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022bf0b0.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022bf254.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::lang::exceptions::NoSuchElementException at memory location 0x022bf344.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::net::SocketException at memory location 0x022be228.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be36c.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be5b0.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be56c.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022be8d4.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022bed90.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022bf0b0.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022bf254.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::lang::exceptions::NoSuchElementException at memory location 0x022bf344.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::net::SocketException at memory location 0x022be228.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be36c.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be5b0.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be56c.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022be8d4.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022bed90.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022bf0b0.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022bf254.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::lang::exceptions::NoSuchElementException at memory location 0x022bf344.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::net::SocketException at memory location 0x022be228.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be36c.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be5b0.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be56c.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022be8d4.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022bed90.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022bf0b0.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022bf254.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::lang::exceptions::NoSuchElementException at memory location 0x022bf344.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::net::SocketException at memory location 0x022be228.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be36c.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be5b0.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be56c.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022be8d4.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022bed90.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022bf0b0.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022bf254.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::lang::exceptions::NoSuchElementException at memory location 0x022bf344.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::net::SocketException at memory location 0x022be228.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be36c.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be5b0.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be56c.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022be8d4.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022bed90.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022bf0b0.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022bf254.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::lang::exceptions::NoSuchElementException at memory location 0x022bf344.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::net::SocketException at memory location 0x022be228.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be36c.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be5b0.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022be56c.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022be8d4.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022bed90.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: activemq::exceptions::ActiveMQException at memory location 0x022bf0b0.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::io::IOException at memory location 0x022bf254.. First-chance exception at 0x75dbb727 in MBBL_Test_App.exe: Microsoft C++ exception: decaf::lang::exceptions::NoSuchElementException at memory location 0x022bf344.. =20 =20 ------_=_NextPart_001_01CC0F0D.3B9D4A00--