I test it locally using the command :

mvn camel:run -Dtest=false

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com
twitter : http://twitter.com/cmoulliard
Linkedlin : http://www.linkedin.com/in/charlesmoulliard

Apache Camel Group :
http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm


On Thu, Dec 3, 2009 at 3:17 PM, Willem Jiang <[email protected]> wrote:

> Hi Charles,
>
> The example can run by using mvn camel:run.
> Did you run it with camel:run or deploy the bundle into OSGi environment?
>
> Willem
>
>
>
> Charles Moulliard wrote:
>
>> The example camel-example-etl does not work
>>
>> [ Camel thread 1: FileComponent] GenericFileOnCompletion        ERROR No
>> body available of type: org.apache.camel.example.etl.CustomerEntity but
>> has
>> v
>> alue: Person[user: james] of type:
>> org.apache.camel.example.etl.PersonDocument on: GenericFileMessage with
>> body: Person[user: james] on the exchange:
>> Exchange[GenericFileMessage with body: Person[user: james]]
>> org.apache.camel.InvalidPayloadRuntimeException: No body available of
>> type:
>> org.apache.camel.example.etl.CustomerEntity but has value: Person[user: ja
>> mes] of type: org.apache.camel.example.etl.PersonDocument on:
>> GenericFileMessage with body: Person[user: james] on the exchange:
>> Exchange[GenericFileM
>> essage with body: Person[user: james]]
>>        at
>>
>> org.apache.camel.component.jpa.JpaEndpoint$1.evaluate(JpaEndpoint.java:268)
>>        at
>>
>> org.apache.camel.impl.ExpressionAdapter.evaluate(ExpressionAdapter.java:36)
>>        at
>> org.apache.camel.component.jpa.JpaProducer.process(JpaProducer.java:47)
>>        at
>>
>> org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:97)
>>        at
>>
>> org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:94)
>>        at
>> org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:146)
>>        at
>> org.apache.camel.processor.SendProcessor.doProcess(SendProcessor.java:94)
>>        at
>> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:82)
>>        at
>>
>> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
>>        at
>>
>> org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
>>        at
>>
>> org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)
>>        at
>>
>> org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:93)
>>        at
>>
>> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
>>        at
>>
>> org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:223)
>>        at
>>
>> org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:153)
>>        at
>>
>> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:91)
>>        at
>>
>> org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)
>>        at
>> org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:206)
>>        at org.apache.camel.processor.Pipeline.process(Pipeline.java:74)
>>        at
>>
>> org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:54)
>>        at
>>
>> org.apache.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48)
>>        at
>>
>> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
>>        at
>>
>> org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:201)
>>        at
>>
>> org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:122)
>>        at
>>
>> org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:95)
>>        at
>>
>> org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:108)
>>        at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>>        at
>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
>>        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>>        at
>>
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
>>        at
>>
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
>>        at
>>
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
>>        at
>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>        at
>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>        at java.lang.Thread.run(Thread.java:619)
>>
>> Charles Moulliard
>> Senior Enterprise Architect
>> Apache Camel Committer
>>
>> *****************************
>> blog : http://cmoulliard.blogspot.com
>> twitter : http://twitter.com/cmoulliard
>> Linkedlin : http://www.linkedin.com/in/charlesmoulliard
>>
>> Apache Camel Group :
>> http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm
>>
>>
>

Reply via email to