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

parse(XmlStreamReader) does sometimes not work properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Version 2.4 , Version 2.6
    • None
    • Validator, XmlObject
    • None
    • jdk.1.7.0_10

    Description

      Under some circumstances xmlbeans will 'forget' to create a namespace needed for the 'xsi:type'
      attribute. This happens after an XmlObject is created by XmlObject.parse(XmlStreamReader).

      This behaviour causes a NullpointerException in the Validation (amongst other unfortunate things).

      This can be triggered by a save-load circle.
      I will attach a schema and a JUnitTest to reproduce this issue.

      Attachments

        1. animal.xsd
          0.7 kB
          Thorsten Goetzke
        2. BeansBug.java
          3 kB
          Thorsten Goetzke

        Activity

          People

            Unassigned Unassigned
            goesen Thorsten Goetzke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: