5 Replies Latest reply on Jun 29, 2007 5:03 PM by Kevin Klinemeier

    Exception when completing a task in websale example

    Keith Hamburg Newbie

      I downloaded jbpm-jpdl-3.2.GA and installed the jbmp-console.war on Tomcat. I deployed the websale example process. I was able to log in to the console, initiate a new process instance, and move it through states until I got to "evaluate web order". When I clicked OK to advance to the fork node, I got an exception:

      java.lang.NoSuchFieldError: FORCE
      org.jbpm.graph.node.Join.execute(Join.java:105)


      Can anyone shed any light on this? Should I submit a bug on JIRA for this?

        • 1. Re: Exception when completing a task in websale example
          Ronald van Kuijk Master

          please provide a full stacktrace and maybe even some debug logging. That would make it easier for us to help you.

          • 2. Re: Exception when completing a task in websale example
            Keith Hamburg Newbie

            Here's the stack trace...

            javax.servlet.ServletException: Servlet execution threw an exception
            org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)

            root cause

            java.lang.NoSuchFieldError: FORCE
            org.jbpm.graph.node.Join.execute(Join.java:105)
            org.jbpm.graph.def.Node.enter(Node.java:318)
            org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke()
            net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
            org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
            org.jbpm.graph.def.Node$$EnhancerByCGLIB$$83cb119f.enter()
            org.jbpm.graph.def.Transition.take(Transition.java:151)
            org.jbpm.graph.def.Node.leave(Node.java:393)
            org.jbpm.graph.def.Node.leave(Node.java:357)
            org.jbpm.graph.exe.ExecutionContext.leaveNode(ExecutionContext.java:120)
            org.jbpm.websale.ShipItem.execute(ShipItem.java:59)
            org.jbpm.graph.def.Action.execute(Action.java:122)
            org.jbpm.graph.def.Action$$FastClassByCGLIB$$7876e90e.invoke()
            net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
            org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
            org.jbpm.graph.def.Action$$EnhancerByCGLIB$$ffa54cd3.execute()
            org.jbpm.graph.def.Node.execute(Node.java:338)
            org.jbpm.graph.def.Node.enter(Node.java:318)
            org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke()
            net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
            org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
            org.jbpm.graph.def.Node$$EnhancerByCGLIB$$83cb119f.enter()
            org.jbpm.graph.def.Transition.take(Transition.java:151)
            org.jbpm.graph.def.Node.leave(Node.java:393)
            org.jbpm.graph.def.Node.leave(Node.java:368)
            org.jbpm.graph.node.Fork.execute(Fork.java:140)
            org.jbpm.graph.def.Node.enter(Node.java:318)
            org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke()
            net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
            org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
            org.jbpm.graph.def.Node$$EnhancerByCGLIB$$83cb119f.enter()
            org.jbpm.graph.def.Transition.take(Transition.java:151)
            org.jbpm.graph.def.Node.leave(Node.java:393)
            org.jbpm.graph.node.TaskNode.leave(TaskNode.java:209)
            org.jbpm.graph.node.TaskNode$$FastClassByCGLIB$$923668a4.invoke()
            net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
            org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
            org.jbpm.graph.node.TaskNode$$EnhancerByCGLIB$$be1107e9.leave()
            org.jbpm.graph.exe.Token.signal(Token.java:194)
            org.jbpm.graph.exe.Token.signal(Token.java:165)
            org.jbpm.graph.exe.Token$$FastClassByCGLIB$$74df1c6e.invoke()
            net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
            org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
            org.jbpm.graph.exe.Token$$EnhancerByCGLIB$$3059b833.signal()
            org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:478)
            org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:417)
            org.jbpm.taskmgmt.exe.TaskInstance$$FastClassByCGLIB$$cb2c21af.invoke()
            net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
            org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
            org.jbpm.taskmgmt.exe.TaskInstance$$EnhancerByCGLIB$$6cbc6eb4.end()
            org.jbpm.webapp.tag.tf.ui.TaskForm$TaskFormActionListener.processAction(TaskForm.java:282)
            javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
            javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:758)
            javax.faces.component.UICommand.broadcast(UICommand.java:368)
            org.jbpm.webapp.tag.tf.ui.AbstractTaskFormButton.broadcast(AbstractTaskFormButton.java:51)
            org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:274)
            org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:250)
            org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:405)
            com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
            com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
            com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
            javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
            org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)

            • 3. Re: Exception when completing a task in websale example
              Keith Hamburg Newbie

              This was in the stdout log before the stack trace...

              12:04:50,976 WARN ProxyWarnLog:581 - Narrowing proxy to class org.jbpm.graph.node.StartState - this operation breaks ==
              12:05:01,538 WARN ProxyWarnLog:581 - Narrowing proxy to class org.jbpm.graph.node.TaskNode - this operation breaks ==
              12:05:13,131 WARN ProxyWarnLog:581 - Narrowing proxy to class org.jbpm.graph.node.StartState - this operation breaks ==
              12:05:13,131 WARN ProxyWarnLog:581 - Narrowing proxy to class org.jbpm.graph.node.TaskNode - this operation breaks ==
              12:09:19,184 WARN ProxyWarnLog:581 - Narrowing proxy to class org.jbpm.graph.node.StartState - this operation breaks ==
              12:09:19,184 WARN ProxyWarnLog:581 - Narrowing proxy to class org.jbpm.graph.node.TaskNode - this operation breaks ==
              12:09:30,059 WARN ProxyWarnLog:581 - Narrowing proxy to class org.jbpm.graph.node.StartState - this operation breaks ==
              12:09:30,106 ERROR [FacesServlet]:250 - Servlet.service() for servlet FacesServlet threw exception

              ... and this is from the catalina log...

              Mar 23, 2007 12:02:57 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
              INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\dev\Tomcat 5.5\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\jEdit
              Mar 23, 2007 12:02:57 PM org.apache.coyote.http11.Http11BaseProtocol init
              INFO: Initializing Coyote HTTP/1.1 on http-8080
              Mar 23, 2007 12:02:57 PM org.apache.catalina.startup.Catalina load
              INFO: Initialization processed in 422 ms
              Mar 23, 2007 12:02:57 PM org.apache.catalina.core.StandardService start
              INFO: Starting service Catalina
              Mar 23, 2007 12:02:57 PM org.apache.catalina.core.StandardEngine start
              INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
              Mar 23, 2007 12:02:58 PM org.apache.catalina.core.StandardHost start
              INFO: XML validation disabled
              Mar 23, 2007 12:02:58 PM org.apache.catalina.startup.HostConfig deployWAR
              INFO: Deploying web application archive console.war
              Mar 23, 2007 12:02:58 PM com.sun.faces.config.ConfigureListener contextInitialized
              INFO: Initializing Sun's JavaServer Faces implementation (1.2_03-b09-FCS) for context 'null'
              Mar 23, 2007 12:02:58 PM com.sun.faces.spi.InjectionProviderFactory createInstance
              WARNING: JSF1033: Resource injection is DISABLED.
              Mar 23, 2007 12:02:59 PM org.apache.coyote.http11.Http11BaseProtocol start
              INFO: Starting Coyote HTTP/1.1 on http-8080
              Mar 23, 2007 12:02:59 PM org.apache.jk.common.ChannelSocket init
              INFO: JK: ajp13 listening on /0.0.0.0:8009
              Mar 23, 2007 12:02:59 PM org.apache.jk.server.JkMain start
              INFO: Jk running ID=0 time=0/16 config=null
              Mar 23, 2007 12:02:59 PM org.apache.catalina.storeconfig.StoreLoader load
              INFO: Find registry server-registry.xml at classpath resource
              Mar 23, 2007 12:02:59 PM org.apache.catalina.startup.Catalina start
              INFO: Server startup in 1859 ms
              Mar 23, 2007 12:04:18 PM com.sun.faces.lifecycle.ELResolverInitPhaseListener populateFacesELResolverForJsp
              INFO: JSF1027: [null] The ELResolvers for JSF were not registered with the JSP container.
              Mar 23, 2007 12:04:18 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
              INFO: Added Library from: jar:file:/C:/dev/Tomcat%205.5/webapps/console/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
              Mar 23, 2007 12:04:18 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
              INFO: Added Library from: jar:file:/C:/dev/Tomcat%205.5/webapps/console/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
              Mar 23, 2007 12:04:18 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
              INFO: Added Library from: jar:file:/C:/dev/Tomcat%205.5/webapps/console/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
              Mar 23, 2007 12:04:18 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
              INFO: Added Library from: jar:file:/C:/dev/Tomcat%205.5/webapps/console/WEB-INF/lib/ajax4jsf.jar!/META-INF/a4j.taglib.xml
              Mar 23, 2007 12:04:18 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
              INFO: Added Library from: jar:file:/C:/dev/Tomcat%205.5/webapps/console/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
              Mar 23, 2007 12:04:18 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
              INFO: Added Library from: jar:file:/C:/dev/Tomcat%205.5/webapps/console/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
              Mar 23, 2007 12:04:25 PM com.sun.facelets.tag.jsf.ComponentRule warnAttr
              WARNING: /common/template.xhtml @56,71 name="tiid" Property 'name' is not on type: org.jbpm.webapp.tag.jbpm.ui.Bind
              Mar 23, 2007 12:04:25 PM com.sun.facelets.tag.jsf.ComponentRule warnAttr
              WARNING: /common/template.xhtml @57,63 name="tdid" Property 'name' is not on type: org.jbpm.webapp.tag.jbpm.ui.Bind
              Mar 23, 2007 12:04:25 PM com.sun.facelets.tag.jsf.ComponentRule warnAttr
              WARNING: /common/template.xhtml @58,74 name="piid" Property 'name' is not on type: org.jbpm.webapp.tag.jbpm.ui.Bind
              Mar 23, 2007 12:04:25 PM com.sun.facelets.tag.jsf.ComponentRule warnAttr
              WARNING: /common/template.xhtml @59,66 name="pdid" Property 'name' is not on type: org.jbpm.webapp.tag.jbpm.ui.Bind
              Mar 23, 2007 12:04:25 PM com.sun.facelets.tag.jsf.ComponentRule warnAttr
              WARNING: /common/searchheader.xhtml @6,2 xmlns="http://www.w3.org/1999/xhtml" Property '' is not on type: com.sun.facelets.tag.ui.ComponentRef
              Mar 23, 2007 12:04:25 PM com.sun.facelets.tag.jsf.ComponentRule warnAttr
              WARNING: /common/searchfooter.xhtml @6,2 xmlns="http://www.w3.org/1999/xhtml" Property '' is not on type: com.sun.facelets.tag.ui.ComponentRef
              Mar 23, 2007 12:04:51 PM com.sun.facelets.tag.jsf.ComponentRule warnAttr
              WARNING: /main/task/view.xhtml @53,61 orientation="horizontal" Property 'orientation' is not on type: org.jbpm.webapp.tag.jbpm.ui.DataForm

              • 4. Re: Exception when completing a task in websale example
                Ronald van Kuijk Master

                if you look in the source the FORCE has something to do with hibernate. What version do you run on tomcat? maybe you need a newer version

                • 5. Re: Exception when completing a task in websale example
                  Kevin Klinemeier Newbie

                  I discovered this problem myself when trying to run against a Hibernate version < 3.2