2 Replies Latest reply: Oct 6, 2010 3:38 PM by Phillip Thurmond RSS

Serializable object not being persisted.

Phillip Thurmond Newbie

I have a class OrderType which is serializable, but I'm getting the following exception when I execute my process.  From my understanding of the documentation, any object which is serializable can be persisted by jbpm.  Is there any configuration necessary to enable this?  If not, any ideas of potential causes?

 

Stack Trace:

org.hibernate.HibernateException: instance not of expected entity type: org.jbpm.pvm.internal.type.variable.UnpersistableVariable is not a: org.jbpm.pvm.internal.type.Variable
        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)

org.hibernate.HibernateException: instance not of expected entity type: org.jbpm.pvm.internal.type.variable.UnpersistableVariable is not a: org.jbpm.pvm.internal.type.Variable

        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)

        .......

 

Thanks.

 

--Phillip