Uploaded image for project: 'StAXMapper'
  1. StAXMapper
  2. STXM-7

XMLStreamException: xmlns has been already bound to urn:1. Rebinding it to urn:2 is an error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.0.Final
    • 1.0.0.Beta3
    • core
    • None

      Writing the JBossAS 7 standalone.xml the following is reported for subsystems with no content: -

      #
      09:56:51,828 ERROR [stderr] (pool-2-thread-1) Caused by: javax.xml.stream.XMLStreamException: xmlns has been already bound to urn:jboss:domain:remoting:1.0. Rebinding it to urn:jboss:domain:naming:1.0 is an error
      #
      09:56:51,829 ERROR [stderr] (pool-2-thread-1) at com.sun.xml.internal.stream.writers.XMLStreamWriterImpl.writeDefaultNamespace(XMLStreamWriterImpl.java:775)
      #
      09:56:51,829 ERROR [stderr] (pool-2-thread-1) at com.sun.xml.internal.stream.writers.XMLStreamWriterImpl.writeNamespace(XMLStreamWriterImpl.java:992)
      #
      09:56:51,829 ERROR [stderr] (pool-2-thread-1) at org.jboss.staxmapper.FormattingXMLStreamWriter$13.run(FormattingXMLStreamWriter.java:300)

      This error is caused because the attribute queue is not called before a subsequent call to setDefaultNamespace, after setDefaultNamespace the writeNamespace operations in the queue are no longer valid.

            darran.lofthouse@redhat.com Darran Lofthouse
            darran.lofthouse@redhat.com Darran Lofthouse
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: