camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-173) BAM example failure
Date Fri, 28 Mar 2008 09:46:32 GMT

    [ https://issues.apache.org/activemq/browse/CAMEL-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41871#action_41871
] 

Claus Ibsen commented on CAMEL-173:
-----------------------------------

The exception is happening on startup, it does not affect the application later on. 
However it would be nicer to remove this noise.

> 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
>             Fix For: 1.4.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: org.apache.camel.spring.SpringCamelContext@352d87
> [nent.file.FileComponent@db248c] JDBCExceptionReporter          WARN  SQL Error: 0, SQLState:
null
> [nent.file.FileComponent@db248c] JDBCExceptionReporter          ERROR failed batch
> Failed to load preferences.  Proceeding with defaults:
> [nent.file.FileComponent@db248c] 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
> [nent.file.FileComponent@db248c] 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
> [nent.file.FileComponent@db248c] 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.


Mime
View raw message