org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.openvpms.component.business.domain.im.act.Act#3068]

JIRA | Tony De Keizer | 10 years ago
  1. 0

    User reports the following: When Jade is taking a payment from workflow waiting room, check out section, invoicing, then post account ? clicked OK, Pay acct clicked OK, then print invoice is clicked OK OCCASIONALLY the red box pops up with 'Unable to establish bla bla ...' If that box is clicked OK the invoice is printed correctly but the patient details are left on the worklist waiting room section, rather than automatically deleted. The complete mesage displayed is "Failed to execute the business rule for method save." This only happens intermittantly - but regularly. On looking in the logs there are regular occurences of the following exception that seem to correlate with when issues occurred. [ERROR,AbstractFlushingEventListener,http-8080-Processor22] Could not synchronize database state with session org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.openvpms.component.business.domain.im.act.Act#3068] at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1761) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2403) at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2303) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2603) at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140) 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.openvpms.component.business.dao.hibernate.im.entity.IMObjectDAOHibernate.save(IMObjectDAOHibernate.java:101) at org.openvpms.component.business.service.archetype.ArchetypeService.save(ArchetypeService.java:536) at org.openvpms.component.business.service.archetype.ArchetypeService.save(ArchetypeService.java:510) at sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122) at org.openvpms.component.business.service.ruleengine.DroolsRuleEngine.invoke(DroolsRuleEngine.java:93) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy3.save(Unknown Source) at sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:163) at $Proxy4.save(Unknown Source) at sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122) at org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80) at org.openvpms.component.business.service.security.OpenVPMSMethodSecurityInterceptor.invoke(OpenVPMSMethodSecurityInterceptor.java:50) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy4.save(Unknown Source) at org.openvpms.web.component.workflow.UpdateIMObjectTask.start(UpdateIMObjectTask.java:127) at org.openvpms.web.component.workflow.WorkflowImpl.next(WorkflowImpl.java:130) at org.openvpms.web.component.workflow.WorkflowImpl.onEvent(WorkflowImpl.java:162) at org.openvpms.web.component.workflow.WorkflowImpl$1.taskEvent(WorkflowImpl.java:73) at org.openvpms.web.component.workflow.AbstractTask.notifyCompleted(AbstractTask.java:103) at org.openvpms.web.app.workflow.checkout.PrintDocumentsTask.access$300(PrintDocumentsTask.java:56) at org.openvpms.web.app.workflow.checkout.PrintDocumentsTask$BatchPrinter.print(PrintDocumentsTask.java:203) at org.openvpms.web.app.workflow.checkout.PrintDocumentsTask$BatchPrinter.printed(PrintDocumentsTask.java:224) at org.openvpms.web.component.im.print.InteractiveIMPrinter.printed(InteractiveIMPrinter.java:243) at org.openvpms.web.component.im.print.InteractiveIMPrinter.doPrint(InteractiveIMPrinter.java:219) at org.openvpms.web.component.im.print.InteractiveIMPrinter$2.windowPaneClosing(InteractiveIMPrinter.java:156) at nextapp.echo2.app.WindowPane.fireWindowClosing(WindowPane.java:153) at nextapp.echo2.app.WindowPane.userClose(WindowPane.java:769) at org.openvpms.web.component.dialog.PopupWindow.close(PopupWindow.java:137) at org.openvpms.web.component.dialog.PopupDialog.close(PopupDialog.java:245) at org.openvpms.web.component.dialog.PopupDialog.onOK(PopupDialog.java:195) at org.openvpms.web.component.dialog.PopupDialog.onButton(PopupDialog.java:173) at org.openvpms.web.component.dialog.PopupDialog$1.actionPerformed(PopupDialog.java:258) at nextapp.echo2.app.button.AbstractButton.fireActionPerformed(AbstractButton.java:135) at nextapp.echo2.app.button.AbstractButton$1.actionPerformed(AbstractButton.java:100) at nextapp.echo2.app.button.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:70) at nextapp.echo2.app.button.DefaultButtonModel.doAction(DefaultButtonModel.java:58) at nextapp.echo2.app.button.AbstractButton.doAction(AbstractButton.java:121) at nextapp.echo2.app.button.AbstractButton.processInput(AbstractButton.java:506) at nextapp.echo2.app.update.ClientUpdateManager.process(ClientUpdateManager.java:116) at nextapp.echo2.app.update.UpdateManager.processClientUpdates(UpdateManager.java:89) at nextapp.echo2.webcontainer.ContainerSynchronizeService.renderUpdate(ContainerSynchronizeService.java:472) at nextapp.echo2.webrender.service.SynchronizeService.service(SynchronizeService.java:279) at nextapp.echo2.webrender.WebRenderServlet.process(WebRenderServlet.java:273) at nextapp.echo2.webrender.WebRenderServlet.doPost(WebRenderServlet.java:189) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:292) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:108) at org.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter(SecurityEnforcementFilter.java:197) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:143) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:246) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:220) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:173) at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:120) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) [ERROR,ErrorHelper,http-8080-Processor22] Failed to execute the business rule for method save. org.openvpms.component.business.service.ruleengine.RuleEngineException: Failed to execute the business rule for method save. at org.openvpms.component.business.service.ruleengine.DroolsRuleEngine.invoke(DroolsRuleEngine.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy3.save(Unknown Source) at sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:163) at $Proxy4.save(Unknown Source) at sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122) at org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80) at org.openvpms.component.business.service.security.OpenVPMSMethodSecurityInterceptor.invoke(OpenVPMSMethodSecurityInterceptor.java:50) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy4.save(Unknown Source) at org.openvpms.web.component.workflow.UpdateIMObjectTask.start(UpdateIMObjectTask.java:127) at org.openvpms.web.component.workflow.WorkflowImpl.next(WorkflowImpl.java:130) at org.openvpms.web.component.workflow.WorkflowImpl.onEvent(WorkflowImpl.java:162) at org.openvpms.web.component.workflow.WorkflowImpl$1.taskEvent(WorkflowImpl.java:73) at org.openvpms.web.component.workflow.AbstractTask.notifyCompleted(AbstractTask.java:103) at org.openvpms.web.app.workflow.checkout.PrintDocumentsTask.access$300(PrintDocumentsTask.java:56) at org.openvpms.web.app.workflow.checkout.PrintDocumentsTask$BatchPrinter.print(PrintDocumentsTask.java:203) at org.openvpms.web.app.workflow.checkout.PrintDocumentsTask$BatchPrinter.printed(PrintDocumentsTask.java:224) at org.openvpms.web.component.im.print.InteractiveIMPrinter.printed(InteractiveIMPrinter.java:243) at org.openvpms.web.component.im.print.InteractiveIMPrinter.doPrint(InteractiveIMPrinter.java:219) at org.openvpms.web.component.im.print.InteractiveIMPrinter$2.windowPaneClosing(InteractiveIMPrinter.java:156) at nextapp.echo2.app.WindowPane.fireWindowClosing(WindowPane.java:153) at nextapp.echo2.app.WindowPane.userClose(WindowPane.java:769) at org.openvpms.web.component.dialog.PopupWindow.close(PopupWindow.java:137) at org.openvpms.web.component.dialog.PopupDialog.close(PopupDialog.java:245) at org.openvpms.web.component.dialog.PopupDialog.onOK(PopupDialog.java:195) at org.openvpms.web.component.dialog.PopupDialog.onButton(PopupDialog.java:173) at org.openvpms.web.component.dialog.PopupDialog$1.actionPerformed(PopupDialog.java:258) at nextapp.echo2.app.button.AbstractButton.fireActionPerformed(AbstractButton.java:135) at nextapp.echo2.app.button.AbstractButton$1.actionPerformed(AbstractButton.java:100) at nextapp.echo2.app.button.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:70) at nextapp.echo2.app.button.DefaultButtonModel.doAction(DefaultButtonModel.java:58) at nextapp.echo2.app.button.AbstractButton.doAction(AbstractButton.java:121) at nextapp.echo2.app.button.AbstractButton.processInput(AbstractButton.java:506) at nextapp.echo2.app.update.ClientUpdateManager.process(ClientUpdateManager.java:116) at nextapp.echo2.app.update.UpdateManager.processClientUpdates(UpdateManager.java:89) at nextapp.echo2.webcontainer.ContainerSynchronizeService.renderUpdate(ContainerSynchronizeService.java:472) at nextapp.echo2.webrender.service.SynchronizeService.service(SynchronizeService.java:279) at nextapp.echo2.webrender.WebRenderServlet.process(WebRenderServlet.java:273) at nextapp.echo2.webrender.WebRenderServlet.doPost(WebRenderServlet.java:189) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:292) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:108) at org.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter(SecurityEnforcementFilter.java:197) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:143) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:246) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:220) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:173) at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:120) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) Caused by: org.openvpms.component.business.service.archetype.ArchetypeServiceException: Failed to save object org.openvpms.component.business.domain.im.act.Act@1054e8a[title=<null>,activityStartTime=2007-02-12 09:32:00.0,activityEndTime=Mon Feb 12 09:52:42 EST 2007,reason=<null>,status=COMPLETED,participations=[org.openvpms.component.business.domain.im.common.Participation@270be6[uid=7385,archetypeId=openvpms-common-participation.clinician.1.0,linkId=b0b66ea2-ba1f-11db-a6a6-f18bf738b377,version=1,name=<null>], org.openvpms.component.business.domain.im.common.Participation@1f23418[uid=7387,archetypeId=openvpms-common-participation.patient.1.0,linkId=b0a5a6be-ba1f-11db-a6a6-f18bf738b377,version=0,name=<null>], org.openvpms.component.business.domain.im.common.Participation@17e6082[uid=7386,archetypeId=openvpms-common-participation.worklist.1.0,linkId=b0a5a6bf-ba1f-11db-a6a6-f18bf738b377,version=0,name=<null>], org.openvpms.component.business.domain.im.common.Participation@3a18c1[uid=7388,archetypeId=openvpms-common-participation.customer.1.0,linkId=b0a5a6bd-ba1f-11db-a6a6-f18bf738b377,version=0,name=<null>], org.openvpms.component.business.domain.im.common.Participation@2f669e[uid=7389,archetypeId=openvpms-common-participation.taskType.1.0,linkId=b0a35ccc-ba1f-11db-a6a6-f18bf738b377,version=0,name=<null>]],sourceActRelationships=[],targetActRelationships=[]] at org.openvpms.component.business.service.archetype.ArchetypeService.save(ArchetypeService.java:548) at org.openvpms.component.business.service.archetype.ArchetypeService.save(ArchetypeService.java:510) at sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122) at org.openvpms.component.business.service.ruleengine.DroolsRuleEngine.invoke(DroolsRuleEngine.java:93) ... 80 more Caused by: org.openvpms.component.business.dao.im.common.IMObjectDAOException: Failed to save IMObject {0} at org.openvpms.component.business.dao.hibernate.im.entity.IMObjectDAOHibernate.save(IMObjectDAOHibernate.java:107) at org.openvpms.component.business.service.archetype.ArchetypeService.save(ArchetypeService.java:536) ... 88 more Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.openvpms.component.business.domain.im.act.Act#3068] at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1761) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2403) at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2303) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2603) at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140) 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.openvpms.component.business.dao.hibernate.im.entity.IMObjectDAOHibernate.save(IMObjectDAOHibernate.java:101) ... 89 more

    JIRA | 10 years ago | Tony De Keizer
    org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.openvpms.component.business.domain.im.act.Act#3068]
  2. 0

    User reports the following: When Jade is taking a payment from workflow waiting room, check out section, invoicing, then post account ? clicked OK, Pay acct clicked OK, then print invoice is clicked OK OCCASIONALLY the red box pops up with 'Unable to establish bla bla ...' If that box is clicked OK the invoice is printed correctly but the patient details are left on the worklist waiting room section, rather than automatically deleted. The complete mesage displayed is "Failed to execute the business rule for method save." This only happens intermittantly - but regularly. On looking in the logs there are regular occurences of the following exception that seem to correlate with when issues occurred. [ERROR,AbstractFlushingEventListener,http-8080-Processor22] Could not synchronize database state with session org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.openvpms.component.business.domain.im.act.Act#3068] at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1761) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2403) at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2303) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2603) at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140) 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.openvpms.component.business.dao.hibernate.im.entity.IMObjectDAOHibernate.save(IMObjectDAOHibernate.java:101) at org.openvpms.component.business.service.archetype.ArchetypeService.save(ArchetypeService.java:536) at org.openvpms.component.business.service.archetype.ArchetypeService.save(ArchetypeService.java:510) at sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122) at org.openvpms.component.business.service.ruleengine.DroolsRuleEngine.invoke(DroolsRuleEngine.java:93) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy3.save(Unknown Source) at sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:163) at $Proxy4.save(Unknown Source) at sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122) at org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80) at org.openvpms.component.business.service.security.OpenVPMSMethodSecurityInterceptor.invoke(OpenVPMSMethodSecurityInterceptor.java:50) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy4.save(Unknown Source) at org.openvpms.web.component.workflow.UpdateIMObjectTask.start(UpdateIMObjectTask.java:127) at org.openvpms.web.component.workflow.WorkflowImpl.next(WorkflowImpl.java:130) at org.openvpms.web.component.workflow.WorkflowImpl.onEvent(WorkflowImpl.java:162) at org.openvpms.web.component.workflow.WorkflowImpl$1.taskEvent(WorkflowImpl.java:73) at org.openvpms.web.component.workflow.AbstractTask.notifyCompleted(AbstractTask.java:103) at org.openvpms.web.app.workflow.checkout.PrintDocumentsTask.access$300(PrintDocumentsTask.java:56) at org.openvpms.web.app.workflow.checkout.PrintDocumentsTask$BatchPrinter.print(PrintDocumentsTask.java:203) at org.openvpms.web.app.workflow.checkout.PrintDocumentsTask$BatchPrinter.printed(PrintDocumentsTask.java:224) at org.openvpms.web.component.im.print.InteractiveIMPrinter.printed(InteractiveIMPrinter.java:243) at org.openvpms.web.component.im.print.InteractiveIMPrinter.doPrint(InteractiveIMPrinter.java:219) at org.openvpms.web.component.im.print.InteractiveIMPrinter$2.windowPaneClosing(InteractiveIMPrinter.java:156) at nextapp.echo2.app.WindowPane.fireWindowClosing(WindowPane.java:153) at nextapp.echo2.app.WindowPane.userClose(WindowPane.java:769) at org.openvpms.web.component.dialog.PopupWindow.close(PopupWindow.java:137) at org.openvpms.web.component.dialog.PopupDialog.close(PopupDialog.java:245) at org.openvpms.web.component.dialog.PopupDialog.onOK(PopupDialog.java:195) at org.openvpms.web.component.dialog.PopupDialog.onButton(PopupDialog.java:173) at org.openvpms.web.component.dialog.PopupDialog$1.actionPerformed(PopupDialog.java:258) at nextapp.echo2.app.button.AbstractButton.fireActionPerformed(AbstractButton.java:135) at nextapp.echo2.app.button.AbstractButton$1.actionPerformed(AbstractButton.java:100) at nextapp.echo2.app.button.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:70) at nextapp.echo2.app.button.DefaultButtonModel.doAction(DefaultButtonModel.java:58) at nextapp.echo2.app.button.AbstractButton.doAction(AbstractButton.java:121) at nextapp.echo2.app.button.AbstractButton.processInput(AbstractButton.java:506) at nextapp.echo2.app.update.ClientUpdateManager.process(ClientUpdateManager.java:116) at nextapp.echo2.app.update.UpdateManager.processClientUpdates(UpdateManager.java:89) at nextapp.echo2.webcontainer.ContainerSynchronizeService.renderUpdate(ContainerSynchronizeService.java:472) at nextapp.echo2.webrender.service.SynchronizeService.service(SynchronizeService.java:279) at nextapp.echo2.webrender.WebRenderServlet.process(WebRenderServlet.java:273) at nextapp.echo2.webrender.WebRenderServlet.doPost(WebRenderServlet.java:189) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:292) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:108) at org.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter(SecurityEnforcementFilter.java:197) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:143) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:246) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:220) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:173) at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:120) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) [ERROR,ErrorHelper,http-8080-Processor22] Failed to execute the business rule for method save. org.openvpms.component.business.service.ruleengine.RuleEngineException: Failed to execute the business rule for method save. at org.openvpms.component.business.service.ruleengine.DroolsRuleEngine.invoke(DroolsRuleEngine.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy3.save(Unknown Source) at sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:163) at $Proxy4.save(Unknown Source) at sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122) at org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80) at org.openvpms.component.business.service.security.OpenVPMSMethodSecurityInterceptor.invoke(OpenVPMSMethodSecurityInterceptor.java:50) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy4.save(Unknown Source) at org.openvpms.web.component.workflow.UpdateIMObjectTask.start(UpdateIMObjectTask.java:127) at org.openvpms.web.component.workflow.WorkflowImpl.next(WorkflowImpl.java:130) at org.openvpms.web.component.workflow.WorkflowImpl.onEvent(WorkflowImpl.java:162) at org.openvpms.web.component.workflow.WorkflowImpl$1.taskEvent(WorkflowImpl.java:73) at org.openvpms.web.component.workflow.AbstractTask.notifyCompleted(AbstractTask.java:103) at org.openvpms.web.app.workflow.checkout.PrintDocumentsTask.access$300(PrintDocumentsTask.java:56) at org.openvpms.web.app.workflow.checkout.PrintDocumentsTask$BatchPrinter.print(PrintDocumentsTask.java:203) at org.openvpms.web.app.workflow.checkout.PrintDocumentsTask$BatchPrinter.printed(PrintDocumentsTask.java:224) at org.openvpms.web.component.im.print.InteractiveIMPrinter.printed(InteractiveIMPrinter.java:243) at org.openvpms.web.component.im.print.InteractiveIMPrinter.doPrint(InteractiveIMPrinter.java:219) at org.openvpms.web.component.im.print.InteractiveIMPrinter$2.windowPaneClosing(InteractiveIMPrinter.java:156) at nextapp.echo2.app.WindowPane.fireWindowClosing(WindowPane.java:153) at nextapp.echo2.app.WindowPane.userClose(WindowPane.java:769) at org.openvpms.web.component.dialog.PopupWindow.close(PopupWindow.java:137) at org.openvpms.web.component.dialog.PopupDialog.close(PopupDialog.java:245) at org.openvpms.web.component.dialog.PopupDialog.onOK(PopupDialog.java:195) at org.openvpms.web.component.dialog.PopupDialog.onButton(PopupDialog.java:173) at org.openvpms.web.component.dialog.PopupDialog$1.actionPerformed(PopupDialog.java:258) at nextapp.echo2.app.button.AbstractButton.fireActionPerformed(AbstractButton.java:135) at nextapp.echo2.app.button.AbstractButton$1.actionPerformed(AbstractButton.java:100) at nextapp.echo2.app.button.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:70) at nextapp.echo2.app.button.DefaultButtonModel.doAction(DefaultButtonModel.java:58) at nextapp.echo2.app.button.AbstractButton.doAction(AbstractButton.java:121) at nextapp.echo2.app.button.AbstractButton.processInput(AbstractButton.java:506) at nextapp.echo2.app.update.ClientUpdateManager.process(ClientUpdateManager.java:116) at nextapp.echo2.app.update.UpdateManager.processClientUpdates(UpdateManager.java:89) at nextapp.echo2.webcontainer.ContainerSynchronizeService.renderUpdate(ContainerSynchronizeService.java:472) at nextapp.echo2.webrender.service.SynchronizeService.service(SynchronizeService.java:279) at nextapp.echo2.webrender.WebRenderServlet.process(WebRenderServlet.java:273) at nextapp.echo2.webrender.WebRenderServlet.doPost(WebRenderServlet.java:189) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:292) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:108) at org.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter(SecurityEnforcementFilter.java:197) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:143) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:246) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:220) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:173) at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:120) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) Caused by: org.openvpms.component.business.service.archetype.ArchetypeServiceException: Failed to save object org.openvpms.component.business.domain.im.act.Act@1054e8a[title=<null>,activityStartTime=2007-02-12 09:32:00.0,activityEndTime=Mon Feb 12 09:52:42 EST 2007,reason=<null>,status=COMPLETED,participations=[org.openvpms.component.business.domain.im.common.Participation@270be6[uid=7385,archetypeId=openvpms-common-participation.clinician.1.0,linkId=b0b66ea2-ba1f-11db-a6a6-f18bf738b377,version=1,name=<null>], org.openvpms.component.business.domain.im.common.Participation@1f23418[uid=7387,archetypeId=openvpms-common-participation.patient.1.0,linkId=b0a5a6be-ba1f-11db-a6a6-f18bf738b377,version=0,name=<null>], org.openvpms.component.business.domain.im.common.Participation@17e6082[uid=7386,archetypeId=openvpms-common-participation.worklist.1.0,linkId=b0a5a6bf-ba1f-11db-a6a6-f18bf738b377,version=0,name=<null>], org.openvpms.component.business.domain.im.common.Participation@3a18c1[uid=7388,archetypeId=openvpms-common-participation.customer.1.0,linkId=b0a5a6bd-ba1f-11db-a6a6-f18bf738b377,version=0,name=<null>], org.openvpms.component.business.domain.im.common.Participation@2f669e[uid=7389,archetypeId=openvpms-common-participation.taskType.1.0,linkId=b0a35ccc-ba1f-11db-a6a6-f18bf738b377,version=0,name=<null>]],sourceActRelationships=[],targetActRelationships=[]] at org.openvpms.component.business.service.archetype.ArchetypeService.save(ArchetypeService.java:548) at org.openvpms.component.business.service.archetype.ArchetypeService.save(ArchetypeService.java:510) at sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122) at org.openvpms.component.business.service.ruleengine.DroolsRuleEngine.invoke(DroolsRuleEngine.java:93) ... 80 more Caused by: org.openvpms.component.business.dao.im.common.IMObjectDAOException: Failed to save IMObject {0} at org.openvpms.component.business.dao.hibernate.im.entity.IMObjectDAOHibernate.save(IMObjectDAOHibernate.java:107) at org.openvpms.component.business.service.archetype.ArchetypeService.save(ArchetypeService.java:536) ... 88 more Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.openvpms.component.business.domain.im.act.Act#3068] at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1761) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2403) at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2303) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2603) at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140) 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.openvpms.component.business.dao.hibernate.im.entity.IMObjectDAOHibernate.save(IMObjectDAOHibernate.java:101) ... 89 more

    JIRA | 10 years ago | Tony De Keizer
    org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.openvpms.component.business.domain.im.act.Act#3068]
  3. 0

    There are occassional task status update failures during workflow functions due to two users updating the same task concurrently or the workflow process not re-reading the task information before doing an update. Exception is as follows: [ERROR,AbstractFlushingEventListener,http-8080-Processor25] Could not synchronize database state with session org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.openvpms.component.business.domain.im.act.Act#3649] at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1761) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2403) at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2303) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2603) at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140) 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.openvpms.component.business.dao.hibernate.im.entity.IMObjectDAOHibernate.save(IMObjectDAOHibernate.java:101) at org.openvpms.component.business.service.archetype.ArchetypeService.save(ArchetypeService.java:536) at org.openvpms.component.business.service.archetype.ArchetypeService.save(ArchetypeService.java:510) at sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122) at org.openvpms.component.business.service.ruleengine.DroolsRuleEngine.invoke(DroolsRuleEngine.java:93) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy3.save(Unknown Source) at sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:163) at $Proxy4.save(Unknown Source) at sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122) at org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80) at org.openvpms.component.business.service.security.OpenVPMSMethodSecurityInterceptor.invoke(OpenVPMSMethodSecurityInterceptor.java:50) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy4.save(Unknown Source) at org.openvpms.web.component.workflow.UpdateIMObjectTask.start(UpdateIMObjectTask.java:127) at org.openvpms.web.component.workflow.WorkflowImpl.next(WorkflowImpl.java:130) at org.openvpms.web.component.workflow.WorkflowImpl.onEvent(WorkflowImpl.java:162) at org.openvpms.web.component.workflow.WorkflowImpl$1.taskEvent(WorkflowImpl.java:73) at org.openvpms.web.component.workflow.AbstractTask.notifyCompleted(AbstractTask.java:103) at org.openvpms.web.app.workflow.checkout.PrintDocumentsTask.access$300(PrintDocumentsTask.java:56) at org.openvpms.web.app.workflow.checkout.PrintDocumentsTask$BatchPrinter.print(PrintDocumentsTask.java:203) at org.openvpms.web.app.workflow.checkout.PrintDocumentsTask$BatchPrinter.printed(PrintDocumentsTask.java:224) at org.openvpms.web.component.im.print.InteractiveIMPrinter.printed(InteractiveIMPrinter.java:243) at org.openvpms.web.component.im.print.InteractiveIMPrinter.doPrint(InteractiveIMPrinter.java:219) at org.openvpms.web.component.im.print.InteractiveIMPrinter$2.windowPaneClosing(InteractiveIMPrinter.java:156) at nextapp.echo2.app.WindowPane.fireWindowClosing(WindowPane.java:153) at nextapp.echo2.app.WindowPane.userClose(WindowPane.java:769) at org.openvpms.web.component.dialog.PopupWindow.close(PopupWindow.java:137) at org.openvpms.web.component.dialog.PopupDialog.close(PopupDialog.java:245) at org.openvpms.web.component.dialog.PopupDialog.onOK(PopupDialog.java:195) at org.openvpms.web.component.dialog.PopupDialog.onButton(PopupDialog.java:173) at org.openvpms.web.component.dialog.PopupDialog$1.actionPerformed(PopupDialog.java:258) at nextapp.echo2.app.button.AbstractButton.fireActionPerformed(AbstractButton.java:135) at nextapp.echo2.app.button.AbstractButton$1.actionPerformed(AbstractButton.java:100) at nextapp.echo2.app.button.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:70) at nextapp.echo2.app.button.DefaultButtonModel.doAction(DefaultButtonModel.java:58) at nextapp.echo2.app.button.AbstractButton.doAction(AbstractButton.java:121) at nextapp.echo2.app.button.AbstractButton.processInput(AbstractButton.java:506) at nextapp.echo2.app.update.ClientUpdateManager.process(ClientUpdateManager.java:116) at nextapp.echo2.app.update.UpdateManager.processClientUpdates(UpdateManager.java:89) at nextapp.echo2.webcontainer.ContainerSynchronizeService.renderUpdate(ContainerSynchronizeService.java:472) at nextapp.echo2.webrender.service.SynchronizeService.service(SynchronizeService.java:279) at nextapp.echo2.webrender.WebRenderServlet.process(WebRenderServlet.java:273) at nextapp.echo2.webrender.WebRenderServlet.doPost(WebRenderServlet.java:189) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:292) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:108) at org.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter(SecurityEnforcementFilter.java:197) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:143) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:246) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:220) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:173) at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:120) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) [ERROR,ErrorHelper,http-8080-Processor25] Failed to execute the business rule for method save. org.openvpms.component.business.service.ruleengine.RuleEngineException: Failed to execute the business rule for method save. at org.openvpms.component.business.service.ruleengine.DroolsRuleEngine.invoke(DroolsRuleEngine.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy3.save(Unknown Source) at sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:163) at $Proxy4.save(Unknown Source) at sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122) at org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80) at org.openvpms.component.business.service.security.OpenVPMSMethodSecurityInterceptor.invoke(OpenVPMSMethodSecurityInterceptor.java:50) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy4.save(Unknown Source) at org.openvpms.web.component.workflow.UpdateIMObjectTask.start(UpdateIMObjectTask.java:127) at org.openvpms.web.component.workflow.WorkflowImpl.next(WorkflowImpl.java:130) at org.openvpms.web.component.workflow.WorkflowImpl.onEvent(WorkflowImpl.java:162) at org.openvpms.web.component.workflow.WorkflowImpl$1.taskEvent(WorkflowImpl.java:73) at org.openvpms.web.component.workflow.AbstractTask.notifyCompleted(AbstractTask.java:103) at org.openvpms.web.app.workflow.checkout.PrintDocumentsTask.access$300(PrintDocumentsTask.java:56) at org.openvpms.web.app.workflow.checkout.PrintDocumentsTask$BatchPrinter.print(PrintDocumentsTask.java:203) at org.openvpms.web.app.workflow.checkout.PrintDocumentsTask$BatchPrinter.printed(PrintDocumentsTask.java:224) at org.openvpms.web.component.im.print.InteractiveIMPrinter.printed(InteractiveIMPrinter.java:243) at org.openvpms.web.component.im.print.InteractiveIMPrinter.doPrint(InteractiveIMPrinter.java:219) at org.openvpms.web.component.im.print.InteractiveIMPrinter$2.windowPaneClosing(InteractiveIMPrinter.java:156) at nextapp.echo2.app.WindowPane.fireWindowClosing(WindowPane.java:153) at nextapp.echo2.app.WindowPane.userClose(WindowPane.java:769) at org.openvpms.web.component.dialog.PopupWindow.close(PopupWindow.java:137) at org.openvpms.web.component.dialog.PopupDialog.close(PopupDialog.java:245) at org.openvpms.web.component.dialog.PopupDialog.onOK(PopupDialog.java:195) at org.openvpms.web.component.dialog.PopupDialog.onButton(PopupDialog.java:173) at org.openvpms.web.component.dialog.PopupDialog$1.actionPerformed(PopupDialog.java:258) at nextapp.echo2.app.button.AbstractButton.fireActionPerformed(AbstractButton.java:135) at nextapp.echo2.app.button.AbstractButton$1.actionPerformed(AbstractButton.java:100) at nextapp.echo2.app.button.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:70) at nextapp.echo2.app.button.DefaultButtonModel.doAction(DefaultButtonModel.java:58) at nextapp.echo2.app.button.AbstractButton.doAction(AbstractButton.java:121) at nextapp.echo2.app.button.AbstractButton.processInput(AbstractButton.java:506) at nextapp.echo2.app.update.ClientUpdateManager.process(ClientUpdateManager.java:116) at nextapp.echo2.app.update.UpdateManager.processClientUpdates(UpdateManager.java:89) at nextapp.echo2.webcontainer.ContainerSynchronizeService.renderUpdate(ContainerSynchronizeService.java:472) at nextapp.echo2.webrender.service.SynchronizeService.service(SynchronizeService.java:279) at nextapp.echo2.webrender.WebRenderServlet.process(WebRenderServlet.java:273) at nextapp.echo2.webrender.WebRenderServlet.doPost(WebRenderServlet.java:189) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:292) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:108) at org.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter(SecurityEnforcementFilter.java:197) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:143) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:246) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:220) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:173) at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:120) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) Caused by: org.openvpms.component.business.service.archetype.ArchetypeServiceException: Failed to save object org.openvpms.component.business.domain.im.act.Act@539320[title=<null>,activityStartTime=2007-02-21 15:01:00.0,activityEndTime=Wed Feb 21 15:20:44 EST 2007,reason=<null>,status=COMPLETED,participations=[org.openvpms.component.business.domain.im.common.Participation@eaf179[uid=8737,archetypeId=openvpms-common-participation.clinician.1.0,linkId=2c22c939-c160-11db-a6a6-f18bf738b377,version=1,name=<null>], org.openvpms.component.business.domain.im.common.Participation@9371ab[uid=8738,archetypeId=openvpms-common-participation.patient.1.0,linkId=2c192c3f-c160-11db-a6a6-f18bf738b377,version=0,name=<null>], org.openvpms.component.business.domain.im.common.Participation@ba970[uid=8739,archetypeId=openvpms-common-participation.customer.1.0,linkId=2c192c3e-c160-11db-a6a6-f18bf738b377,version=0,name=<null>], org.openvpms.component.business.domain.im.common.Participation@1a12224[uid=8740,archetypeId=openvpms-common-participation.worklist.1.0,linkId=2c192c40-c160-11db-a6a6-f18bf738b377,version=0,name=<null>], org.openvpms.component.business.domain.im.common.Participation@1c8a8e5[uid=8741,archetypeId=openvpms-common-participation.taskType.1.0,linkId=2c16e24d-c160-11db-a6a6-f18bf738b377,version=0,name=<null>]],sourceActRelationships=[],targetActRelationships=[]] at org.openvpms.component.business.service.archetype.ArchetypeService.save(ArchetypeService.java:548) at org.openvpms.component.business.service.archetype.ArchetypeService.save(ArchetypeService.java:510) at sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122) at org.openvpms.component.business.service.ruleengine.DroolsRuleEngine.invoke(DroolsRuleEngine.java:93) ... 80 more Caused by: org.openvpms.component.business.dao.im.common.IMObjectDAOException: Failed to save IMObject {0} at org.openvpms.component.business.dao.hibernate.im.entity.IMObjectDAOHibernate.save(IMObjectDAOHibernate.java:107) at org.openvpms.component.business.service.archetype.ArchetypeService.save(ArchetypeService.java:536) ... 88 more Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.openvpms.component.business.domain.im.act.Act#3649] at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1761) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2403) at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2303) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2603) at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140) 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.openvpms.component.business.dao.hibernate.im.entity.IMObjectDAOHibernate.save(IMObjectDAOHibernate.java:101) ... 89 more

    JIRA | 10 years ago | Tony De Keizer
    org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.openvpms.component.business.domain.im.act.Act#3649]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Regiter Student OptimisticLockingFailureException

    GitHub | 5 years ago | hirokiterashima
    org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException: Object of class [net.sf.sail.webapp.domain.group.impl.PersistentGroup] with identifier [60312]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [net.sf.sail.webapp.domain.group.impl.PersistentGroup#60312]
  6. 0

    Locking Exception when creating new students at the same time

    GitHub | 5 years ago | geoffreykwan
    org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException: Object of class [net.sf.sail.webapp.domain.group.impl.PersistentGroup] with identifier [29890]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [net.sf.sail.webapp.domain.group.impl.PersistentGroup#29890]

  1. haerick 1 times, last 6 months ago
3 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.hibernate.StaleObjectStateException

    Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.openvpms.component.business.domain.im.act.Act#3068]

    at org.hibernate.persister.entity.AbstractEntityPersister.check()
  2. Hibernate
    AbstractEntityPersister.update
    1. org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1761)
    2. org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2403)
    3. org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2303)
    4. org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2603)
    4 frames
  3. Hibernate
    EntityUpdateAction.execute
    1. org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92)
    1 frame
  4. Hibernate
    ActionQueue.executeActions
    1. org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
    2. org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
    3. org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
    3 frames
  5. Hibernate
    SessionImpl.managedFlush
    1. org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
    2. org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
    3. org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
    4. org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
    4 frames
  6. Hibernate
    JDBCTransaction.commit
    1. org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
    1 frame
  7. org.openvpms.component
    ArchetypeService.save
    1. org.openvpms.component.business.dao.hibernate.im.entity.IMObjectDAOHibernate.save(IMObjectDAOHibernate.java:101)
    2. org.openvpms.component.business.service.archetype.ArchetypeService.save(ArchetypeService.java:536)
    3. org.openvpms.component.business.service.archetype.ArchetypeService.save(ArchetypeService.java:510)
    3 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    3. java.lang.reflect.Method.invoke(Unknown Source)
    3 frames
  9. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292)
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155)
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
    3 frames
  10. org.openvpms.component
    DroolsRuleEngine.invoke
    1. org.openvpms.component.business.service.ruleengine.DroolsRuleEngine.invoke(DroolsRuleEngine.java:93)
    1 frame
  11. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
    2 frames
  12. Unknown
    $Proxy3.save
    1. $Proxy3.save(Unknown Source)
    1 frame
  13. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    3. java.lang.reflect.Method.invoke(Unknown Source)
    3 frames
  14. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:163)
    2 frames
  15. Unknown
    $Proxy4.save
    1. $Proxy4.save(Unknown Source)
    1 frame
  16. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    3. java.lang.reflect.Method.invoke(Unknown Source)
    3 frames
  17. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:292)
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155)
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
    3 frames
  18. Acegi Security Core
    MethodSecurityInterceptor.invoke
    1. org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
    1 frame
  19. org.openvpms.component
    OpenVPMSMethodSecurityInterceptor.invoke
    1. org.openvpms.component.business.service.security.OpenVPMSMethodSecurityInterceptor.invoke(OpenVPMSMethodSecurityInterceptor.java:50)
    1 frame
  20. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
    2 frames
  21. Unknown
    $Proxy4.save
    1. $Proxy4.save(Unknown Source)
    1 frame
  22. org.openvpms.web
    InteractiveIMPrinter$2.windowPaneClosing
    1. org.openvpms.web.component.workflow.UpdateIMObjectTask.start(UpdateIMObjectTask.java:127)
    2. org.openvpms.web.component.workflow.WorkflowImpl.next(WorkflowImpl.java:130)
    3. org.openvpms.web.component.workflow.WorkflowImpl.onEvent(WorkflowImpl.java:162)
    4. org.openvpms.web.component.workflow.WorkflowImpl$1.taskEvent(WorkflowImpl.java:73)
    5. org.openvpms.web.component.workflow.AbstractTask.notifyCompleted(AbstractTask.java:103)
    6. org.openvpms.web.app.workflow.checkout.PrintDocumentsTask.access$300(PrintDocumentsTask.java:56)
    7. org.openvpms.web.app.workflow.checkout.PrintDocumentsTask$BatchPrinter.print(PrintDocumentsTask.java:203)
    8. org.openvpms.web.app.workflow.checkout.PrintDocumentsTask$BatchPrinter.printed(PrintDocumentsTask.java:224)
    9. org.openvpms.web.component.im.print.InteractiveIMPrinter.printed(InteractiveIMPrinter.java:243)
    10. org.openvpms.web.component.im.print.InteractiveIMPrinter.doPrint(InteractiveIMPrinter.java:219)
    11. org.openvpms.web.component.im.print.InteractiveIMPrinter$2.windowPaneClosing(InteractiveIMPrinter.java:156)
    11 frames
  23. nextapp.echo2.app
    WindowPane.userClose
    1. nextapp.echo2.app.WindowPane.fireWindowClosing(WindowPane.java:153)
    2. nextapp.echo2.app.WindowPane.userClose(WindowPane.java:769)
    2 frames
  24. org.openvpms.web
    PopupDialog$1.actionPerformed
    1. org.openvpms.web.component.dialog.PopupWindow.close(PopupWindow.java:137)
    2. org.openvpms.web.component.dialog.PopupDialog.close(PopupDialog.java:245)
    3. org.openvpms.web.component.dialog.PopupDialog.onOK(PopupDialog.java:195)
    4. org.openvpms.web.component.dialog.PopupDialog.onButton(PopupDialog.java:173)
    5. org.openvpms.web.component.dialog.PopupDialog$1.actionPerformed(PopupDialog.java:258)
    5 frames
  25. nextapp.echo2.app
    UpdateManager.processClientUpdates
    1. nextapp.echo2.app.button.AbstractButton.fireActionPerformed(AbstractButton.java:135)
    2. nextapp.echo2.app.button.AbstractButton$1.actionPerformed(AbstractButton.java:100)
    3. nextapp.echo2.app.button.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:70)
    4. nextapp.echo2.app.button.DefaultButtonModel.doAction(DefaultButtonModel.java:58)
    5. nextapp.echo2.app.button.AbstractButton.doAction(AbstractButton.java:121)
    6. nextapp.echo2.app.button.AbstractButton.processInput(AbstractButton.java:506)
    7. nextapp.echo2.app.update.ClientUpdateManager.process(ClientUpdateManager.java:116)
    8. nextapp.echo2.app.update.UpdateManager.processClientUpdates(UpdateManager.java:89)
    8 frames
  26. nextapp.echo2.webcontainer
    ContainerSynchronizeService.renderUpdate
    1. nextapp.echo2.webcontainer.ContainerSynchronizeService.renderUpdate(ContainerSynchronizeService.java:472)
    1 frame
  27. nextapp.echo2.webrender
    WebRenderServlet.doPost
    1. nextapp.echo2.webrender.service.SynchronizeService.service(SynchronizeService.java:279)
    2. nextapp.echo2.webrender.WebRenderServlet.process(WebRenderServlet.java:273)
    3. nextapp.echo2.webrender.WebRenderServlet.doPost(WebRenderServlet.java:189)
    3 frames
  28. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    2 frames
  29. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    2 frames
  30. Acegi Security Core
    FilterToBeanProxy.doFilter
    1. org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:292)
    2. org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:108)
    3. org.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter(SecurityEnforcementFilter.java:197)
    4. org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
    5. org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:143)
    6. org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
    7. org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:246)
    8. org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
    9. org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:220)
    10. org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303)
    11. org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:173)
    12. org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:120)
    12 frames
  31. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    8 frames
  32. Grizzly HTTP
    LeaderFollowerWorkerThread.runIt
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    2. org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    3. org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    4. org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    4 frames
  33. Tomcat Util
    ThreadPool$ControlRunnable.run
    1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    1 frame
  34. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)[ERROR,ErrorHelper,http-8080-Processor22]
    1 frame