2 Replies Latest reply on Dec 8, 2005 2:08 PM by igeorg

    ObjectInputStream.resolveClass & ClassNotFoundException

    igeorg

      Hi,

      I've hit the ObjectInputStream.resolveClass feature while trying to access a serializable context variable from within an action.

      For a description of the problem, have a look here:
      http://bugs.sun.com/bugdatabase/view_bug.do;:YfiG?bug_id=4340158

      One of the suggested workarounds is to subclass ObjectInputStream, override resolveClass() and use the context class loader for class resolution.
      JBoss implements the suggested workaround in:
      org.jboss.invocation.MarshalledValueInputStream

      Would it make sense to use this in SerializableToByteArrayConverter?

      Thanks
      John