[jboss-user] [JBoss jBPM] - jbpmContext null pointer
Viegas
do-not-reply at jboss.com
Tue Jul 18 09:39:29 EDT 2006
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();
| jbpmContext.setActorId(userName);
| 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.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958795#3958795
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958795
More information about the jboss-user
mailing list