Closed fzakaria closed 8 years ago
What's odd is that if I retrieve the WorkflowOperations (not via @Delegate) then I don't see the error.
ex.
getWorkflowOperations().getActivities()
I made this stackoverflow to track this question: http://stackoverflow.com/questions/32151309/why-do-i-see-classcastexception-in-groovy-through-delegate-method
@fzakaria What JDK version are you using?
oh boi, this was long time ago. We can close if you'd like - the context for me is gone.
When I grab the activities with the code listed in the example in my workflow such as:
The call to getActivities throws ClassCastException. For some reason it won't cast AsyncCaller to the activity interface. I don't see anything different that I've setup in my code from your example.
Here is the actual error:
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'com.netflix.glisten.impl.swf.AsyncCaller(interface com.pending.PendingActionActivities, null, com.netflix.glisten.impl.swf.AsyncCaller$DynamicActivitiesClientFactory(class com.amazonaws.services.simpleworkflow.flow.DynamicActivitiesClientImpl))' with class 'com.netflix.glisten.impl.swf.AsyncCaller' to class 'com..pending.PendingActionActivities'