You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Idriss <do...@gmail.com> on 2011/12/01 10:45:59 UTC
Re: CSV to database
I get this error :
[el (camel) thread #4 - Threads] Tracer INFO
ID-user-PC-62687-1322732337713-0-7 >>> (route1)
org.apache.camel.example.etl.CustomerTransformer@ea213 -->
jpa://org.apache.camel.example.etl.Customer2 <<< Pattern:InOnly,
Headers:{breadcrumbId=ID-user-PC-62687-1322732337713-0-8,
CamelJpaTemplate=org.springframework.orm.jpa.JpaTemplate@16b8cde},
BodyType:org.apache.camel.example.etl.Customer2,
Body:org.apache.camel.example.etl.Customer2@49ed1a
[el (camel) thread #4 - Threads] DefaultErrorHandler ERROR Failed
delivery for exchangeId: ID-user-PC-62687-1322732337713-0-7. Exhausted after
delivery attempt: 1 caught:
org.springframework.dao.InvalidDataAccessApiUsageException: No metadata was
found for type "class org.apache.camel.example.etl.Customer2". The class
does not appear in the list of persistent types:
[org.apache.camel.example.etl.Customer].; nested exception is
<openjpa-2.1.1-r422266:1148538 fatal user error>
org.apache.openjpa.persistence.ArgumentException: No metadata was found for
type "class org.apache.camel.example.etl.Customer2". The class does not
appear in the list of persistent types:
[org.apache.camel.example.etl.Customer].
FailedObject: org.apache.camel.example.etl.Customer2@49ed1a
[java.lang.String]
org.springframework.dao.InvalidDataAccessApiUsageException: No metadata was
found for type "class org.apache.camel.example.etl.Customer2". The class
does not appear in the list of persistent types:
[org.apache.camel.example.etl.Customer].; nested exception is
<openjpa-2.1.1-r422266:1148538 fatal user error>
org.apache.openjpa.persistence.ArgumentException: No metadata was found for
type "class org.apache.camel.example.etl.Customer2". The class does not
appear in the list of persistent types:
[org.apache.camel.example.etl.Customer].
FailedObject: org.apache.camel.example.etl.Customer2@49ed1a
[java.lang.String]
at
org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:286)[spring-orm-3.0.6.RELEASE.jar:3.0.6.RELEASE]
at
org.springframework.orm.jpa.DefaultJpaDialect.translateExceptionIfPossible(DefaultJpaDialect.java:120)[spring-orm-3.0.6.RELEASE.jar:3.0.6.RELEASE]
at
org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:213)[spring-tx-3.0.6.RELEASE.jar:3.0.6.RELEASE]
at
org.springframework.orm.jpa.JpaAccessor.translateIfNecessary(JpaAccessor.java:152)[spring-orm-3.0.6.RELEASE.jar:3.0.6.RELEASE]
at
org.springframework.orm.jpa.JpaTemplate.execute(JpaTemplate.java:188)[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.JpaProducer.process(JpaProducer.java:51)[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.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.access$100(Pipeline.java:42)[camel-core-2.8.2.jar:2.8.2]
at
org.apache.camel.processor.Pipeline$1.done(Pipeline.java:134)[camel-core-2.8.2.jar:2.8.2]
at
org.apache.camel.processor.ThreadsProcessor$ProcessCall.run(ThreadsProcessor.java:56)[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.innerRun(FutureTask.java:334)[:1.7.0_01]
at java.util.concurrent.FutureTask.run(FutureTask.java:166)[: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]
Thank you very much for your help.
Best,
Idriss
--
View this message in context: http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5038173.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: CSV to database
Posted by Christian Müller <ch...@gmail.com>.
It looks really odd for me...
1) You select the Customers twice (in your polling JPA endpoint and in your
processor)
2) You create a new EntityManagerFactory each time the processor is called.
All what you should have to do is:
from("jpa://Customer")
.process(new MyConverter())
.to("jpa://Customer2")
And the processor should only convert Customer into Customer2.
Is it possible to use HSQLDB, H2 or Derby for the tests? With this it's
easier to run your project on my machine without setting up the database...
Best,
Christian
Re: CSV to database
Posted by Idriss <do...@gmail.com>.
I solved the problem.
I use this in my RouteBuilder:
from("jpa:org.apache.camel.example.etl.Customer?consumeDelete=false&delay=3000&consumeLockEntity=false")
.process(new CustomerTransformer());
And my processor looks like this :
public void process(Exchange exchange) throws Exception {
JpaTemplate template = exchange.getIn().getHeader("CamelJpaTemplate",
JpaTemplate.class);
List<Customer> customers = CastUtils.cast(template.find("SELECT x FROM
Customer x"));
System.out.println(customers.size());
EntityManager em =
Persistence.createEntityManagerFactory("camel2").createEntityManager();
EntityTransaction trans = em.getTransaction();
trans.begin();
for (Customer fromCustomer : customers){
Customer2 toCustomer = new Customer2();
toCustomer.setId(fromCustomer.getId());
toCustomer.setUserName(fromCustomer.getUserName());
toCustomer.setFirstName(fromCustomer.getFirstName());
toCustomer.setCity(fromCustomer.getCity());
toCustomer.setStreet(fromCustomer.getStreet());
em.persist(toCustomer);
}
trans.commit();
em.close();
}
And it works perfectly.
Thank you for your help.
Best,
Idriss
--
View this message in context: http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5041482.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: CSV to database
Posted by Claus Ibsen <cl...@gmail.com>.
On Thu, Dec 1, 2011 at 9:41 PM, Idriss <do...@gmail.com> wrote:
> Now I have this error :
>
This is only a WARN.
Can you try with Camel 2.8.3.
> [che.camel.example.etl.Customer] ultPollingConsumerPollStrategy WARN
> Consumer
> Consumer[jpa://org.apache.camel.example.etl.Customer?consumeDelete=false&consumeLockEntity=false&delay=3000]
> could not poll endpoint:
> Endpoint[jpa://org.apache.camel.example.etl.Customer?consumeDelete=false&consumeLockEntity=false&delay=3000]
> caused by: The transaction cannot be committed, because it was already
> marked for rollback only. The transaction will be rolled back instead. The
> cause of the rollback-only status is reported in the embedded stack.; nested
> exception is <openjpa-2.1.1-r422266:1148538 fatal general error>
> org.apache.openjpa.persistence.PersistenceException: The transaction cannot
> be committed, because it was already marked for rollback only. The
> transaction will be rolled back instead. The cause of the rollback-only
> status is reported in the embedded stack.
> org.springframework.orm.jpa.JpaSystemException: The transaction cannot be
> committed, because it was already marked for rollback only. The transaction
> will be rolled back instead. The cause of the rollback-only status is
> reported in the embedded stack.; nested exception is
> <openjpa-2.1.1-r422266:1148538 fatal general error>
> org.apache.openjpa.persistence.PersistenceException: The transaction cannot
> be committed, because it was already marked for rollback only. The
> transaction will be rolled back instead. The cause of the rollback-only
> status is reported in the embedded stack.
> at
> org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:311)[spring-orm-3.0.6.RELEASE.jar:3.0.6.RELEASE]
> at
> org.springframework.orm.jpa.DefaultJpaDialect.translateExceptionIfPossible(DefaultJpaDialect.java:120)[spring-orm-3.0.6.RELEASE.jar:3.0.6.RELEASE]
> at
> org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:471)[spring-orm-3.0.6.RELEASE.jar:3.0.6.RELEASE]
> at
> org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:754)[spring-tx-3.0.6.RELEASE.jar:3.0.6.RELEASE]
> at
> org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723)[spring-tx-3.0.6.RELEASE.jar:3.0.6.RELEASE]
> at
> org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:147)[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]
>
> Thanks,
> Best,
> Idriss
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5039874.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Re: CSV to database
Posted by Idriss <do...@gmail.com>.
Now I have this error :
[che.camel.example.etl.Customer] ultPollingConsumerPollStrategy WARN
Consumer
Consumer[jpa://org.apache.camel.example.etl.Customer?consumeDelete=false&consumeLockEntity=false&delay=3000]
could not poll endpoint:
Endpoint[jpa://org.apache.camel.example.etl.Customer?consumeDelete=false&consumeLockEntity=false&delay=3000]
caused by: The transaction cannot be committed, because it was already
marked for rollback only. The transaction will be rolled back instead. The
cause of the rollback-only status is reported in the embedded stack.; nested
exception is <openjpa-2.1.1-r422266:1148538 fatal general error>
org.apache.openjpa.persistence.PersistenceException: The transaction cannot
be committed, because it was already marked for rollback only. The
transaction will be rolled back instead. The cause of the rollback-only
status is reported in the embedded stack.
org.springframework.orm.jpa.JpaSystemException: The transaction cannot be
committed, because it was already marked for rollback only. The transaction
will be rolled back instead. The cause of the rollback-only status is
reported in the embedded stack.; nested exception is
<openjpa-2.1.1-r422266:1148538 fatal general error>
org.apache.openjpa.persistence.PersistenceException: The transaction cannot
be committed, because it was already marked for rollback only. The
transaction will be rolled back instead. The cause of the rollback-only
status is reported in the embedded stack.
at
org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:311)[spring-orm-3.0.6.RELEASE.jar:3.0.6.RELEASE]
at
org.springframework.orm.jpa.DefaultJpaDialect.translateExceptionIfPossible(DefaultJpaDialect.java:120)[spring-orm-3.0.6.RELEASE.jar:3.0.6.RELEASE]
at
org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:471)[spring-orm-3.0.6.RELEASE.jar:3.0.6.RELEASE]
at
org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:754)[spring-tx-3.0.6.RELEASE.jar:3.0.6.RELEASE]
at
org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723)[spring-tx-3.0.6.RELEASE.jar:3.0.6.RELEASE]
at
org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:147)[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]
Thanks,
Best,
Idriss
--
View this message in context: http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5039874.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: CSV to database
Posted by Claus Ibsen <cl...@gmail.com>.
The exception seems to indicate the class is not an JPA entity. Does
the class have the JPA @Entity annotation.
On Thu, Dec 1, 2011 at 10:45 AM, Idriss <do...@gmail.com> wrote:
> I get this error :
>
>
> [el (camel) thread #4 - Threads] Tracer INFO
> ID-user-PC-62687-1322732337713-0-7 >>> (route1)
> org.apache.camel.example.etl.CustomerTransformer@ea213 -->
> jpa://org.apache.camel.example.etl.Customer2 <<< Pattern:InOnly,
> Headers:{breadcrumbId=ID-user-PC-62687-1322732337713-0-8,
> CamelJpaTemplate=org.springframework.orm.jpa.JpaTemplate@16b8cde},
> BodyType:org.apache.camel.example.etl.Customer2,
> Body:org.apache.camel.example.etl.Customer2@49ed1a
> [el (camel) thread #4 - Threads] DefaultErrorHandler ERROR Failed
> delivery for exchangeId: ID-user-PC-62687-1322732337713-0-7. Exhausted after
> delivery attempt: 1 caught:
> org.springframework.dao.InvalidDataAccessApiUsageException: No metadata was
> found for type "class org.apache.camel.example.etl.Customer2". The class
> does not appear in the list of persistent types:
> [org.apache.camel.example.etl.Customer].; nested exception is
> <openjpa-2.1.1-r422266:1148538 fatal user error>
> org.apache.openjpa.persistence.ArgumentException: No metadata was found for
> type "class org.apache.camel.example.etl.Customer2". The class does not
> appear in the list of persistent types:
> [org.apache.camel.example.etl.Customer].
> FailedObject: org.apache.camel.example.etl.Customer2@49ed1a
> [java.lang.String]
> org.springframework.dao.InvalidDataAccessApiUsageException: No metadata was
> found for type "class org.apache.camel.example.etl.Customer2". The class
> does not appear in the list of persistent types:
> [org.apache.camel.example.etl.Customer].; nested exception is
> <openjpa-2.1.1-r422266:1148538 fatal user error>
> org.apache.openjpa.persistence.ArgumentException: No metadata was found for
> type "class org.apache.camel.example.etl.Customer2". The class does not
> appear in the list of persistent types:
> [org.apache.camel.example.etl.Customer].
> FailedObject: org.apache.camel.example.etl.Customer2@49ed1a
> [java.lang.String]
> at
> org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:286)[spring-orm-3.0.6.RELEASE.jar:3.0.6.RELEASE]
> at
> org.springframework.orm.jpa.DefaultJpaDialect.translateExceptionIfPossible(DefaultJpaDialect.java:120)[spring-orm-3.0.6.RELEASE.jar:3.0.6.RELEASE]
> at
> org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:213)[spring-tx-3.0.6.RELEASE.jar:3.0.6.RELEASE]
> at
> org.springframework.orm.jpa.JpaAccessor.translateIfNecessary(JpaAccessor.java:152)[spring-orm-3.0.6.RELEASE.jar:3.0.6.RELEASE]
> at
> org.springframework.orm.jpa.JpaTemplate.execute(JpaTemplate.java:188)[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.JpaProducer.process(JpaProducer.java:51)[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.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.access$100(Pipeline.java:42)[camel-core-2.8.2.jar:2.8.2]
> at
> org.apache.camel.processor.Pipeline$1.done(Pipeline.java:134)[camel-core-2.8.2.jar:2.8.2]
> at
> org.apache.camel.processor.ThreadsProcessor$ProcessCall.run(ThreadsProcessor.java:56)[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.innerRun(FutureTask.java:334)[:1.7.0_01]
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)[: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]
>
> Thank you very much for your help.
> Best,
> Idriss
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5038173.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/