[overlord-issues] [JBoss JIRA] Updated: (SOAG-27) Get hibernate.StaleStateException when run the example second time. (different identity)

Jeff Yu (JIRA) jira-events at lists.jboss.org
Thu Nov 6 09:21:21 EST 2008


     [ https://jira.jboss.org/jira/browse/SOAG-27?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff Yu updated SOAG-27:
------------------------

    Fix Version/s: 1.0 MR1
                       (was: 1.0 CR1)


> Get hibernate.StaleStateException when run the example second time. (different identity)
> ----------------------------------------------------------------------------------------
>
>                 Key: SOAG-27
>                 URL: https://jira.jboss.org/jira/browse/SOAG-27
>             Project: SOA Governance
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Conversation Runtime
>            Reporter: Jeff Yu
>            Assignee: Jeff Yu
>             Fix For: 1.0 MR1
>
>
> Reproduce steps:
> 1) Run the purchase example as the README.txt described.
> 2) Update the id value (say change it to 6) in the BuyerClient.java, and then run "ant runClient" again,
> 3) You will see this error.
> It seems it was caused by message resent by JMS??? 
> Exception:
> -----------------
> org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
>         at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:61)
>         at org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:46)
>         at org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:68)
>         at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
>         at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246)
>         at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:237)
>         at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:146)
>         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.impl.SessionImpl.managedFlush(SessionImpl.java:338)
>         at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
>         at org.jboss.soa.overlord.jbossesb.actions.ConversationAction.process(ConversationAction.java:204)
>         at sun.reflect.GeneratedMethodAccessor165.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.processMethods(ActionProcessorMethodInfo.java:102)
>         at org.jboss.soa.esb.listeners.message.OverriddenActionLifecycleProcessor.process(OverriddenActionLifecycleProcessor.java:74)
>         at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:316)
>         at org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:530)
>         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)
> 21:47:01,503 INFO  [ConversationAction] Session Key is [null] Body is: [<CreditCheckResponse id="6"></CreditCheckResponse>]
> 21:47:01,428 INFO  [ConversationAction] Session Key is [3] Body is: [<CreditCheckResponse id="6"></CreditCheckResponse>]
> 21:47:01,639 ERROR [AbstractFlushingEventListener] Could not synchronize database state with session
> org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
>         at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:61)
>         at org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:46)
>         at org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:68)
>         at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
>         at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246)
>         at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:237)
>         at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:146)
>         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.impl.SessionImpl.managedFlush(SessionImpl.java:338)
>         at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
>         at org.jboss.soa.overlord.jbossesb.actions.ConversationAction.process(ConversationAction.java:204)
>         at sun.reflect.GeneratedMethodAccessor165.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.processMethods(ActionProcessorMethodInfo.java:102)
>         at org.jboss.soa.esb.listeners.message.OverriddenActionLifecycleProcessor.process(OverriddenActionLifecycleProcessor.java:74)
>         at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:316)
>         at org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:530)
>         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)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the overlord-issues mailing list