Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 35642 invoked from network); 8 Aug 2007 11:34:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Aug 2007 11:34:46 -0000 Received: (qmail 14420 invoked by uid 500); 8 Aug 2007 11:34:44 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 14397 invoked by uid 500); 8 Aug 2007 11:34:44 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 14388 invoked by uid 99); 8 Aug 2007 11:34:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2007 04:34:44 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of james.strachan@gmail.com designates 66.249.82.235 as permitted sender) Received: from [66.249.82.235] (HELO wx-out-0506.google.com) (66.249.82.235) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2007 11:34:38 +0000 Received: by wx-out-0506.google.com with SMTP id i30so123272wxd for ; Wed, 08 Aug 2007 04:34:18 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Rnp5eH6INNTI2q1f+BauQn6BeYEP3aMYzbj5RtFJXXc9kI47RY8F69OXN5Lx/QzHn+sNHalaTHxvk+qODn908MxnAURF1ATP++Z5uRkOhBXVKTap3tR8kUlX/ETpd1Y5ttxXPHGEV8c7y815zxhQYoAZOsTDHhnQdUmYN/g9XmE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=G9CK0YeZuGjxjxtP9Z1phECIBZiwJYcVWUPROI7KcoBzwG5yjIjrP+DSnZvtxmsAleLKI4miRecHo5wy20EZtVmcWb5i6z5gmK4ESZJHweHwlDTdkX9CE6LkPYnz3yenHvICe1A1gim6ly44TBwK096M91sEHc99gKmDigcSbHI= Received: by 10.90.113.20 with SMTP id l20mr1280639agc.1186572858451; Wed, 08 Aug 2007 04:34:18 -0700 (PDT) Received: by 10.90.67.18 with HTTP; Wed, 8 Aug 2007 04:34:18 -0700 (PDT) Message-ID: Date: Wed, 8 Aug 2007 12:34:18 +0100 From: "James Strachan" To: users@activemq.apache.org Subject: Re: Problem with ETL example In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <12050655.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org BTW there is now a separate forum/mailing list for Camel... http://activemq.apache.org/camel/discussion-forums.html On 8/8/07, James Strachan wrote: > Hi! Sorry you're having issues. > > BTW which version are you using? (Trunk from subversion?). Also how > are you running the example? > > On 8/8/07, jameszhang wrote: > > > > I have post the problem here. > > http://cwiki.apache.org/confluence/display/CAMEL/ETL+Example > > http://cwiki.apache.org/confluence/display/CAMEL/ETL+Example > > > > Maybe we should delete that comment.thank you. > > > > > > When I run the example,the result is failed. > > > > [nent.file.FileComponent@36d047] ScheduledPollConsumer DEBUG > > Starting to poll > > [nent.file.FileComponent@36d047] FileConsumer DEBUG > > Polling directory src\data > > [nent.file.FileComponent@36d047] FileEndpoint DEBUG > > Endpoint[file:src/data?noop=true] using strategy: > > org.apache.camel.component.file.strategy.NoOpFileStrategy@98bbf6 > > [nent.file.FileComponent@36d047] FileConsumer DEBUG About > > to process file: src\data\row1.xml using exchange: Exchange[FileMessage: > > src\data\row1.xml] > > [onent.jpa.JpaComponent@1e16483] ScheduledPollConsumer DEBUG > > Starting to poll > > [nent.file.FileComponent@36d047] DeadLetterChannel ERROR On > > delivery attempt: 0 caught: java.lang.ClassCastException: > > org.apache.camel.impl.DefaultExchange > > java.lang.ClassCastException: org.apache.camel.impl.DefaultExchange > > at > > org.apache.camel.component.file.FileMessage.getExchange(FileMessage.java:51) > > at > > org.apache.camel.component.file.FileMessage.getExchange(FileMessage.java:33) > > at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:49) > > at > > org.apache.camel.component.jpa.JpaEndpoint$1.evaluate(JpaEndpoint.java:197) > > at org.apache.camel.component.jpa.JpaProducer.process(JpaProducer.java:44) > > at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:69) > > at > > org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:77) > > at org.apache.camel.processor.Pipeline.process(Pipeline.java:57) > > at > > org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:77) > > at > > org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:50) > > at > > org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:57) > > at org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:44) > > at > > org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:63) > > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) > > at > > java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280) > > at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135) > > at > > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65) > > at > > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142) > > at > > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166) > > at > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) > > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) > > at java.lang.Thread.run(Thread.java:595) > > > > I have run the following testcase,and the result is failed too. > > > > package org.apache.camel.component.file; > > > > import java.io.File; > > > > import org.apache.camel.ContextTestSupport; > > import org.apache.camel.Exchange; > > > > public class FileExchangeTest extends ContextTestSupport { > > > > public void testCopy() { > > > > File file = new > > File(FileExchangeTest.class.getResource("FileExchangeTest.class").getFile()); > > FileExchange fileExchange = new FileExchange(context,file); > > Exchange exchange = fileExchange.copy(); > > assertTrue("the copy of a FileExchange is not a FileExchange instance", > > > > exchange instanceof FileExchange); > > } > > > > } > > > > Thanks very much. > > > > -- > > View this message in context: http://www.nabble.com/Problem-with-ETL-example-tf4235477s2354.html#a12050655 > > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > > > > > > -- > James > ------- > http://macstrac.blogspot.com/ > -- James ------- http://macstrac.blogspot.com/