Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 72661 invoked from network); 21 Aug 2008 09:01:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Aug 2008 09:01:47 -0000 Received: (qmail 50423 invoked by uid 500); 21 Aug 2008 09:01:46 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 50402 invoked by uid 500); 21 Aug 2008 09:01:46 -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 50391 invoked by uid 99); 21 Aug 2008 09:01:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2008 02:01:45 -0700 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; Thu, 21 Aug 2008 09:00:48 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KW62e-0005dZ-W8 for camel-user@activemq.apache.org; Thu, 21 Aug 2008 02:01:16 -0700 Message-ID: <19085007.post@talk.nabble.com> Date: Thu, 21 Aug 2008 02:01:16 -0700 (PDT) From: dkozic To: camel-user@activemq.apache.org Subject: RE: Marshaling jdbc output with xstream In-Reply-To: <4C1FB9C00D24A140906239533638C4D2051C62EB@EXVS04.exserver.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: drazen.kozic@asw.eu References: <19065283.post@talk.nabble.com> <4C1FB9C00D24A140906239533638C4D2051C61FB@EXVS04.exserver.dk> <19068605.post@talk.nabble.com> <4C1FB9C00D24A140906239533638C4D2051C62EB@EXVS04.exserver.dk> X-Virus-Checked: Checked by ClamAV on apache.org I have added custom debugProcessor and turn on debugger. Splitter works fine. It splits ArrayList of HashMap to one HashMap (jdbc returns one row). It is OK. Before marshaling body is HashMap. After marshaling body is byte[0]. Finally I have found solution. I have added wstx-asl-3.2.3.jar to my classpath (I am not using maven ) and everything works fine. In the meantime I found csv marshaler. Very nice. I like Camel more and more every minute :clap: Claus Ibsen wrote: > > Hi > > I will try to simplify my route at first to try to pin point the problem. > > You can also try to use the "trace" feature of Camel > http://activemq.apache.org/camel/tracer.html > as it would show the execution flows. > > However make the route more simpler. Also in your route you send to > "seda:whcLog" twice. And maybe that confuses you. > > What do you expect it to do? = What is the correct solution to your > problem? > > You can also add a .process() where you can add you own java code and use > debugger or system.out to be sure the data you are looking for is there. > > Also make sure the split is doing what it should correctly. Have you tried > to check the result of the split is correct? > > Bottom line: Dig a big more, make it a bit simpler and you will find the > problem. But don't hesitate to ask again here. > > Glad you are trying it out and hopefully will get a solution to it. At > least Camel gives you at the end the power of pure Java where you can do > what ever you want, so you are not stuck in some kind of "limit". > > -- View this message in context: http://www.nabble.com/Marshaling-jdbc-output-with-xstream-tp19065283s22882p19085007.html Sent from the Camel - Users mailing list archive at Nabble.com.