6 Replies Latest reply on Jun 18, 2009 5:42 AM by kukeltje

    Problem with taskform

      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
          kukeltje

          where did you get the example with taskforms from? afaik, there is no example deployed yet in the demo env which has taskforms. So unless you created your own definition AND forms, this error is to be expected

          • 2. Re: Problem with taskform

            If you download http://sourceforge.net/project/downloading.php?group_id=70542&filename=jbpm-4.0.CR1.zip&a=23689550 package and extract it and go to the folder "examples\src\org\jbpm\examples\taskform" you will find the example.

            The demo video of the example is also available at http://vimeo.com/4643652 demonstrating that it is possible.. but on my machine it doesn't work.

            Can you try please?

            Thanks,

            Emanuele

            • 3. Re: Problem with taskform
              kukeltje

              Ok, sorry. I knew it was there but it is by default *not* deployed. So how did you deploy this process? Are you sure you also deployed the .ftl files? I currently have no time to check if it works here (sorry).

              • 4. Re: Problem with taskform
                kukeltje

                sorry, it does seem to be deployed by default (I missed it due to the fact that I was looking for taskform and not vacation2... I get the same error here.

                Most likely it is deployed wrongly since the taskforms are in a subdir. afaik, that should not be the case, so the taskform in the examples is (might be) currently 'wrong'.

                • 5. Re: Problem with taskform

                  Ok. Only one other question. Are there any manuals that explain how to create these types of forms? Because this is the only stuff I have and without any help I can't understand how task works!

                  Thank you!

                  Emanuele

                  • 6. Re: Problem with taskform
                    kukeltje

                    I've worked it out. Two issues are at hand
                    - The building of the examples.bar from the examples folder does *not* include the *.ftl files so the forms are not included. You could include them by adding an include line in the build.xml file
                    - But then the forms are in a subdir /org/jbpm/.... and the taskform engine does *not* look for them there. If you just zip all the files in the taskform folder into a e.g. .bar file and change the build.xml file a little so you can deploy this separate file, you can play with the taskforms.

                    hth