Re: [mobicents-public] Javassist with Mobicents

13 views
Skip to first unread message

Oliver Jowett

unread,
May 20, 2013, 5:41:02 PM5/20/13
to mobicent...@googlegroups.com
On 20 May 2013 16:44, Diego Adrada <diego...@gmail.com> wrote:

10:36:27,105 ERROR [STDERR] java.lang.ClassCastException: org.unicauca.sbb.HelloTest cannot be cast to org.unicauca.sbb.HelloTest

Generally means that you have two copies of the class loaded by different classloader instances.

In this case, probably one is the SLEE-provided classloader, and the other is a classloader used by Javassist. It doesn't matter if they load from the same source (classpath), it is the classloader *instance* that matters.

Oliver

Eduardo Martins

unread,
May 21, 2013, 4:56:31 AM5/21/13
to mobicents-public

Mobicents loads the sbb class into javassist, modifies it and only then it sets its class loader. Why do you need to instrument it yourself?

--
You received this message because you are subscribed to the Google Groups "mobicents-public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobicents-publ...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages