3 Replies Latest reply on Mar 8, 2010 10:58 AM by kukeltje.ronald.jbpm.org

    JBPM process start blocking the UI

    balazska

      Hy!


      I observed that the jbpm process starting blocked the ui about 5sec.
      Then I try to put the process starting in an asychronous method(raise asynch event), but I got transaction exceptions.


      Any idea?

        • 1. Re: JBPM process start blocking the UI
          balazska

          Caused by: java.lang.IllegalStateException: JbpmContext may only be used inside a transaction
               at org.jboss.seam.bpm.ManagedJbpmContext.joinTransaction(ManagedJbpmContext.java:83)
               at org.jboss.seam.bpm.ManagedJbpmContext.getJbpmContext(ManagedJbpmContext.java:73)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:597)
               at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
               at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
               at org.jboss.seam.Component.callComponentMethod(Component.java:2249)
               at org.jboss.seam.Component.unwrap(Component.java:2275)
               at org.jboss.seam.Component.getInstance(Component.java:2041)
               at org.jboss.seam.Component.getInstance(Component.java:2000)
               at org.jboss.seam.Component.getInstance(Component.java:1994)
               at org.jboss.seam.Component.getInstance(Component.java:1967)
               at org.jboss.seam.Component.getInstance(Component.java:1962)
               at org.jboss.seam.bpm.ManagedJbpmContext.instance(ManagedJbpmContext.java:165)
               at org.jboss.seam.bpm.BusinessProcess.createProcess(BusinessProcess.java:134)
               at org.jboss.seam.bpm.BusinessProcess.createProcess(BusinessProcess.java:123)
          • 2. Re: JBPM process start blocking the UI
            balazska

            any solution?

            • 3. Re: JBPM process start blocking the UI
              kukeltje.ronald.jbpm.org

              Kim Nimoy wrote on Mar 05, 2010 10:42:

              I observed that the jbpm process starting blocked the ui about 5sec.


              Have you tried setting  the log level of jBPM higher and see what actually causes this behaviour?