2 Replies Latest reply on Dec 3, 2013 10:11 AM by fgiannetti

    JBPM6 - RuntimeManager error

    fgiannetti

      Hi all!

      Any time in my app when a Exception is thrown, the next request to jbpm give me this error:

       

      RuntimeManager with id default-per-pinstance is already active

       

      This is my class:

      public class JbpmService{
           @Inject
           @PerProcessInstance
           private RuntimeManager singletonManager;
      
           @Inject
           private TaskService taskService;
      
      .........
      }
      
      

       

      If the jbpm action don't throw any exception, the error never appears...

       

      Thanks!!

        • 1. Re: JBPM6 - RuntimeManager error
          salaboy21

          Again, you don't need to Inject the TaskService if you have the runtime manager. Also if you are using @PerProcessInstance you shouldn't call the variable singletonManager.

          It seems that you are creating multiple times the JbpmService which causes to create multiple instances of the RuntimeManager, so you need to make sure that the JbpmService is not instantiated more than once.

          • 2. Re: JBPM6 - RuntimeManager error
            fgiannetti

            Yes! sorry

            The injected TaskService is old...

            Now Im getting it from the RuntimeEngine


            Thanks for the answer!