0 Replies Latest reply on Mar 26, 2018 10:02 AM by Pankaj Soni

    JBPM 6.5 halts while retrieving KieSession using ProcessInstanceIdContext.

    Pankaj Soni Newbie

      I am using PerProcessInstance strategy to build kession. When I try to retrieve kession using


      runtimeManager = RuntimeManagerFactory.Factory.get().newPerProcessInstanceRuntimeManager(runtimeEnv);

      KieSession ksession = runtimeManager .getRuntimeEngine(ProcessInstanceIdContext.get(processInstanceId)).getKieSession();


      the execution halts indefinitely. When I did some debugging I got to know that when flow goes in getRuntimeEngine() method, finally reaches to LockSupport.parkUntil() method then calls UNSAFE.park(true, deadline).

      And then no further execution is done. What could go wrong? Please help.