[jboss-jira] [JBoss JIRA] Created: (JBAS-9302) Corrupt XML configuration in unit tests

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Tue Apr 12 23:09:33 EDT 2011


Corrupt XML configuration in unit tests 
----------------------------------------

                 Key: JBAS-9302
                 URL: https://issues.jboss.org/browse/JBAS-9302
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 7.0.0.Beta2
            Reporter: Stuart Douglas
             Fix For: 7.0.0.Beta4


I am seeing occasional smoke test failures, due to corrupt xml configuration in standalone.xml.

The test where I am seeing this failure is org.jboss.as.test.surefire.servermodule.HttpDeploymentUploadUnitTestCase, which occasionally ends up with additional junk at the end of it's standalone.xml file such as: 


    </system-properties>
</server>et-binding-group>
    <system-properties>
        <property name="foo" value="bar"/>
        <property name="key" value="value"/>
    </system-properties>
</server>

I am 99% sure this is caused by multiple concurrent calls to XmlConfigurationPersister.store, as when I synchronised this method on XmlConfigurationPersister I could no longer reproduce the problem (could have been just luck, but it seems highly unlikely). 



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list