Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-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 32C3AF5BB for ; Mon, 22 Apr 2013 12:11:07 +0000 (UTC) Received: (qmail 12951 invoked by uid 500); 22 Apr 2013 12:11:06 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 12815 invoked by uid 500); 22 Apr 2013 12:11:06 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 12791 invoked by uid 99); 22 Apr 2013 12:11:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Apr 2013 12:11:05 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.223.171 as permitted sender) Received: from [209.85.223.171] (HELO mail-ie0-f171.google.com) (209.85.223.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Apr 2013 12:10:18 +0000 Received: by mail-ie0-f171.google.com with SMTP id e11so6955503iej.2 for ; Mon, 22 Apr 2013 05:09:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=gcJOYgaa0sYoF0pJUvPFHzqJGHk4CFVWIvuFwLaG/6s=; b=BcLGrKXLjIMubtcGZYRkEzAI+Sbn1r7fhFxTZBD8Ppa3ptEzwX4Bsc0EOFeAuE68s5 zwEpT80nYXxEDSjMppdm1l+PzIIcdWejsg2YX34VCoE12bFvyBns1WdrjhoXnKIKVEid w71++ZiR3OnVoShJKXAjNqWSz1y6cCBe7g9m4s/ROJQVPrYwPAhrbEXks+aqyQkF1Xf8 Pfg3NUDXMSeXbw/jNIF29gEI9LpDqPN+guhW3eI0C31htJpxn629SPYfHfrraisF+8Y1 B/ktP0NEUmioQ50SOSGl1V/ei+7CC6ga/VBKeNAsGjj4qwRj9JFBCI8FDRHUCKeBbjFi cLmA== X-Received: by 10.50.100.167 with SMTP id ez7mr21116048igb.3.1366632597801; Mon, 22 Apr 2013 05:09:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.53.232 with HTTP; Mon, 22 Apr 2013 05:09:37 -0700 (PDT) In-Reply-To: <1366399955466-5731160.post@n5.nabble.com> References: <1366399955466-5731160.post@n5.nabble.com> From: Claus Ibsen Date: Mon, 22 Apr 2013 14:09:37 +0200 Message-ID: Subject: Re: random splitter error To: "users@camel.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi What OS, JDK, and JAXB version do you use? And have you added saxon to the classpath, eg using camel-saxon. Saxon is usually faster and better as xpath than what comes out of the box from the JDK. On Fri, Apr 19, 2013 at 9:32 PM, gmdavidson62 wrote: > We randomly get the following error during a split....we handle hundreds of > messages without error, then see one or two, any help greatly appreciated. > We are running Apache Camel 2.10.4. > > ERROR: > No body available of type: java.lang.String but has value: [Policy: null] of > type: org.apache.xerces.dom.DeferredElementNSImpl on: Message: > > 2005-04-08 > 2013-04-08 > 99999999999999 > ABC > BBB > AS > Y > BBB-DESC > > Caused by: Error during type conversion from type: > org.apache.xerces.dom.DeferredElementNSImpl to the required type: > java.lang.String with value > [Policy: null] due java.lang.NullPointerException. Exchange[Message: > > 2005-04-08 > 2013-04-08 > 99999999999999 > ABC > BBB > AS > Y > BBB-DESC > > Caused by: [org.apache.camel.TypeConversionException - Error during type > conversion from type: org.apache.xerces.dom.DeferredElementNSImpl > to the required type: java.lang.String with value [Policy: null] due > java.lang.NullPointerException] > > > We have this route: > ---------------------------------------------------------- > streamCache="true" > > uri="{{csp.ws.transport}}://0.0.0.0:10019/BOB-GetAccountSummaryPolicyDetails/"/> > > > BOB-GetAccountSummaryPolicyDetails > > > > resultType="java.lang.String">/BOB-GetAccountSummaryRequest/ClientId/text() > > > > > strategyRef="policyDetailsAggregator" timeout="60000"> > > /BOB-GetPoliciesByClientResponse/Policies/Policy > > > > > ---------------------------------------------------------- > > XML result from: > which we do the split on > ---------------------------------------------------------- > > > 2005-04-08 > 2013-04-08 > 99999999999999 > ABC > BBB > AS > Y > BBB-DESC > > > 2013-04-09 > 2013-10-09 > 88888888888888 > EFG > CCC > PAU > Y > CCC-DESC > > > 2013-03-06 > 2013-09-06 > APV 0004518523 > HIJ > DDD > PAU > Y > DDD-DESC > > > ---------------------------------------------------------- > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/random-splitter-error-tp5731160.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cibsen@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen