1 Reply Latest reply on Sep 12, 2006 5:25 AM by jbaton

    Error in compositeLog

    helidesai

      Hello,

      I am using JBPM 3.1.2. I am trying to save process instance and then retireve it from database. My code is in message driven bean, so whenever I receive message , the bean activates the process. When I try to retrieve the process instance and run processInstance.signal(), I am getting NullPointerException at org.jbpm.graph.exe.Token.startCompositeLog. Do I need to do some loggigin for this? I have seen the database example given in the tutorial, but nothing abt logging is mentioned in it.

      This is the process which retrieves the processInstance from the database.

      public void resumeProcess(){



      JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
      try{


      GraphSession graphSession = jbpmContext.getGraphSession();

      ProcessDefinition processDefinition =
      graphSession.findLatestProcessDefinition("NOCProcess1");

      List processInstances =
      graphSession.findProcessInstances(processDefinition.getId());

      ProcessInstance processInstance =
      (ProcessInstance) processInstances.get(0);

      processInstance.signal();
      jbpmContext.save(processInstance);
      }catch(Exception e)
      {
      e.printStackTrace();
      }finally {
      jbpmContext.close();
      }
      }

      Please help me.

      Regards,
      Heli.