[jboss-user] [JBoss jBPM] - Re: Strange class cast exception when changing node assignme

ij_dett do-not-reply at jboss.com
Thu Mar 8 08:57:42 EST 2007


Hi Ed,

as I mentioned before the class cast exception is thrown in the last line of this method. It is thrown in the explicit casting statement - the expression being returned.
return (DocumentFactory) singleton.instance();

And here comes the funny part: 

If I inspect singleton.instance() in the debugger, I see and can access a valid instance of org.dom4j.DocumentFactory.

If I inspect (DocumentFactory) singleton.instance() the class cast exception is thrown - even in the debugger.

I simply do not understand this behavior ...

Cheers,
Ingo

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026243#4026243

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026243



More information about the jboss-user mailing list