4 Replies Latest reply on Jan 9, 2007 6:19 PM by Ronald van Kuijk

    SuperState and webapp

    David Hosier Novice

      Does the jbpm webapp not support drilling down into super states or do I have something wrong in my process definition. When I click on a task to complete it in the webapp and that task is the first state in a super state, I get a stack trace in the server. Here is the relevent portion of my process def:

       <super-state name="GetName">
       <task-node name="GetFirstName">
       <task name="task1" swimlane="User">
       <controller>
       <variable name="FirstName"></variable>
       </controller>
       </task>
       <transition name="" to="GetlastName"></transition>
       </task-node>
       <task-node name="GetlastName">
       <task name="task1" swimlane="User">
       <controller>
       <variable name="LastName"></variable>
       </controller>
       </task>
       </task-node>
       <transition name="" to="David"></transition>
       </super-state>
       <start-state name="start">
       <task name="GetStarted" swimlane="User">
       <controller>
       <variable name="Pet"></variable>
       </controller>
       </task>
       <transition name="" to="GetName"></transition>
       </start-state>
      



        • 1. Re: SuperState and webapp
          David Hosier Novice

          ...and the stack trace....

          17:02:35,557 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
          java.lang.NullPointerException
           at org.jbpm.webapp.tag.ProcessImageTag.extractBoxConstraint(ProcessImageTag.java:172)
           at org.jbpm.webapp.tag.ProcessImageTag.writeTable(ProcessImageTag.java:145)
           at org.jbpm.webapp.tag.ProcessImageTag.doEndTag(ProcessImageTag.java:74)
           at org.apache.jsp.task_jsp._jspx_meth_jbpm_processimage_0(org.apache.jsp.task_jsp:724)
           at org.apache.jsp.task_jsp._jspx_meth_f_view_0(org.apache.jsp.task_jsp:167)
           at org.apache.jsp.task_jsp._jspService(org.apache.jsp.task_jsp:111)
           at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
           at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
           at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
           at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
           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.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
           at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
           at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
           at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
           at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
           at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
           at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
           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)
          17:02:35,604 ERROR [[FacesServlet]] Servlet.service() for servlet FacesServlet threw exception
          javax.faces.FacesException: org.apache.jasper.JasperException
           at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)
           at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
           at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
           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: org.apache.jasper.JasperException
           at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
           at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
           at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
           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.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
           at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
           at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
           at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
           at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
           ... 31 more
          


          • 2. Re: SuperState and webapp
            David Hosier Novice

            I found the task.jsp and edited it to replace the line:

            <jbpm:processimage task="${taskBean.taskInstanceId}"/>

            with a static image (of Aria Giovanni :) ). And it went onto the next task successfully. So I assume it's just an enhancement to the webapp that needs to be done. Just like you can't drill down into the super state and get an image of the the states therein while editing in GPD.

            • 3. Re: SuperState and webapp
              Juan Giovanolli Newbie

              can you paste all the processdefinition.xml???
              Thanks