10 Replies Latest reply on Aug 9, 2007 6:11 AM by Mark Little

    classloader problem?

    jw Newbie

      Im using ESB 4.2.MR3.

      A client sends a JMS Object Message. The content is of type ClassA.
      In an action I can call


      and it returns the right class name (which is ClassA). But trying to
      assign the value like

      ClassA a;
      a = (ClassA)message.getBody().get()

      raises a ClassCastException. It seems, that different Classloaders are used. Serializing message.getBody().get() and deserializing it into a solves the problem (but that must be only a workaround).

      Any ideas whats wrong?