1 2 Previous Next 16 Replies Latest reply on Nov 21, 2005 10:50 AM by Bernd Ruecker

    org.hibernate.HibernateException when doing GraphSession.sav

    Ralph Harnden Newbie

      I am getting the following exception when doing GraphSession.saveProcessInstance().

      This problem makes jBPM completely ususable for us. Too bad. It otherwise seems like an OK project. But not worth much if you can't save workflows....

      Is there any prognosis when a fix will be available? Or should I try a different workflow system?

      Ralph Harnden, Chief Architect
      Altierre Corporation

      P.S. We are using jbpm-3.0.1 under jboss-4.0.2.

      java.lang.RuntimeException: couldn't save process instance 'org.jbpm.graph.exe.ProcessInstance@b35031'

      at org.jbpm.db.GraphSession.saveProcessInstance(GraphSession.java:209)

      at com.altierre.service.aap.mdb.WDTBundleBaseMDB.onMessage(WDTBundleBaseMDB.java:138)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:324)

      at org.jboss.invocation.Invocation.performCall(Invocation.java:345)

      at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:475)

      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)

      at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:87)

      at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)

      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)

      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)

      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)

      at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:94)

      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)

      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)

      at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:389)

      at org.jboss.ejb.Container.invoke(Container.java:873)

      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:1090)

      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1392)

      at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:256)

      at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904)

      at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:160)

      at org.jboss.mq.SpySession.run(SpySession.java:333)

      at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)

      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)

      at java.lang.Thread.run(Thread.java:534)

      Caused by: java.lang.RuntimeException: couldn't delete timers for process instance 'org.jbpm.graph.exe.ProcessInstance@b35031'

      at org.jbpm.db.SchedulerSession.cancelTimersForProcessInstance(SchedulerSession.java:129)

      at org.jbpm.db.SchedulerSession.saveTimers(SchedulerSession.java:79)

      at org.jbpm.db.GraphSession.saveProcessInstance(GraphSession.java:205)

      ... 27 more

      Caused by: org.hibernate.HibernateException: Found shared references to a collection

      at org.hibernate.engine.Collections.processReachableCollection(Collections.java:130)

      at org.hibernate.event.def.FlushVisitor.processCollection(FlushVisitor.java:37)

      at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:104)

      at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:64)

      at org.hibernate.event.def.AbstractVisitor.processEntityPropertyValues(AbstractVisitor.java:58)

      at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:198)

      at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:190)

      at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:70)

      at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:39)

      at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:711)

      at org.hibernate.impl.SessionImpl.prepareQueries(SessionImpl.java:895)

      at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:885)

      at org.hibernate.impl.SessionImpl.executeUpdate(SessionImpl.java:865)

      at org.hibernate.impl.QueryImpl.executeUpdate(QueryImpl.java:89)

      at org.jbpm.db.SchedulerSession.cancelTimersForProcessInstance(SchedulerSession.java:124)

      ... 29 more

        1 2 Previous Next