2 Replies Latest reply on Mar 7, 2006 2:08 PM by Koen Aers

    Odd behaviour with TaskInstance.end();

    Mats N Newbie

      From time to time I get the following exception when ending TaskInstances.
      They occur totally random.

      Any ideas?

      java.lang.NoSuchMethodError: org.jbpm.graph.exe.Token.getHibernateLazyInitializer()Lorg/hibernate/proxy/LazyInitializer;
       at org.jbpm.graph.exe.Token$$EnhancerByCGLIB$$eb645d4c.getHibernateLazyInitializer(<generated>)
       at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:274)
       at org.hibernate.type.EntityType.resolve(EntityType.java:303)
       at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:113)
       at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:842)
       at org.hibernate.loader.Loader.doQuery(Loader.java:717)
       at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
       at org.hibernate.loader.Loader.loadCollection(Loader.java:1919)
       at org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:71)
       at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:520)
       at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:60)
       at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1627)
       at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:344)
       at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)
       at org.hibernate.collection.PersistentSet.iterator(PersistentSet.java:138)
       at org.jbpm.graph.node.TaskNode.isLastToComplete(TaskNode.java:222)
       at org.jbpm.graph.node.TaskNode.completionTriggersSignal(TaskNode.java:209)
       at org.jbpm.graph.node.TaskNode$$FastClassByCGLIB$$923668a4.invoke(<generated>)
       at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
       at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
       at org.jbpm.graph.node.TaskNode$$EnhancerByCGLIB$$791bad02.completionTriggersSignal(<generated>)
       at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:406)
       at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:330)
       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:161)
       at org.jbpm.taskmgmt.exe.TaskInstance$$EnhancerByCGLIB$$27c713cd.end(<generated>)
       at org.testing.web.page.ShowTaskInstancePage$4.onSubmit(ShowTaskInstancePage.java:61)
       at wicket.markup.html.form.Form.delegateSubmit(Form.java:417)
       at wicket.markup.html.form.Form.onFormSubmitted(Form.java:248)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:162)
       at wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:74)
       at wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessorStrategy.java:62)
       at wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompoundRequestCycleProcessor.java:57)
       at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:818)
       at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:851)
       at wicket.RequestCycle.step(RequestCycle.java:931)
       at wicket.RequestCycle.steps(RequestCycle.java:1005)
       at wicket.RequestCycle.request(RequestCycle.java:451)
       at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208)
       at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:235)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       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.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:514)
       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:868)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
       at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
       at java.lang.Thread.run(Thread.java:595)