camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Idriss <doulmakhzo...@gmail.com>
Subject Re: CSV to database
Date Wed, 23 Nov 2011 22:25:51 GMT
I tried with this :
to("jpa:org.apache.camel.example.etl.IWIBO.OcPccCommoncard")

But I have the following error : 

[ample.etl.BOPDEV.PccCommoncard] DefaultErrorHandler            ERROR Failed
delivery for exchangeId: ID-oulmakhzoune-PC-52598-1322086931344-0-459.
Exhausted after delivery attempt: 1 caught:
org.apache.camel.InvalidPayloadRuntimeException: No body available of type:
org.apache.camel.example.etl.IWIBO.OcPccCommoncard but has value:
org.apache.camel.example.etl.BOPDEV.PccCommoncard@98671d of type:
org.apache.camel.example.etl.BOPDEV.PccCommoncard on: Message:
org.apache.camel.example.etl.BOPDEV.PccCommoncard@98671d. Caused by: No type
converter available to convert from type:
org.apache.camel.example.etl.BOPDEV.PccCommoncard to the required type:
org.apache.camel.example.etl.IWIBO.OcPccCommoncard with value
org.apache.camel.example.etl.BOPDEV.PccCommoncard@98671d on the exchange:
Exchange[Message: org.apache.camel.example.etl.BOPDEV.PccCommoncard@98671d]
org.apache.camel.InvalidPayloadRuntimeException: No body available of type:
org.apache.camel.example.etl.IWIBO.OcPccCommoncard but has value:
org.apache.camel.example.etl.BOPDEV.PccCommoncard@98671d of type:
org.apache.camel.example.etl.BOPDEV.PccCommoncard on: Message:
org.apache.camel.example.etl.BOPDEV.PccCommoncard@98671d. Caused by: No type
converter available to convert from type:
org.apache.camel.example.etl.BOPDEV.PccCommoncard to the required type:
org.apache.camel.example.etl.IWIBO.OcPccCommoncard with value
org.apache.camel.example.etl.BOPDEV.PccCommoncard@98671d on the exchange:
Exchange[Message: org.apache.camel.example.etl.BOPDEV.PccCommoncard@98671d]
	at
org.apache.camel.component.jpa.JpaEndpoint$1.evaluate(JpaEndpoint.java:277)[camel-jpa-2.8.2.jar:2.8.2]
	at
org.apache.camel.impl.ExpressionAdapter.evaluate(ExpressionAdapter.java:36)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.component.jpa.JpaProducer.process(JpaProducer.java:49)[camel-jpa-2.8.2.jar:2.8.2]
	at
org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:114)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:284)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:109)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:162)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:318)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:209)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:306)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.processor.Pipeline.process(Pipeline.java:116)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.processor.Pipeline.process(Pipeline.java:79)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:102)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:104)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:85)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.component.jpa.JpaConsumer.processBatch(JpaConsumer.java:142)[camel-jpa-2.8.2.jar:2.8.2]
	at
org.apache.camel.component.jpa.JpaConsumer$1.doInJpa(JpaConsumer.java:97)[camel-jpa-2.8.2.jar:2.8.2]
	at
org.apache.camel.component.jpa.JpaTemplateTransactionStrategy$1$1.doInJpa(JpaTemplateTransactionStrategy.java:82)[camel-jpa-2.8.2.jar:2.8.2]
	at
org.springframework.orm.jpa.JpaTemplate.execute(JpaTemplate.java:183)[spring-orm-3.0.6.RELEASE.jar:3.0.6.RELEASE]
	at
org.springframework.orm.jpa.JpaTemplate.execute(JpaTemplate.java:146)[spring-orm-3.0.6.RELEASE.jar:3.0.6.RELEASE]
	at
org.apache.camel.component.jpa.JpaTemplateTransactionStrategy$1.doInTransaction(JpaTemplateTransactionStrategy.java:80)[camel-jpa-2.8.2.jar:2.8.2]
	at
org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)[spring-tx-3.0.6.RELEASE.jar:3.0.6.RELEASE]
	at
org.apache.camel.component.jpa.JpaTemplateTransactionStrategy.execute(JpaTemplateTransactionStrategy.java:78)[camel-jpa-2.8.2.jar:2.8.2]
	at
org.apache.camel.component.jpa.JpaConsumer.poll(JpaConsumer.java:80)[camel-jpa-2.8.2.jar:2.8.2]
	at
org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:134)[camel-core-2.8.2.jar:2.8.2]
	at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:89)[camel-core-2.8.2.jar:2.8.2]
	at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_01]
	at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)[:1.7.0_01]
	at
java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)[:1.7.0_01]
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)[:1.7.0_01]
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.7.0_01]
	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0_01]
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0_01]
	at java.lang.Thread.run(Thread.java:722)[:1.7.0_01]


Best,

--
View this message in context: http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5018419.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message