1 Reply Latest reply on Apr 1, 2009 3:35 PM by Ronald van Kuijk

    HibernateException: instance not of expected entity type: org.jboss.seam.pageflow.Page is not a: org.jbpm.graph.def.Node

    Piotr Janik Newbie

      Hello,


      I'm trying to run my seam app with jbpm and I don't know how to solve this problem:


      22:15:59,291 INFO  [STDOUT] ERROR 31-03 22:15:59,291 (DbPersistenceService.java:flushSession:270)  -hibernate flush failed
      org.hibernate.HibernateException: instance not of expected entity type: org.jboss.seam.pageflow.Page is not a: org.jbpm.graph.def.Node
           at org.hibernate.persister.entity.AbstractEntityPersister.getSubclassEntityPersister(AbstractEntityPersister.java:3663)
           at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1374)
           at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:203)
           at org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:535)
           at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:103)
           at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)
           at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:534)
           at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:526)
           at org.hibernate.engine.CascadingAction$5.cascade(CascadingAction.java:241)
           at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:291)
           at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:239)
           at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:192)
           at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:319)
           at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:265)
           at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:242)
           at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:192)
           at org.hibernate.engine.Cascade.cascade(Cascade.java:153)
           at org.hibernate.event.def.AbstractFlushingEventListener.cascadeOnFlush(AbstractFlushingEventListener.java:154)
           at org.hibernate.event.def.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:145)
           at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:88)
           at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:49)
           at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)
           at org.jbpm.persistence.db.DbPersistenceService.flushSession(DbPersistenceService.java:261)
           at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:200)
           at org.jbpm.svc.Services.close(Services.java:243)
           at org.jbpm.JbpmContext.close(JbpmContext.java:133)
           at org.jboss.seam.bpm.Jbpm.installProcessDefinitions(Jbpm.java:304)
           at org.jboss.seam.bpm.Jbpm.startup(Jbpm.java:80)
      



      Thanks in advance!


      Peter