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

NPE/AssertionFailure in newDomNode()

    XMLWordPrintableJSON

Details

    Description

      See attached repro and run with assertions enabled. Creating a .newDomNode() from the parsed instance throws a NPE when looking up a prefix for the namespace "http://dufourrault"

      Exception in thread "main" java.lang.AssertionError
      at org.apache.xmlbeans.impl.store.Saver.getUriMapping(Saver.java:1188)
      at org.apache.xmlbeans.impl.store.Saver$DomSaver.emitContainer(Saver.java:4525)
      at org.apache.xmlbeans.impl.store.Saver.processContainer(Saver.java:788)
      at org.apache.xmlbeans.impl.store.Saver.process(Saver.java:531)
      at org.apache.xmlbeans.impl.store.Saver$DomSaver.exportDom(Saver.java:4474)
      at org.apache.xmlbeans.impl.store.Cursor.newDomNode(Cursor.java:2954)
      at org.apache.xmlbeans.impl.values.XmlObjectBase.newDomNode(XmlObjectBase.java:155)
      at org.apache.xmlbeans.impl.values.XmlObjectBase.newDomNode(XmlObjectBase.java:152)
      at test.main(test.java:11)

      Attachments

        1. schema.xsd
          0.6 kB
          Kevin Krouse
        2. inst.xml
          0.3 kB
          Kevin Krouse
        3. test.java
          0.4 kB
          Kevin Krouse
        4. WS-BaseFaults-1_2-Draft_03.xsd
          5 kB
          Ian P. Springer

        Activity

          People

            ykadiysk Yana Kadiyska
            kkrouse@bea.com Kevin Krouse
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: