Table of Contents |
---|
...
(3) sanity check your new package, every SageBio workflow has the Hello World workflow embedded in it. Make sure you can run it from your new package:
~/platform/trunk/tools/MyNewWorkflow>java -javaagent:/Users/deflaux/Downloads/aws-java-sdk-1.3.3/third-party/aspectj-1.6/aspectjweaver.jar -cp target/MyNewWorkflow-0.11-SNAPSHOT.jar com.amazonaws.services.simpleworkflow.flow.examples.helloworld.ActivityHost
~/platform/trunk/tools/MyNewWorkflow>java -javaagent:/Users/deflaux/Downloads/aws-java-sdk-1.3.3/third-party/aspectj-1.6/aspectjweaver.jar -cp target/MyNewWorkflow-0.11-SNAPSHOT.jar com.amazonaws.services.simpleworkflow.flow.examples.helloworld.WorkflowHost
java -javaagent:/Users/deflaux/Downloads/aws-java-sdk-1.3.3/third-party/aspectj-1.6/aspectjweaver.jar -cp target/MyNewWorkflow-0.11-SNAPSHOT.jar com.amazonaws.services.simpleworkflow.flow.examples.helloworld.WorkflowExecutionStarter
(4) if the Java package for the workflow code is not already listed in PLFM/trunk/lib/lib-workflow/src/main/resources/META-INF/aop.xml
add it there
...
This can happen when the activity or workflow code throws a runtime exception such as a NullPointerException. Unfortunately the unit testing framework provided by SWF does not log them.
"java.lang.IllegalStateException",{"cause":null,"message":"not ready","localizedMessage":"not ready"
Promise Variables were used Incorrectly
...