Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-1136

Subsystem parser tests fail when woodstox parser is on classpath

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.0.4.Final
    • 2.0.1.Final
    • Test Suite
    • None
    • Workaround Exists
    • Hide

      Make sure woodstox or any other xml parser is not on test classpath

      Show
      Make sure woodstox or any other xml parser is not on test classpath

    Description

      When subsystem is testing remove resources and subsystem model is empty.
      Marshaling fails inside subsystem harness with

      Caused by: javax.xml.stream.XMLStreamException: Trying to write END_DOCUMENT when document has no root (ie. trying to output empty document).
      	at com.ctc.wstx.sw.BaseStreamWriter.throwOutputError(BaseStreamWriter.java:1522)
      	at com.ctc.wstx.sw.BaseStreamWriter.reportNwfStructure(BaseStreamWriter.java:1551)
      	at com.ctc.wstx.sw.BaseStreamWriter._finishDocument(BaseStreamWriter.java:1377)
      	at com.ctc.wstx.sw.BaseStreamWriter.writeEndDocument(BaseStreamWriter.java:536)
      	at org.jboss.staxmapper.FormattingXMLStreamWriter.writeEndDocument(FormattingXMLStreamWriter.java:215)
      	at org.jboss.as.subsystem.test.TestParser.writeContent(TestParser.java:80)
      	at org.jboss.as.subsystem.test.TestParser.writeContent(TestParser.java:51)
      	at org.jboss.staxmapper.XMLMapperImpl.doDeparse(XMLMapperImpl.java:88)
      	at org.jboss.staxmapper.XMLMapperImpl.deparseDocument(XMLMapperImpl.java:83)
      	at org.jboss.as.controller.persistence.AbstractConfigurationPersister.marshallAsXml(AbstractConfigurationPersister.java:117)
      	... 51 more
      
      

      Attachments

        Issue Links

          Activity

            People

              tomazcerar Tomaž Cerar (Inactive)
              tomazcerar Tomaž Cerar (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: