camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: ResolveEndpointFailedException with ETL example
Date Wed, 01 Jul 2009 15:43:16 GMT
Hi Kevin

Yes you did in fact the right think. But unfortunately there was
another bug in this example related to JPA it uses for accessing the
database.
Its fixed in trunk, so when Camel 2.0 final is out you can try this
sample again.



On Wed, Jul 1, 2009 at 5:39 PM, Kevin.Zhang<zhangyongjiang@yahoo.com> wrote:
>
> Hi Claus,
>
> I'm new to Camel. Do you mean remove "append=false" from file
> examples\camel-example-etl\src\main\java\org\apache\camel\example\etl\EtlRoutes.java?
>
> I just did it. Now I can see error msg as below,
>
> --------------------------------------------------------------------
> [ Camel thread 1: FileComponent] FileConsumer                   DEBUG Total
> 2 files to consume
> [ Camel thread 1: FileComponent] FileEndpoint                   DEBUG Using
> Generic file process strategy:
> org.apache.camel.component.file.strategy.GenericFileN
> oOpProcessStrategy@723646
> [ Camel thread 1: FileComponent] FileConsumer                   DEBUG About
> to process file: GenericFile[row1.xml] using exchange:
> Exchange[GenericFileMessage w
> ith file: GenericFile[row1.xml]]
> [ Camel thread 1: FileComponent] DefaultProducerServicePool     DEBUG
> Starting service pool:
> org.apache.camel.impl.DefaultProducerServicePool@d9c6e2
> [ Camel thread 1: FileComponent] ProducerCache                  DEBUG Adding
> to producer cache with key:
> Endpoint[jpa:org.apache.camel.example.etl.CustomerEntit
> y] for producer: Producer[jpa:org.apache.camel.example.etl.CustomerEntity]
> [ Camel thread 1: FileComponent] Pipeline                       DEBUG
> Message exchange has failed so breaking out of pipeline:
> Exchange[GenericFileMessage with
> body: Person[user: james]] exception:
> org.apache.camel.RuntimeCamelException:
> org.apache.camel.NoTypeConversionAvailableException: No type converter
> available t
> o convert from type: org.apache.camel.example.etl.PersonDocument to the
> required type: org.apache.camel.example.etl.CustomerEntity with value
> Person[user: james
> ] fault: null
> [ Camel thread 1: FileComponent] GenericFileOnCompletion        DEBUG Done
> processing file: GenericFile[row1.xml] using exchange:
> Exchange[GenericFileMessage wi
> th body: Person[user: james]]
> [ Camel thread 1: FileComponent] GenericFileOnCompletion        ERROR
> org.apache.camel.NoTypeConversionAvailableException: No type converter
> available to conver
> t from type: org.apache.camel.example.etl.PersonDocument to the required
> type: org.apache.camel.example.etl.CustomerEntity with value Person[user:
> james]
> org.apache.camel.RuntimeCamelException:
> org.apache.camel.NoTypeConversionAvailableException: No type converter
> available to convert from type: org.apache.camel.
> example.etl.PersonDocument to the required type:
> org.apache.camel.example.etl.CustomerEntity with value Person[user: james]
>        at
> org.apache.camel.component.jpa.JpaEndpoint$1.evaluate(JpaEndpoint.java:266)
>        at
> org.apache.camel.impl.ExpressionAdapter.evaluate(ExpressionAdapter.java:36)
>        at
> org.apache.camel.component.jpa.JpaProducer.process(JpaProducer.java:46)
>        at
> org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:61)
>        at
> org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:59)
>        at
> org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:136)
>        at
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:58)
>        at
> org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:52)
>        at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:61)
>        at
> org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:52)
>        at
> org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:147)
>        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.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:196)
>        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:79)
>        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:885)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>        at java.lang.Thread.run(Thread.java:619)
> Caused by: org.apache.camel.NoTypeConversionAvailableException: No type
> converter available to convert from type:
> org.apache.camel.example.etl.PersonDocument to
>  the required type: org.apache.camel.example.etl.CustomerEntity with value
> Person[user: james]
>        ... 27 more
> [ Camel thread 1: FileComponent] GenericFileOnCompletion        WARN
> Rolling back remote file strategy:
> org.apache.camel.component.file.strategy.GenericFileNoO
> pProcessStrategy@723646 for file: GenericFile[row1.xml]
> ---------------------------------------------------------------------------
>
> Thanks a lot,
> Kevin
>
>
>
> Claus Ibsen-2 wrote:
>>
>> Hi
>>
>> Yeah its a known issue the file component have renamed some options.
>>
>> So to remedy it just remove: append=false from the route.
>>
>>
>> --
>> Claus Ibsen
>> Apache Camel Committer
>>
>> Open Source Integration: http://fusesource.com
>> Blog: http://davsclaus.blogspot.com/
>> Twitter: http://twitter.com/davsclaus
>>
>>
>
> --
> View this message in context: http://www.nabble.com/ResolveEndpointFailedException-with-ETL-example-tp24291442p24291986.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Mime
View raw message