1 Reply Latest reply on Oct 9, 2009 11:26 PM by zhong vivus

    Problem with taskform

    Emanuele Fabbri Newbie

      Hi! I've installed the new jBpm CR1 release and I tried to run the taskform example as seen on the http://vimeo.com/4643652 but in my machine the example return the exeption:


      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.RuntimeException: No UI associated with task ID 14
      org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)
      org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230)
      org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206)
      org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360)
      org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
      org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
      org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      root cause

      java.lang.RuntimeException: No UI associated with task ID 14
      org.jboss.bpm.console.server.TaskMgmtFacade.renderUI(TaskMgmtFacade.java:156)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
      org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
      org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
      org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
      org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
      org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
      org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
      org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
      org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      note The full stack trace of the root cause is available in the JBoss Web/2.1.3.GA logs.


      What does I'm doing wrong?

      Thanks.

      Emanuele

        • 1. Re: Problem with taskform
          zhong vivus Newbie

          when you deploy the process,you haven't deployed the taskForm resource.you should deploy like this:
          NewDeployment deployment = repositoryService.createDeployment();
          deployment.addResourceFromClasspath("org/jbpm/examples/taskform/process.jpdl.xml");
          deployment.addResourceFromClasspath("org/jbpm/examples/taskform/request_vacation.ftl");
          deployment.addResourceFromClasspath("org/jbpm/examples/taskform/verify_request.ftl");
          String deploymentId = deployment.deploy();