3 Replies Latest reply on Mar 20, 2006 9:28 AM by Jamie Cruise

    process persistence problem with JBPM/Seam

    Jamie Cruise Newbie

      I am getting a hibernate persistence error when I try and save a processInstance of the jbpm demo websale process. This only happens after I have created the initial task. I am using Seam 1 beta 2 and the included JBPM 3.1 jar.


      Caused by: org.hibernate.HibernateException: instance not of expected entity type: org.jbpm.context.exe.VariableInstance
       at org.hibernate.persister.entity.AbstractEntityPersister.getSubclassEntityPersister(AbstractEntityPersister.java:3301)
       at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1330)
       at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:180)
       at org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:460)
       at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:84)
       at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
       at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:531)
       at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:523)
       at org.hibernate.engine.CascadingAction$1.cascade(CascadingAction.java:134)
       at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:213)
       at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:157)
       at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:108)
       at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:290)
       at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:185)
       at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:160)
       at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:108)
       at org.hibernate.engine.Cascade.cascade(Cascade.java:248)
       at org.hibernate.event.def.AbstractFlushingEventListener.cascadeOnFlush(AbstractFlushingEventListener.java:130)
       at org.hibernate.event.def.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:121)
       at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:65)
       at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:35)
       at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:978)
       at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:135)
       at org.hibernate.impl.AbstractSessionImpl.getNamedQuery(AbstractSessionImpl.java:60)
       at org.hibernate.impl.SessionImpl.getNamedQuery(SessionImpl.java:1245)
       at org.jbpm.db.TaskMgmtSession.findTaskInstances(TaskMgmtSession.java:56)
       ... 135 more
      


      Any ideas?

      Cheers
      J