[jboss-user] [JBoss AOP] - Re: ClassCastException on invocation parameter casting
flavia.rainone@jboss.com
do-not-reply at jboss.com
Tue Feb 6 10:42:53 EST 2007
Hi!
I didn't understand exactly your application.
Is your interceptor receiving a MethodInvocation right?
And the method was supposed to receive, as first parameter, an instance of DocumentServiceParameters?
Now, you see on a print that the output is of type DocumentServiceParametrs, as expected, but instanceof returns false?
if this is the case, try this:
| Object arg = ((MethodInvocation) invcoation).getArguments()[0];
| System.out.println(arg.getClass() + " " + arg.getClass().getClassLoader());
| System.out.println(DocumentServiceParameters.class + " " + DocumentServiceParameters.class.getClassLoader());
|
And let me know what you get.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4011974#4011974
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4011974
More information about the jboss-user
mailing list