[jboss-user] [JBoss Messaging] - Re: ClassCastException when casting ObjectMessage object

mvecera@redhat.com do-not-reply at jboss.com
Tue Feb 3 02:39:57 EST 2009


I'd suspect some class loaders issue.
First you can check where are the classes loaded from and what class loaders were used in your onMessage method:
System.out.println(CustomMessageBean.class.getClassLoader().toString() + " " + CustomMessageBean.class.getProtectionDomain().getCodeSource().getLocation().toString());
  | System.out.println(message.class.getClassLoader().toString() + " " + message.class.getProtectionDomain().getCodeSource().getLocation().toString());

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

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



More information about the jboss-user mailing list