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

Subsystem parser tests fail when woodstox parser is on classpath

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.1.Final
    • Fix Version/s: 2.0.4.Final
    • Component/s: Test Suite
    • Labels:
      None
    • Environment:

      woodstox parser on test classpath

    • Workaround:
      Workaround Exists
    • Workaround Description:
      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
      
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ctomc Tomaž Cerar
                  Reporter:
                  ctomc Tomaž Cerar
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: