3 Replies Latest reply on Sep 27, 2012 8:47 AM by vidhyakp28

    org.jbpm.integration.console.StatefulKnowledgeSessionUtil exception

    denghua10

      Hi,

      jbpm5.3 Problem

      HTTP 500:    

      HTTP Status 500 -


      type Exception report

      message

      description The server encountered an internal error () that prevented it from fulfilling this request.

      exception

      org.jboss.resteasy.spi.UnhandledException: java.lang.NoClassDefFoundError: Could not initialize class org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder  org.jboss.resteasy.core.SynchronousDispatcher.unwrapException(SynchronousDispatcher.java:345)  org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:321)  org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214)  org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190)  org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:534)  org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496)  org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)  org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)  org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)  org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)  javax.servlet.http.HttpServlet.service(HttpServlet.java:847)  org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)  
        • 1. Re: org.jbpm.integration.console.StatefulKnowledgeSessionUtil exception
          jsvitak

          Hello,

          paste the whole stacktrace of the exception from the server.log (should be in jbpm-installer/jboss-as-7.0.2.Final/standalone/log/server.log) including the block with the last 'Caused by' statement. 

          • 2. Re: org.jbpm.integration.console.StatefulKnowledgeSessionUtil exception
            jhdevos

            Hi there,

             

            I had the same issue while refreshing process list in the jBPM console while having invalid process deployed into Guvnor (don't ask me how I was able to built package).

            Removing this invalid process from Guvnor makes the console working again properly...

             

            Hope this help

            • 3. Re: org.jbpm.integration.console.StatefulKnowledgeSessionUtil exception
              vidhyakp28

              This is so annoying working with jbpm 5.3!

              For every next step, a new issue rises which is faced by all and yet not been resolved.

               

              I have tried a sample process with a single user task in the guvnor-web designer and build it. After accessing the console, I have faced many errors.

              Right from  "java.lang.IllegalArgumentException: org.hibernate.QueryParameterException: could not locate named parameter [userId]"

              to the error posted in this thread.

               

              Series of errors:

              1) "java.lang.IllegalArgumentException: org.hibernate.QueryParameterException: could not locate named parameter [userId]"

                   Resolution: replaced jbpm-human-task-core-5.3.0.Final.jar at locations as suggested in post:  https://community.jboss.org/thread/203763?start=15&tstart=0

              2) "Could not connect task client HornetQ(127.0.0.1:5445)" in the console with "Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.UnhandledException: java.lang.NoClassDefFoundError: Could not initialize class org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder" in the server.log

               

              HornetError.png