2 Replies Latest reply on Feb 20, 2006 4:41 AM by Marcin Mieszek

    process graph and removing process definitions

    Tom Baeyens Master

      on behalf of Marcin:

      I have another question concerning process graph image - the one displayed while inspecting process instance. I tried to plug it into process definitions managemenet but I found out, that it requires two files:
      processimage.jpg and gpd.xml. Tag that renders the graph works only with process definition with these two files. That is why I will not be able to use it to show process definition unless there is a plan to generate it dynamically according to process definition...

      I switched to removing process definitions and came across such an exception from hibernate. I think it has something to do with synchronization of hibernate objects in the session. I saw one test that delets process definition, I will look into into and find out why this exceptions occurs now.

      01:23:36,828 ERROR [LazyInitializationException] could not initialize proxy
      - the owning Session was closed
      org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed
      at
      org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitiali
      zer.java:56)
      at
      org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyI
      nitializer.java:98)
      at
      org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.jav
      a:133)
      at
      org.jbpm.graph.def.ProcessDefinition$$EnhancerByCGLIB$$ed275ba6.getId(<gene
      rated>)
      at
      org.jbpm.db.GraphSession.deleteProcessDefinition(GraphSession.java:240)
      at
      org.jbpm.webapp.bean.AdminBean.deleteProcessDefinition(AdminBean.java:107)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
      9)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
      l.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at
      org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
      at
      org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListe
      nerImpl.java:63)
      at javax.faces.component.UICommand.broadcast(UICommand.java:106)
      at javax.faces.component.UIData.broadcast(UIData.java:338)
      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(Applicatio
      nFilterChain.java:252)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
      hain.java:173)
      at
      org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(Extensions
      Filter.java:122)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
      nFilterChain.java:202)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
      hain.java:173)
      at
      org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.j
      ava:55)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
      nFilterChain.java:202)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
      hain.java:173)
      at
      org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
      nFilterChain.java:202)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
      hain.java:173)
      at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
      nFilterChain.java:202)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
      hain.java:173)
      at
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.j
      ava:81)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
      nFilterChain.java:202)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
      hain.java:173)
      at
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
      ava:213)
      at
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
      ava:178)
      at
      org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalVa
      lve.java:39)
      at
      org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssoc
      iationValve.java:159)
      at
      org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java
      :59)
      at
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12
      6)
      at
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:10
      5)
      at
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
      a: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.processConn
      ection(Http11Protocol.java:744)
      at
      org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.ja
      va:527)
      at
      org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThr
      ead.java:112)
      at java.lang.Thread.run(Thread.java:595)
      01:23:36,828 DEBUG [JbpmContext] closing JbpmContext
      01:23:36,828 DEBUG [Services] closing service 'persistence':
      org.jbpm.persistence.db.DbPersistenceService@2dd6ca
      01:23:36,828 DEBUG [DbPersistenceService] committing hibernate transaction
      01:23:36,843 DEBUG [DbPersistenceService] closing hibernate session

      Regards,

      Marcin