Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-198

Serializable class XmlValidationError contains non-serializable SchemaType(Impl) properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Version 2, TBD
    • Version 2, Version 2.1
    • Validator
    • None
    • N/A

    Description

      When trying to serialize an XmlValidationError (e.g. thrown by a remote EJB interface method), a NonSerializableException is thrown:

      org.apache.xmlbeans.XmlException: Validation failed ; nested exception is:
      java.io.NotSerializableException: org.apache.xmlbeans.impl.schema.SchemaTypeImpl

      Don't know whether it is feasible to make SchemaType serializable? Otherwise maybe only include SchemaTypeImpl.toString() values with the state of an XmlValidationError to be serialized...

      Many thanks in advance,

      Andreas

      Attachments

        Activity

          People

            Unassigned Unassigned
            awloew Andreas Loew
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: