[jboss-user] [JBoss jBPM] - Re: Exception while executing SubProcess
suchi1247
do-not-reply at jboss.com
Tue Aug 21 01:39:27 EDT 2007
Thank u Martin.I could able to solve that exception now.
but now iam getting NullPointerException.
Below is the modified code and Exception .
| JbpmConfiguration jbpmConfiguration =JbpmConfiguration.parseResource("hibernate.cfg");
| JbpmContext jbpmContext=jbpmConfiguration.createJbpmContext();
| try{
| // parsing sub process
| ProcessDefinition subProcessDefinition = ProcessDefinition.parseXmlResource("ChildProcess/processdefinition.xml");
| jbpmContext.deployProcessDefinition(subProcessDefinition);
| System.out.println("subproceess Deployed ");
| ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource("MainProcess/processdefinition.xml");
| jbpmContext.deployProcessDefinition(processDefinition);
| System.out.println("Main proceess deployed");
|
| ProcessInstance processInstance = processDefinition.createProcessInstance();
| System.out.println(" a: "+ processInstance.getRootToken().getNode().getName());
| processInstance.signal();
| System.out.println(" b: "+ processInstance.getRootToken().getNode().getName());
| System.out.println("going to Process State now");
| processInstance.signal();
| System.out.println(" c: "+ processInstance.getRootToken().getNode().getName());
| System.out.println("reached to process State Now");
|
|
| System.out.println(" : "+ processInstance.getRootToken().getNode().getName());
|
| processInstance.signal();// i expect , signal to end node of main process here. but i got the below exception.
| System.out.println(" d: "+ processInstance.getRootToken().getNode().getName());
|
| }
| catch(Exception e)
| {e.printStackTrace();}
| finally{
| jbpmContext.close();
| }
|
And the exception is
| java.lang.NullPointerException
| at org.jbpm.graph.node.ProcessState.leave(ProcessState.java:197)
| at org.jbpm.graph.exe.Token.signal(Token.java:194)
| at org.jbpm.graph.exe.Token.signal(Token.java:139)
| at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:251)
| at com.iton.servlets.TestProcessState.doGet(TestProcessState.java:110)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.ja
|
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
|
Plz tell me whats wrong in my code??
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076104#4076104
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076104
More information about the jboss-user
mailing list