jenkinsci / jenkinsci/multi-module-tests-publisher-plugin
java.lang.NegativeArraySizeException
- Dominant language
- Java
- Stars
- 3
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
I cannot get the plugin working as I hoped.
My job configuration is:

My project at job level has different modules, my first module is called "ADOS RegressionTest 02.Enform" appearing as a top-level directory in the a job workspace, a JUnit report file is generated for each of module in target/surefire-reports/TEST-TestSuites.xml.
The (quite limited) documentation I found on the plugin homepage @ https://wiki.jenkins-ci.org/display/JENKINS/Multi+Module+Tests+Publisher does not help to figure out how I am supposed to configure the plugin.
Here the stacktrace:
Analyzing test results with ProjectResultPublisher...
ERROR: Publisher com.cwctravel.hudson.plugins.multimoduletests.ProjectResultPublisher aborted due to exception
java.lang.NegativeArraySizeException
at com.cwctravel.hudson.plugins.multimoduletests.junit.io.StringReaderWriter.(StringReaderWriter.java:17)
at com.cwctravel.hudson.plugins.multimoduletests.junit.io.IOUtil.createReaderWriter(IOUtil.java:11)
at com.cwctravel.hudson.plugins.multimoduletests.junit.JUnitParser.characters(JUnitParser.java:266)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.characters(AbstractSAXParser.java:538)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:464)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at com.cwctravel.hudson.plugins.multimoduletests.junit.JUnitParser.parse(JUnitParser.java:119)
at com.cwctravel.hudson.plugins.multimoduletests.ProjectResultPublisher$ParseResultCallable.invoke(ProjectResultPublisher.java:240)
at com.cwctravel.hudson.plugins.multimoduletests.ProjectResultPublisher$ParseResultCallable.invoke(ProjectResultPublisher.java:174)
at hudson.FilePath.act(FilePath.java:918)
at hudson.FilePath.act(FilePath.java:896)
at com.cwctravel.hudson.plugins.multimoduletests.ProjectResultPublisher.perform(ProjectResultPublisher.java:122)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1040)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
at hudson.model.Run.execute(Run.java:1770)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Finished: FAILURE
Contributor guide
Research direction
Start by reproducing the failure with the shown multi-module job configuration and reports under target/surefire-reports/TEST-TestSuites.xml. Read StringReaderWriter.java:17, IOUtil.java:11, and JUnitParser.java:266 to trace the invalid array size, then verify that all module reports parse and publish without the NegativeArraySizeException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100