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 B9D7BD664 for ; Thu, 10 Jan 2013 13:43:58 +0000 (UTC) Received: (qmail 6461 invoked by uid 500); 10 Jan 2013 13:43:58 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 6419 invoked by uid 500); 10 Jan 2013 13:43:58 -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 Delivered-To: moderator for users@activemq.apache.org Received: (qmail 11952 invoked by uid 99); 10 Jan 2013 02:49:47 -0000 X-ASF-Spam-Status: No, hits=3.0 required=5.0 tests=FORGED_YAHOO_RCVD,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Date: Wed, 9 Jan 2013 18:49:21 -0800 (PST) From: Alex1 To: users@activemq.apache.org Message-ID: <1357786161606-4661580.post@n4.nabble.com> Subject: activemq-cpp problem when openssl enabled MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org activemq-cpp, version 3.4.0 REdhat LInux Built activemq-cpp with openssl enabled. The server is configured with openssl enabled. The broker's certificate is set on client side with setSystemProperty(). Client test seems working fine when certificate verification succeeds. Problem occurred when the certification verification fails, for example, let client site point to a wrong certificate. Then following exception terminate the program most of time, but it does not happens every time. pure virtual method called terminate called after throwing an instance of 'decaf::io::IOException' This is only happens when startupMaxReconnectAttempts is set to !=0 There were also other exception: error:: while accessing OpenSSL library error:.... routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed The above errors seen every time (as expected, but it does not abort) The "pure virtual method called" problem does not happens every time. I wonder where the exception come from, I could not catch it in my test code, I am guessing it's deep in library. Any suggestion to avoid the problem? Thanks Alex Thanks for help, A -- View this message in context: http://activemq.2283324.n4.nabble.com/activemq-cpp-problem-when-openssl-enabled-tp4661580.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.