Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 30364 invoked from network); 1 Jul 2010 14:08:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Jul 2010 14:08:05 -0000 Received: (qmail 94010 invoked by uid 500); 1 Jul 2010 14:08:05 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 93813 invoked by uid 500); 1 Jul 2010 14:08:03 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 93800 invoked by uid 99); 1 Jul 2010 14:08:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jul 2010 14:08:03 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tabish121@gmail.com designates 209.85.212.43 as permitted sender) Received: from [209.85.212.43] (HELO mail-vw0-f43.google.com) (209.85.212.43) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jul 2010 14:07:56 +0000 Received: by vws4 with SMTP id 4so3724568vws.2 for ; Thu, 01 Jul 2010 07:07:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=WBvDU49ag5Aj9xzh+jtkA32T1WgK1/uOLEV/q7DVvwI=; b=HPkJegI/LU/yNUlyZ5J2Q2AR1Ri1tCXZb4PEWFbFkVT6j019gW+qwcbNjDphIsue0/ 54VLTbq4cxJlVG7hHAPAz4E2KlxMfWQzfsn8gW9COcWw56G8slEesFA+tEWYrQarOsgv 0AtBwn8Y83T3BGaGRsPVMj2lMhyNqTsB/mYJs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=mAdtFfSd3CugoTTrE86216nku9jNIZfTZ2WcdXE+EW4Oidk6U9nQKKdNEj9KzmBe2z RVkuyZDv6VSdgtSVXuP/iiRnaM5nMpDHR07/Qo4ecnM660G9dMO9y6u4AbkhAEwKWiam GrwjlkubgewMoE2yW2LvPo8kU93TpGplBDGH8= Received: by 10.220.121.217 with SMTP id i25mr5714204vcr.140.1277993255821; Thu, 01 Jul 2010 07:07:35 -0700 (PDT) Received: from [192.168.2.189] (c-76-21-195-19.hsd1.va.comcast.net [76.21.195.19]) by mx.google.com with ESMTPS id x39sm4109548vcr.5.2010.07.01.07.07.34 (version=SSLv3 cipher=RC4-MD5); Thu, 01 Jul 2010 07:07:34 -0700 (PDT) Subject: Re: Caught unknown exception in activeMQConsumer.cpp From: Timothy Bish To: dev@activemq.apache.org In-Reply-To: <29045831.post@talk.nabble.com> References: <29045831.post@talk.nabble.com> Content-Type: text/plain; charset="UTF-8" Date: Thu, 01 Jul 2010 10:07:33 -0400 Message-ID: <1277993253.2498.3.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 (2.30.2-1.fc13) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Thu, 2010-07-01 at 06:47 -0700, manua wrote: > Hi All, > > I am getting the following error, when processing the received message, > > caught unknown exception > FILE: activemq/core/ActiveMQConsumer.cpp, LINE: 987 > FILE: activemq/core/ActiveMQSessionExecutor.cpp, LINE: 133 > > My application is divided into three parts, > > 1. On receiving the message, its extracting the test message and passing > that to json_spirit function. > 2. The json spirit function converts the text message to a json and extract > the various vector/map parameters. It then pass the extracted parameter to > the Db Function. > 3. The Db function takes the string as a input and accordingly fetch the > data from the db. > > Its working fine till Step 2. In step 3, Db connection is made but the > moment it hits the query part, I got the above error. > > Am I doing something wrong, or is there a better way to do it. > Please let me know your inputs. > > Thanks, > Manu Without seeing the code my first guess would be that your onMessage method is throwing an exception somewhere in your step three which propagates back through the ActiveMQConsumer to the ActiveMQSessionExecutor. I'd add some more exception handing in you onMessage handler to see what your code is throwing. Regards -- Tim Bish Open Source Integration: http://fusesource.com ActiveMQ in Action: http://www.manning.com/snyder/ Follow me on Twitter: http://twitter.com/tabish121 My Blog: http://timbish.blogspot.com/