[jboss-user] [jBPM Users] - Re: jbpm 4.0 creating and running processes without persiste

thirumalvishnu do-not-reply at jboss.com
Tue Sep 1 07:53:35 EDT 2009


For the above scenario I tried following

private JpdlProcessDefinition  loadProcessDefinition() throws IOException {
        JpdlParser jpdlParser = new JpdlParser();
        Parse parse = jpdlParser.createParse();
        String fileLocation ="*****.jpdl.xml";
        FileInputStream inputStream = new FileInputStream(fileLocation);
        parse.setInputStream(inputStream);
        parse.execute();        
        return (JpdlProcessDefinition ) parse.getDocumentObject();
}
 
and from calling section had this block
					ProcessDefinitionImpl processDefinition = loadProcessDefinition();
  | 					ClientProcessInstance ci = processDefinition.createProcessInstance();
  | 					ci.createVariable("arg", publishArgs);
  | 					ci.createVariable("fc", fc);
  | 					ci.start();


But I get the exception ,
  
org.jbpm.pvm.internal.wire.WireException: couldn't invoke method execute: couldn't create argument 1: null
	at org.jbpm.jpdl.internal.activity.JavaActivity.perform(JavaActivity.java:97)
	at org.jbpm.jpdl.internal.activity.JpdlAutomaticActivity.execute(JpdlAutomaticActivity.java:14)
	at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)
	at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:625)
	at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:585)
	at org.jbpm.pvm.internal.model.ExecutionImpl.start(ExecutionImpl.java:198)
	at com.test.flow.FlowController$1.run(FlowController.java:90)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.Exception: couldn't create argument 1: null
	at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.getArgs(ObjectDescriptor.java:348)
	at org.jbpm.jpdl.internal.activity.JavaActivity.perform(JavaActivity.java:79)
	... 7 more
Caused by: java.lang.NullPointerException
	at org.jbpm.pvm.internal.script.EnvironmentBindings.getReadContext(EnvironmentBindings.java:61)
	at org.jbpm.pvm.internal.script.EnvironmentBindings.containsKey(EnvironmentBindings.java:72)
	at javax.script.SimpleScriptContext.getAttribute(SimpleScriptContext.java:143)
	at org.jbpm.pvm.internal.script.JuelScriptEngine.toELContext(JuelScriptEngine.java:94)
	at org.jbpm.pvm.internal.script.JuelScriptEngine.parse(JuelScriptEngine.java:162)
	at org.jbpm.pvm.internal.script.JuelScriptEngine.eval(JuelScriptEngine.java:62)
	at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:84)
	at org.jbpm.pvm.internal.script.ScriptManager.evaluate(ScriptManager.java:116)
	at org.jbpm.pvm.internal.script.ScriptManager.evaluate(ScriptManager.java:108)
	at org.jbpm.pvm.internal.script.ScriptManager.evaluateExpression(ScriptManager.java:80)
	at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(ObjectDescriptor.java:180)
	at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:473)
	at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:452)
	at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.getArgs(ObjectDescriptor.java:343)
	... 8 more


Any help on how to resolve this .... 


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4252818#4252818

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4252818



More information about the jboss-user mailing list