[ 
https://issues.apache.org/activemq/browse/CAMEL-173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hadrian Zbarcea updated CAMEL-173:
----------------------------------

    Fix Version/s: 1.3.0
                       (was: 1.4.0)

> BAM example failure
> -------------------
>
>                 Key: CAMEL-173
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-173
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 1.2.0
>         Environment: testing the camel-1.2.0 RC2 on SUSE Linux
>            Reporter: Bozhong Lin
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 1.3.0
>
>
> the example throws following error:
> [pache.camel.spring.Main.main()] Main                           INFO  Apache 
> Camel 1.2.0 starting
> [pache.camel.spring.Main.main()] Main                           INFO  
> Generating DOT file for routes: 
> /opt/dev/apache-camel-1.2.0/examples/camel-example-bam/target/site/cameldoc 
> for: [EMAIL PROTECTED]
> [EMAIL PROTECTED] JDBCExceptionReporter          WARN  SQL Error: 0, 
> SQLState: null
> [EMAIL PROTECTED] JDBCExceptionReporter          ERROR failed batch
> Failed to load preferences.  Proceeding with defaults:
> [EMAIL PROTECTED] AbstractFlushingEventListener  ERROR Could not synchronize 
> database state with session
> org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch 
> update
>         at 
> org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
>         at 
> org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
>         at 
> org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
>         at 
> org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:249)
>         at 
> org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
>         at 
> org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139)
>         at 
> org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
>         at 
> org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
>         at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
>         at 
> org.hibernate.ejb.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:296)
>         at 
> org.springframework.orm.jpa.JpaTemplate$8.doInJpa(JpaTemplate.java:289)
>         at 
> org.springframework.orm.jpa.JpaTemplate.execute(JpaTemplate.java:191)
>         at org.springframework.orm.jpa.JpaTemplate.flush(JpaTemplate.java:287)
>         at 
> org.apache.camel.bam.processor.JpaBamProcessorSupport.loadEntity(JpaBamProcessorSupport.java:118)
>         at 
> org.apache.camel.bam.processor.BamProcessorSupport$1.doInTransaction(BamProcessorSupport.java:96)
>         at 
> org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:127)
>         at 
> org.apache.camel.bam.processor.BamProcessorSupport.process(BamProcessorSupport.java:91)
>         at 
> org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsynProcessorBridge.process(AsyncProcessorTypeConverter.java:44)
>         at 
> org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:131)
>         at 
> org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:68)
>         at 
> org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:76)
>         at 
> org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:49)
>         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)
> Caused by: java.sql.BatchUpdateException: failed batch
>         at org.hsqldb.jdbc.jdbcStatement.executeBatch(Unknown Source)
>         at org.hsqldb.jdbc.jdbcPreparedStatement.executeBatch(Unknown Source)
>         at 
> org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
>         at 
> org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:242)
>         ... 28 more
> [EMAIL PROTECTED] BamProcessorSupport            INFO  Attempt to insert 
> duplicate row due to concurrency issue, so retrying: 
> org.springframework.orm.jpa.JpaSystemException: 
> org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch 
> update; nested exception is javax.persistence.PersistenceException: 
> org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch 
> update
> [EMAIL PROTECTED] BamProcessorSupport            INFO  Retry attempt due to 
> duplicate row: 1
> [         ActivityMonitorEngine] BamFailures                    ERROR 
> Exchange[Message: ActivityState[2 on ProcessInstance[p3] Activity[2 name: 
> file:src/data/invoices?noop=true]]]
> [         ActivityMonitorEngine] BamFailures                    ERROR 
> Exchange[Message: ActivityState[7 on ProcessInstance[p2] Activity[2 name: 
> file:src/data/invoices?noop=true]]]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to