2 Replies Latest reply on Feb 17, 2006 11:15 AM by for Jbpm

    org.jbpm.JbpmException: transition 'tr1' doesn't have destin

    for Jbpm Novice

      Hi,

      I wrote my own custom node.

      For that I wrote my own org.jbpm.ui.model.CustomNode.java
       org.jbpm.ui.contributor.CustomNodeContributor
       org.jbpm.ui.part.tree.CustomNodeTreeEditPart.java
       org.jbpm.ui.part.graph.CustomNodeGraphicalEditPart
      
      classes. made changes accordingly in plugin.xml of jbpm.ui_3.0.8/
      

      I am able to see it in my gpd.
      Please correct me if steps I have taken are not right or anything else to be done.

      I added my customnode to my processdefinition and deployed this processdefinition.
      But I get following error:
      17:38:13,541 ERROR [[FacesServlet]] Servlet.service() for servlet FacesServlet threw exception
      javax.faces.FacesException: Error calling action method of component with id taskform:transitionButton
       at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
       at javax.faces.component.UICommand.broadcast(UICommand.java:106)
       at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
       at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
       at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:271)
       at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:94)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:55)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
       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.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
       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:856)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: javax.faces.el.EvaluationException: Exception while invoking expression #{taskBean.saveAndClose}
       at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153)
       at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
       ... 34 more
      Caused by: org.jbpm.JbpmException: transition '' doesn't have destination. check your processdefinition.xml
       at org.jbpm.graph.def.Transition.fireSuperStateEnterEvents(Transition.java:131)
       at org.jbpm.graph.def.Transition.take(Transition.java:109)
       at org.jbpm.graph.def.Node.leave(Node.java:382)
       at org.jbpm.graph.node.StartState.leave(StartState.java:70)
       at org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke(<generated>)
       at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
       at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:136)
       at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$1676bd11.leave(<generated>)
       at org.jbpm.graph.exe.Token.signal(Token.java:174)
       at org.jbpm.graph.exe.Token.signal(Token.java:123)
       at org.jbpm.graph.exe.Token$$FastClassByCGLIB$$74df1c6e.invoke(<generated>)
       at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
       at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:136)
       at org.jbpm.graph.exe.Token$$EnhancerByCGLIB$$a74724a5.signal(<generated>)
       at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:408)
       at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:322)
       at org.jbpm.taskmgmt.exe.TaskInstance$$FastClassByCGLIB$$cb2c21af.invoke(<generated>)
       at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
       at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:136)
       at org.jbpm.taskmgmt.exe.TaskInstance$$EnhancerByCGLIB$$bf303666.end(<generated>)
       at org.jbpm.webapp.bean.TaskBean.saveAndClose(TaskBean.java:178)
       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:585)
       at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
       ... 35 more
      
      


      My processdefinition is :
      <?xml version="1.0" encoding="UTF-8"?>
      
      <process-definition
       name="Demo0.01">
       <start-state name="Step1">
       <task name="Step1">
       <controller>
       <variable name="URL"></variable>
       <variable name="File Name"></variable>
       <variable name="Doc Id"></variable>
       </controller>
       </task>
       <transition name="" to="task1"></transition>
       </start-state>
      
       <custom-node name="task1">
       <transition name="" to="step2"></transition>
       </custom-node>
      <task-node name="step2">
       <transition name="" to="End"></transition>
       </task-node>
       <end-state name="End"></end-state>
      </process-definition>
      
      Thanks and Regards


        • 1. Re: org.jbpm.JbpmException: transition 'tr1' doesn't have de
          for Jbpm Novice

          I guess it may be because there is no entry indatabase associated with custom-node?

          • 2. Re: org.jbpm.JbpmException: transition 'tr1' doesn't have de
            for Jbpm Novice

            ohk!

            I realised that I will have to write my own CustomNode class aswell.
            something like org.jbpm.garph.node.TaskNode ...
            But I am really confused here as to Whether my CustomNode should extend TaskNode or Node?? as If extend Node, Jbdlxmlreaders readTasks and readTask method will not work..
            But When my CustomNode extends TaskNode, and when I try to deploy my process with CustomNode.I get following hibernate Exception!

            11:02:43,968 INFO [STDOUT] org.hibernate.HibernateException: instance not of expected entity type: org.jbpm.graph.def.Node
             at org.hibernate.persister.entity.AbstractEntityPersister.getSubclassEntityPersister(AbstractEntityPersister.java:3273)
             at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1218)
             at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:180)
             at org.hibernate.engine.ForeignKeys$Nullifier.isNullifiable(ForeignKeys.java:137)
             at org.hibernate.engine.ForeignKeys$Nullifier.nullifyTransientReferences(ForeignKeys.java:69)
             at org.hibernate.engine.ForeignKeys$Nullifier.nullifyTransientReferences(ForeignKeys.java:47)
             at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:263)
             at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:167)
             at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:114)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:186)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:175)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:98)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
             at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:500)
             at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:494)
             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.AbstractSaveEventListener.cascadeAfterSave(AbstractSaveEventListener.java:409)
             at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:298)
             at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:167)
             at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:114)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:186)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:175)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:98)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
             at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:500)
             at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:494)
             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.AbstractSaveEventListener.cascadeAfterSave(AbstractSaveEventListener.java:409)
             at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:298)
             at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:167)
             at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:114)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:186)
             at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:175)
             at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
             at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
             at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:523)
             at org.hibernate.impl.SessionImpl.save(SessionImpl.java:513)
             at org.hibernate.impl.SessionImpl.save(SessionImpl.java:509)
             at org.jbpm.db.GraphSession.deployProcessDefinition(GraphSession.java:77)
             at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:166)
             at org.jbpm.webapp.servlet.DeployServlet.doGet(DeployServlet.java:56)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
             at org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:55)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
             at org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
             at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
             at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
             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.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
             at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
             at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
             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:856)
             at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
             at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
             at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
             at java.lang.Thread.run(Thread.java:595)
            11:02:43,970 DEBUG [JbpmContext] closing JbpmContext
            11:02:43,985 DEBUG [Services] closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService@155aa19
            11:02:43,985 DEBUG [DbPersistenceService] committing hibernate transaction
            11:02:43,992 INFO [STDOUT] org.jbpm.persistence.JbpmPersistenceException: couldn't commit hibernate session
            11:02:43,994 INFO [STDOUT] at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:171)
            11:02:43,994 INFO [STDOUT] at org.jbpm.svc.Services.close(Services.java:211)
            11:02:43,995 INFO [STDOUT] at org.jbpm.JbpmContext.close(JbpmContext.java:138)
            11:02:43,996 INFO [STDOUT] at org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:85)
            11:02:43,996 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
            11:02:43,996 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            11:02:43,997 INFO [STDOUT] at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
            11:02:43,998 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
            11:02:43,999 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            11:02:43,999 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
            11:02:43,999 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
            11:02:43,999 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            11:02:44,001 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
            11:02:44,002 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
            11:02:44,002 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
            11:02:44,002 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
            11:02:44,002 INFO [STDOUT] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
            11:02:44,004 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
            11:02:44,004 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
            11:02:44,004 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
            11:02:44,005 INFO [STDOUT] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
            11:02:44,005 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
            11:02:44,007 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
            11:02:44,007 INFO [STDOUT] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
            11:02:44,007 INFO [STDOUT] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
            11:02:44,007 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)
            11:02:44,009 INFO [STDOUT] Caused by: org.hibernate.HibernateException: instance not of expected entity type: org.jbpm.graph.def.Node
            11:02:44,010 INFO [STDOUT] at org.hibernate.persister.entity.AbstractEntityPersister.getSubclassEntityPersister(AbstractEntityPersister.java:3273)
            11:02:44,010 INFO [STDOUT] at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1218)
            11:02:44,011 INFO [STDOUT] at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:180)
            11:02:44,011 INFO [STDOUT] at org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:459)
            11:02:44,012 INFO [STDOUT] at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:84)
            11:02:44,013 INFO [STDOUT] at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
            11:02:44,015 INFO [STDOUT] at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:500)
            11:02:44,016 INFO [STDOUT] at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:494)
            11:02:44,016 INFO [STDOUT] at org.hibernate.engine.CascadingAction$1.cascade(CascadingAction.java:134)
            11:02:44,017 INFO [STDOUT] at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:213)
            11:02:44,017 INFO [STDOUT] at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:157)
            11:02:44,018 INFO [STDOUT] at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:108)
            11:02:44,018 INFO [STDOUT] at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:290)
            11:02:44,019 INFO [STDOUT] at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:185)
            11:02:44,019 INFO [STDOUT] at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:160)
            11:02:44,019 INFO [STDOUT] at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:108)
            11:02:44,021 INFO [STDOUT] at org.hibernate.engine.Cascade.cascade(Cascade.java:248)
            11:02:44,021 INFO [STDOUT] at org.hibernate.event.def.AbstractFlushingEventListener.cascadeOnFlush(AbstractFlushingEventListener.java:130)
            11:02:44,021 INFO [STDOUT] at org.hibernate.event.def.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:121)
            11:02:44,021 INFO [STDOUT] at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:65)
            11:02:44,022 INFO [STDOUT] at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
            11:02:44,023 INFO [STDOUT] at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:877)
            11:02:44,024 INFO [STDOUT] at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:344)
            11:02:44,024 INFO [STDOUT] at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
            11:02:44,024 INFO [STDOUT] at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:161)
            11:02:44,024 INFO [STDOUT] ... 25 more
            11:02:44,025 ERROR [Services] problem closing service 'persistence'
            org.jbpm.persistence.JbpmPersistenceException: couldn't commit hibernate session
             at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:171)
             at org.jbpm.svc.Services.close(Services.java:211)
             at org.jbpm.JbpmContext.close(JbpmContext.java:138)
             at org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:85)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
             at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
             at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
             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.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
             at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
             at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
             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:856)
             at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
             at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
             at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
             at java.lang.Thread.run(Thread.java:595)
            Caused by: org.hibernate.HibernateException: instance not of expected entity type: org.jbpm.graph.def.Node
             at org.hibernate.persister.entity.AbstractEntityPersister.getSubclassEntityPersister(AbstractEntityPersister.java:3273)
             at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1218)
             at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:180)
             at org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:459)
             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:500)
             at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:494)
             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.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
             at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:877)
             at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:344)
             at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
             at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:161)
             ... 25 more
            11:02:44,028 DEBUG [Services] closing service 'authentication': org.jbpm.security.authentication.DefaultAuthenticationService@1f5438
            11:02:44,029 ERROR [[DeployServlet]] Servlet.service() for servlet DeployServlet threw exception
            org.jbpm.JbpmException: problem closing services {persistence=org.jbpm.persistence.JbpmPersistenceException: couldn't commit hibernate session}
             at org.jbpm.svc.Services.close(Services.java:223)
             at org.jbpm.JbpmContext.close(JbpmContext.java:138)
             at org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:85)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
             at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
             at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
             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.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
             at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
             at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
             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:856)
             at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
             at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
             at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
             at java.lang.Thread.run(Thread.java:595)
            Caused by: org.jbpm.persistence.JbpmPersistenceException: couldn't commit hibernate session
             at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:171)
             at org.jbpm.svc.Services.close(Services.java:211)
             ... 24 more
            Caused by: org.hibernate.HibernateException: instance not of expected entity type: org.jbpm.graph.def.Node
             at org.hibernate.persister.entity.AbstractEntityPersister.getSubclassEntityPersister(AbstractEntityPersister.java:3273)
             at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1218)
             at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:180)
             at org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:459)
             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:500)
             at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:494)
             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.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
             at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:877)
             at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:344)
             at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
             at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:161)
             ... 25 more


            I added CustomNode.hbm.xml and made changes accordingly in Node.hbm.xml, Event.hbm.xml, ExceptionHandler.hbm.xml, RuntimeSction.hbm.xml as well.



            I am really far from being a hibernate or jbpm expert.
            Any inputs are welcome!

            Regards,