From dev-return-9472-apmail-activemq-dev-archive=activemq.apache.org@activemq.apache.org Mon Feb 04 13:47:35 2008 Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 18648 invoked from network); 4 Feb 2008 13:47:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Feb 2008 13:47:35 -0000 Received: (qmail 86485 invoked by uid 500); 4 Feb 2008 13:47:26 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 86455 invoked by uid 500); 4 Feb 2008 13:47:26 -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 86446 invoked by uid 99); 4 Feb 2008 13:47:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2008 05:47:26 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2008 13:46:58 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JM1f8-000651-4q for dev@activemq.apache.org; Mon, 04 Feb 2008 05:47:06 -0800 Message-ID: <15268425.post@talk.nabble.com> Date: Mon, 4 Feb 2008 05:47:06 -0800 (PST) From: vjarnot To: dev@activemq.apache.org Subject: Re: ActiveMQMessageTransformation.copyProperties NullPointerException In-Reply-To: <15236447.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: voytek.jarnot@maxwell.af.mil References: <15236447.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Anyone out there? vjarnot wrote: > > Is there any reason that org.apache.activemq.ActiveMQMessageTransformation > copyProperties method doesn't check for null before calling > setObjectProperty(...)? > > This is causing null pointer exceptions for us when trying to bridge > Oracle's AQ with ActiveMQ - Oracle returns a value of null for > JMSXGroupSeq (and maybe others, that's the first one that causes the > failure). > > Since passing a null to setObjectProperty appears to inevitably fail (null > pointer thrown from TypeConversionSupport.convert(...)) why not check for > null and not call setObjectProperty? > > TypeConversionSupport even has an assert line that seems to indicate the > value should never be null, but calling code > (ActiveMQMessageTransformation in my case) doesn't prevent that from > happening. > > It seems that in order to get this bridge to work, we're going to have to > patch ActiveMQMessageTransformation - or does anyone have a better idea? > -- View this message in context: http://www.nabble.com/ActiveMQMessageTransformation.copyProperties-NullPointerException-tp15236447s2354p15268425.html Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.