Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 48774 invoked from network); 6 Aug 2008 12:41:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Aug 2008 12:41:12 -0000 Received: (qmail 28771 invoked by uid 500); 6 Aug 2008 12:41:11 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 28750 invoked by uid 500); 6 Aug 2008 12:41:11 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 28739 invoked by uid 99); 6 Aug 2008 12:41:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Aug 2008 05:41:11 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [195.69.129.177] (HELO exsmtp01.exserver.dk) (195.69.129.177) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Aug 2008 12:40:14 +0000 Received: from EXVS04.exserver.dk ([10.10.10.85]) by exsmtp01.exserver.dk with Microsoft SMTPSVC(6.0.3790.1830); Wed, 6 Aug 2008 14:38:23 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: camel splitter component. Date: Wed, 6 Aug 2008 14:38:19 +0200 Message-ID: <4C1FB9C00D24A140906239533638C4D204DBAC2B@EXVS04.exserver.dk> In-Reply-To: <916B43AD878A5F4883693141D0B59EEA0D6D1DAC2E@iona-ems1.IONAGLOBAL.COM> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: camel splitter component. Thread-Index: Acj3wSOm4LUqmScvS6aJRKa3KDtKoAAABjwA From: "Claus Ibsen" To: X-OriginalArrivalTime: 06 Aug 2008 12:38:23.0339 (UTC) FILETIME=[509EC3B0:01C8F7C1] X-Virus-Checked: Checked by ClamAV on apache.org Hi What version of Camel are you using? I recall something about a missing = type convert in older versions (could be camel 1.3). Med venlig hilsen =20 Claus Ibsen ...................................... Silverbullet Skovsg=E5rdsv=E6nget 21 8362 H=F8rning Tlf. +45 2962 7576 Web: www.silverbullet.dk -----Original Message----- From: Lynch, Francis [mailto:frank.lynch@iona.com]=20 Sent: 6. august 2008 14:37 To: camel-user@activemq.apache.org Subject: camel splitter component. Hi Folks, I'm trying to split an xml document using an xpath expression. Its = failing with an InvalidPayloadException[1]. I'm using a camel route like = the following: from("file:src/source.xml?noop=3Dtrue").splitter(xpath("//Row1")).to("fil= e:target/output"); I've included a sample of the source xml below[2]. I've also tried = /foosource/Row1, xpathbuilders etc but to no avail. I suspect that I'm missing something simple here. Can someone point me = in the right direction? Thanks in advance. --Frank [1] caught: org.apache.camel.InvalidPayloadException: No in body available = of type: java.io.InputStream but has value: [Row1: null] of type: = org.apache.xerces.dom.DeferredElementNSImpl on: Message: [Row1: null] on = the exchange: Exchange[Message: [Row1: null]] [2] Joe Bloggs UK Billy Burgeos IE Ronald McDonald US