[jboss-dev-forums] [jBPM Development] - Re: Bug : Getting NullPointerException when getting the ProcessInstance p = ksession.getProcessInstance(id)

uvijayreddy657 do-not-reply at jboss.com
Sat Oct 8 04:50:15 EDT 2011


uvijayreddy657 [http://community.jboss.org/people/uvijayreddy657] created the discussion

"Re: Bug : Getting NullPointerException when getting the ProcessInstance p = ksession.getProcessInstance(id)"

To view the discussion, visit: http://community.jboss.org/message/630714#630714

--------------------------------------------------------------
Actually this issue is araising when I restart my development server. 

Case is: I am trying get the assigned task list of User. From Task object when I am trying to get ProcessInstanceId and from this proessInstanceId I am trying to get RuleFlowProcess object. when getting RuleFlowProcess object I am getting the NullPointerException internally in the framework.


ProcessInstance processInstance = 
ksession.getProcessInstance(task.getProcessInstanceId());
RuleFlowProcess process = (RuleFlowProcess) kbase.getProcess(processInstance.getProcessId());  // in this line I am getting the exception









--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/630714#630714]

Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111008/91a73022/attachment.html 


More information about the jboss-dev-forums mailing list