I have a custom Java process that computes some info and creates a temporary BO (I have tried with and without persistence). I then want to pass that BO off to an HTML report for display to the user. If I store my DiffInfo object and run the process by hand, I can get the HTML report. I am attempting to use:
IProcess process = (IProcess) engine.executeChildProcess(this, "DisplayDiff", new IEntity[]{diffInfo}, false);
(I have tried with the asynch flag as both true and false)
DisplayDiff is a process with one rule, display the HTML report.
When I do within this custom process I get:
010-12-13 23:17:02,627 ERROR Reply#2 -18 Resumed process DisplayDiffMedia has failed. Message is Internal system error - could not find a process to resume for id 1 Sending failure reply
java.lang.NullPointerException
at com.bas.basserver.executionengine.ExecutionEngine.a(Unknown Source)
at com.bas.basserver.executionengine.ExecutionEngine.handleServiceReplyNotification(Unknown Source)
at com.bas.basserver.bsmanager.f.a(Unknown Source)
at com.bas.basserver.bsmanager.f.a(Unknown Source)
at com.bas.basserver.iopipes.ComponentSink.processMessage(Unknown Source)
at org.openadaptor.adaptor.STPipelineController.processMessage(Unknown Source)
at com.bas.openadaptor.NonTransactionalController.processMessage(Unknown Source)
at org.openadaptor.adaptor.AbstractSimplePipe.processMessage(Unknown Source)
at org.openadaptor.adaptor.STPipelineController.processMessage(Unknown Source)
at com.bas.openadaptor.NonTransactionalController.processMessage(Unknown Source)
at org.openadaptor.adaptor.AbstractSimpleSource.processMessage(Unknown Source)
at org.openadaptor.adaptor.AbstractSimpleSource.sourceProcess(Unknown Source)
at org.openadaptor.adaptor.AbstractSimpleSource.sourceProcess(Unknown Source)
at com.bas.openadaptor.a$a.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)
2010-12-13 23:17:02,629 ERROR Reply#2 -Exception thrown while handling notification java.lang.NullPointerException