Intermittent failure whilst recording test results caused by java.util.MissingResourceException

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      I've recently added a few extra slaves to my Jenkins CI environment, and I'm occasionally getting an otherwise successful build failing whilst "Recording test results".

      I've included the full stack trace below, but it seems to relate to a missing resource bundle by com.sun.org.apache.xerces.internal.impl.msg.SAXMessages.

      What's strange is that this only happens intermittently, and I've yet to find a conclusive pattern to the failures.

      BUILD SUCCESSFUL
      
      Total time: 2 mins 35.991 secs
      Archiving artifacts
      Recording test results
      ERROR: Failed to archive test reports
      hudson.util.IOException2: remote file operation failed: /home/ci/jenkins/workspace/experimental-tim-unit at hudson.remoting.Channel@7f5f62bf:st-jenkinsslave-003
      	at hudson.FilePath.act(FilePath.java:900)
      	at hudson.FilePath.act(FilePath.java:877)
      	at hudson.tasks.junit.JUnitParser.parse(JUnitParser.java:87)
      	at hudson.tasks.junit.JUnitResultArchiver.parse(JUnitResultArchiver.java:121)
      	at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:133)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:802)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:774)
      	at hudson.model.Build$BuildExecution.post2(Build.java:183)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:724)
      	at hudson.model.Run.execute(Run.java:1600)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:237)
      Caused by: hudson.util.IOException2: Failed to read /home/ci/jenkins/workspace/experimental-tim-unit/TIM/DBUpgrade/build/test-results/TEST-dbupgrade.framework.DBUpgradeSQLTest.xml
      	at hudson.tasks.junit.TestResult.parse(TestResult.java:284)
      	at hudson.tasks.junit.TestResult.parsePossiblyEmpty(TestResult.java:223)
      	at hudson.tasks.junit.TestResult.parse(TestResult.java:158)
      	at hudson.tasks.junit.TestResult.parse(TestResult.java:141)
      	at hudson.tasks.junit.TestResult.<init>(TestResult.java:117)
      	at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:117)
      	at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:90)
      	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2387)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      	at hudson.remoting.Request$2.run(Request.java:326)
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:679)
      Caused by: org.dom4j.DocumentException: Could not load any resource bundle by com.sun.org.apache.xerces.internal.impl.msg.SAXMessages Nested exception: Could not load any resource bundle by com.sun.org.apache.xerces.internal.impl.msg.SAXMessages
      	at org.dom4j.io.SAXReader.read(SAXReader.java:484)
      	at org.dom4j.io.SAXReader.read(SAXReader.java:264)
      	at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:129)
      	at hudson.tasks.junit.TestResult.parse(TestResult.java:267)
      	... 16 more
      Caused by: java.util.MissingResourceException: Could not load any resource bundle by com.sun.org.apache.xerces.internal.impl.msg.SAXMessages
      	at com.sun.org.apache.xerces.internal.utils.SecuritySupport$7.run(SecuritySupport.java:172)
      	at com.sun.org.apache.xerces.internal.utils.SecuritySupport$7.run(SecuritySupport.java:164)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at com.sun.org.apache.xerces.internal.utils.SecuritySupport.getResourceBundle(SecuritySupport.java:164)
      	at com.sun.org.apache.xerces.internal.util.SAXMessageFormatter.formatMessage(SAXMessageFormatter.java:57)
      	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.getProperty(AbstractSAXParser.java:2063)
      	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.setProperty(SAXParserImpl.java:470)
      	at org.dom4j.io.SAXHelper.setParserProperty(SAXHelper.java:34)
      	at org.dom4j.io.SAXReader.configureReader(SAXReader.java:911)
      	at org.dom4j.io.SAXReader.read(SAXReader.java:463)
      	... 19 more
      Build step 'Publish JUnit test result report' changed build result to FAILURE
      Notifying upstream projects of job completion
      Finished: FAILURE
      

            Assignee:
            Unassigned
            Reporter:
            Tom Denley
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: