XStream
  1. XStream
  2. XSTR-101

XStream should be able to work with classes that are hot-redeployed

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.2
    • Component/s: None
    • Labels:
      None

      Description

      Stephane Nicoll wrote:

      >Hello list,
      >
      >We use xstream in Jboss to serialize our messages to XML and post them to JMS
      >queues. It works fine (great job) but when we hot redeploy serializable
      >classes we have the following exception:
      >
      >11:10:08,587 ERROR [ejb.plugins.LogInterceptor]
      >TransactionRolledbackLocalException in method: public abstract void
      >javax.jms.MessageListener.onMessage(javax.jms.Message), causedBy:
      >com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Could
      >not get field class java.lang.reflect.Field.codAmount: null
      > at
      >com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.vis
      >itSerializableFields(Unknown Source)
      > at
      >com.thoughtworks.xstream.converters.reflection.ReflectionConverter.marshal(Un
      >known Source)
      > at
      >com.thoughtworks.xstream.core.ReferenceByXPathMarshaller.convertAnother(Unkno
      >wn Source)
      > at com.thoughtworks.xstream.core.TreeMarshaller.start(Unknown Source)
      > at
      >com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.marshal(Unk
      >nown Source)
      > at com.thoughtworks.xstream.XStream.marshal(Unknown Source)
      > at com.thoughtworks.xstream.XStream.toXML(Unknown Source)
      >
      >To be clear, Xstream is not hot redeployed but the Objects to serialize are.
      >Restarting Jboss solves the issue but this is quite annoying.
      >
      >We're using SUN JDK 1.4.2
      >
      >Thanks,
      >
      >Stéphane
      >

        People

        • Assignee:
          Unassigned
          Reporter:
          Joe Walnes
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: