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 B2492689C for ; Thu, 9 Jun 2011 04:39:01 +0000 (UTC) Received: (qmail 10113 invoked by uid 500); 9 Jun 2011 04:39:00 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 10086 invoked by uid 500); 9 Jun 2011 04:39:00 -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 10076 invoked by uid 99); 9 Jun 2011 04:38:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jun 2011 04:38:58 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FREEMAIL_FROM,RFC_ABUSE_POST,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of radhamanickam@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jun 2011 04:38:52 +0000 Received: from joe.nabble.com ([192.168.236.139]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QUX0q-0004Qs-CB for users@activemq.apache.org; Wed, 08 Jun 2011 21:38:32 -0700 Date: Wed, 8 Jun 2011 21:38:32 -0700 (PDT) From: Radha Manickam To: users@activemq.apache.org Message-ID: <1307594312357-3584424.post@n4.nabble.com> In-Reply-To: <1307569174.2767.23.camel@office> References: <1307448217882-3579368.post@n4.nabble.com> <1307450557.2788.4.camel@office> <1307508205891-3581623.post@n4.nabble.com> <1307569174.2767.23.camel@office> Subject: Re: Connection problem in using Activemq-CPP MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Tim, I didnt get any error. But the sample application i hanging somewhere. So I have added some debug strings in the activemq library and tried. It is hanging in the method Connection->Start. After some debugging i found that it got struck in the method syncRequest in the ActiveMQConnection class(while getting the response from the transport. I have pasted the code with the debug strings that i have added: Pointer ActiveMQConnection::syncRequest( Pointer command, unsigned int timeout ) { try { cout << "Entering sycnRequest\n"; checkClosedOrFailed(); cout << "Checked if closed or failed\n"; Pointer response; cout << "Checking for the timeout value\n"; if( timeout == 0 ) { cout << "Timeout is zero\n"; response = this->config->transport->request( command ); } else { cout << "Timeout is non-zero\n"; response = this->config->transport->request( command, timeout ); } cout << "Creating the exception response\n"; commands::ExceptionResponse* exceptionResponse = dynamic_cast<ExceptionResponse*>( response.get() ); cout << "Created\n"; if( exceptionResponse != NULL ) { cout << "Exception response is not null\n"; // Create an exception to hold the error information. BrokerException exception( __FILE__, __LINE__, exceptionResponse->getException().get() ); cout << "throwing the the exception response\n"; // Throw the exception. throw exception; } cout << "Leaving and returning the response\n"; return response; } AMQ_CATCH_RETHROW( ActiveMQException ) AMQ_CATCH_EXCEPTION_CONVERT( IOException, ActiveMQException ) AMQ_CATCH_EXCEPTION_CONVERT( decaf::lang::exceptions::UnsupportedOperationException, ActiveMQException ) AMQ_CATCH_EXCEPTION_CONVERT( Exception, ActiveMQException ) AMQ_CATCHALL_THROW( ActiveMQException ) } The output i got is as follows: Pinging the broker Entering sycnRequest Checked if closed or failed Checking for the timeout value Timeout is zero After this line the application got hanged. Thanks, Radha. -- View this message in context: http://activemq.2283324.n4.nabble.com/Connection-problem-in-using-Activemq-CPP-tp3579368p3584424.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.