[jboss-user] [jBPM] - ClassCastException: JpdlProcessDefinition cannot be cast to ProcessDefinitionImpl

jordi elies do-not-reply at jboss.com
Mon Apr 26 05:56:54 EDT 2010

jordi elies [http://community.jboss.org/people/jelies] replied to the discussion

"ClassCastException: JpdlProcessDefinition cannot be cast to ProcessDefinitionImpl"

To view the discussion, visit: http://community.jboss.org/message/539472#539472

Hello again,

I was looking this morning for some workaround... I can't solve it yet. When the application is loaded for second time on the application server, the class cast exception appears when list() method is called. It happens in Tomcat too.
Debugging the code, i've evaluated the expression (see first message for code details):
 repositorySession.getObject(deploymentId, objectName) instanceof ProcessDefinitionImpl 

Obviously, with the first application deploy, the result is true, consequently the cast succeeds. With the second deploy the expression results false, then the cast throw the mentioned exception.
I'll still looking for any solution... I hate this kind of rare errors which always have a simple solution!


Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100426/8f2f94d9/attachment.html 

More information about the jboss-user mailing list