Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-27415

Junit plugin fails to parse output, all tests are marked as failed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • junit-plugin
    • None
    • jenkins-1599, junit plugin 1.4

      It works when downgrading the junit plugin to 1.2

      Jobs fail all tests and are always unstable, and this error shows up when parsing the results:

      Failed to read test report file /var/lib/jenkins/workspace/MH5_Pipeline_02_Unit_tests/reports/client/unit/TEST-Firefox_360_Linux.nokia.mh5.adapters.IpLookup.xml
      org.dom4j.DocumentException: Could not load any resource bundle by com.sun.org.apache.xerces.internal.impl.msg.SAX
      Messages Nested exception: Could not load any resource bundle by com.sun.org.apache.xerces.internal.impl.msg.SAXMe
      ssages
      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:123)
      at hudson.tasks.junit.TestResult.parse(TestResult.java:282)
      at hudson.tasks.junit.TestResult.parsePossiblyEmpty(TestResult.java:228)
      at hudson.tasks.junit.TestResult.parse(TestResult.java:163)
      at hudson.tasks.junit.TestResult.parse(TestResult.java:146)
      at hudson.tasks.junit.TestResult.<init>(TestResult.java:122)
      at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:119)
      at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:93)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2688)
      at hudson.remoting.UserRequest.perform(UserRequest.java:121)
      at hudson.remoting.UserRequest.perform(UserRequest.java:49)
      at hudson.remoting.Request$2.run(Request.java:324)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
      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:174)
      at com.sun.org.apache.xerces.internal.utils.SecuritySupport$7.run(SecuritySupport.java:166)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.org.apache.xerces.internal.utils.SecuritySupport.getResourceBundle(SecuritySupport.java:166)
      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:2062)
      at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.setProperty(SAXParserImpl.java:579)
      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)
      ... 18 more
      Nested exception:
      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:174)
      at com.sun.org.apache.xerces.internal.utils.SecuritySupport$7.run(SecuritySupport.java:166)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.org.apache.xerces.internal.utils.SecuritySupport.getResourceBundle(SecuritySupport.java:166)
      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:2062)
      at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.setProperty(SAXParserImpl.java:579)
      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)
      at org.dom4j.io.SAXReader.read(SAXReader.java:264)
      at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:123)
      at hudson.tasks.junit.TestResult.parse(TestResult.java:282)
      at hudson.tasks.junit.TestResult.parsePossiblyEmpty(TestResult.java:228)
      at hudson.tasks.junit.TestResult.parse(TestResult.java:163)
      at hudson.tasks.junit.TestResult.parse(TestResult.java:146)
      at hudson.tasks.junit.TestResult.<init>(TestResult.java:122)
      at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:119)
      at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:93)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2688)
      at hudson.remoting.UserRequest.perform(UserRequest.java:121)
      at hudson.remoting.UserRequest.perform(UserRequest.java:49)
      at hudson.remoting.Request$2.run(Request.java:324)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)

            Unassigned Unassigned
            alien_ Cristian Magherusan-Stanciu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: