Table of Contents |
---|
...
(3) if 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
Common Errors
"java.lang.IllegalStateException",{"cause":null,"message":"not ready","localizedMessage":"not ready"
This happens when you try to access a Promise variable in a context that does not ensure that the value must be "ready". Here is an anti-example:
Code Block |
---|
Promise<String> message = client.formulateNotificationMessage(layerId);
client.notifyFollowers(NOTIFICATION_SNS_TOPIC,
NOTIFICATION_SUBJECT,
message.get(), // WRONG!!!
message); // trying to use this as a waitFor parameter, but this isn't the right way to do it |
Here's the fixed example:
Code Block |
---|
Promise<String> message = client.formulateNotificationMessage(layerId);
client.notifyFollowers(Promise.asPromise(NOTIFICATION_SNS_TOPIC),
Promise.asPromise(NOTIFICATION_SUBJECT),
message); |
This can also happen when you have @Asynchronous annotations but aspectj weaving is not correctly configured and enabled. Make sure:
...