9 Replies Latest reply on Jul 19, 2006 5:45 AM by Ricardo Viegas

    jbpmContext null pointer

    Ricardo Viegas Newbie

      Hello, Im trying to create a webapp to run with JBPM, so far I just have a login that verifies a user and then tries to set the actorId of the jbpmContext to that same user. I have a servlet that executes the following code

      String userName = req.getParameter("userName");
      JbpmContext jbpmContext = JbpmContext.getCurrentJbpmContext();
      context.getRequestDispatcher("/mainPage.jsp").forward(req, resp);

      the problem I have is that whenever the execution gets to: "jbpmContext.setActorId" trows a exception nullPointerException, I guess its the jbpmContext but I dont know why.