XStream
  1. XStream
  2. XSTR-171

No support for enum types (Tiger 5.0) causes de-serialization to fail.

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The following stacktrace appears when de-serializing XML file with Java 5.0 new changes in class being saved:

      [Fatal Error] :1:1: Content is not allowed in prolog.
      Exception in thread "main" com.thoughtworks.xstream.io.StreamException: Content is not allowed in prolog.
      at com.thoughtworks.xstream.io.xml.DomDriver.createReader(Unknown Source)
      at com.thoughtworks.xstream.XStream.fromXML(Unknown Source)
      at com.thoughtworks.xstream.XStream.fromXML(Unknown Source)
      at com.aep.tools.persist.XMLSerializer.load(XMLSerializer.java:48)
      at com.aep.tools.app.FileStatus.testLoadPersistence(FileStatus.java:505)
      at com.aep.tools.app.FileStatus.main(FileStatus.java:544)

      XML saved to disk looks like: (partial)
      ...
      <sSize>561152</sSize>
      <status>
      <_DOLLAR_name>unknown</_DOLLAR_name>
      <_DOLLAR_ordinal>3</_DOLLAR_ordinal>
      </status>
      <sCheckoutStatus></sCheckoutStatus>
      </memberProperties>
      </com.aep.tools.app.ProjectFile>
      <com.aep.tools.app.ProjectFile>
      <bIsProject>false</bIsProject>
      <sName>Arrpc45.dll</sName>
      <memberProperties>
      <sVersion>1</sVersion>
      <sLastDate>8/25/04 6:48a</sLastDate>
      <sType>Binary</sType>
      <sSize>131072</sSize>
      <status reference="../../../com.aep.tools.app.ProjectFile/memberProperties/status"/>

      <status> field shows strange type information on 1st occurrence, and bad reference on 2-n.

        People

        • Assignee:
          Unassigned
          Reporter:
          Peter Kasson
        • Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: