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

Hudson failing with NPE when trying to read surefire files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • maven-plugin
    • None
    • Platform: All, OS: All

      I am using testng-5.7 and surefire-2.4.2 and I have some tests that use testng's
      enabled=false and also using the execludedGroups configuration to skip broken
      tests. Here is the stacktrace:

      [HUDSON] Recording test results
      [HUDSON] Archiving
      /usr/local/hudson/workspace/jobs/messaging-3.3/workspace/messaging/test/test-harness/test-messaging-bundle/pom.xml
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Internal error in the plugin manager executing goal
      'org.apache.maven.plugins:maven-surefire-plugin:2.4.2:test': Failed to read
      /usr/local/hudson/workspace/jobs/messaging-3.3/workspace/messaging/test/test-harness/test-messaging-bundle/target/surefire-reports/testng-failed.xml
      [INFO] ------------------------------------------------------------------------
      [DEBUG] Trace
      org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the
      plugin manager executing goal
      'org.apache.maven.plugins:maven-surefire-plugin:2.4.2:test': Failed to read
      /usr/local/hudson/workspace/jobs/messaging-3.3/workspace/messaging/test/test-harness/test-messaging-bundle/target/surefire-reports/testng-failed.xml
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:543)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
      at
      org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:42)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at hudson.maven.agent.Main.launch(Main.java:97)
      at hudson.maven.MavenBuilder.call(MavenBuilder.java:129)
      at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:446)
      at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:392)
      at hudson.remoting.UserRequest.perform(UserRequest.java:69)
      at hudson.remoting.UserRequest.perform(UserRequest.java:23)
      at hudson.remoting.Request$2.run(Request.java:200)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      at java.util.concurrent.FutureTask.run(FutureTask.java:123)
      at
      java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: org.apache.maven.plugin.PluginManagerException: Failed to read
      /usr/local/hudson/workspace/jobs/messaging-3.3/workspace/messaging/test/test-harness/test-messaging-bundle/target/surefire-reports/testng-failed.xml
      at
      hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:148)
      at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
      ... 28 more
      Caused by: hudson.util.IOException2: Failed to read
      /usr/local/hudson/workspace/jobs/messaging-3.3/workspace/messaging/test/test-harness/test-messaging-bundle/target/surefire-reports/testng-failed.xml
      at hudson.tasks.junit.TestResult.parse(TestResult.java:134)
      at hudson.tasks.junit.TestResult.parse(TestResult.java:95)
      at hudson.tasks.junit.TestResult.<init>(TestResult.java:72)
      at hudson.maven.reporters.SurefireArchiver.postExecute(SurefireArchiver.java:71)
      at
      hudson.maven.MavenModuleSetBuild$Builder.postExecute(MavenModuleSetBuild.java:507)
      at hudson.maven.MavenBuilder$Adapter.postExecute(MavenBuilder.java:250)
      at
      hudson.maven.agent.PluginManagerInterceptor$1MojoConfig.callPost(PluginManagerInterceptor.java:104)
      at
      hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:136)
      ... 29 more
      Caused by: org.dom4j.DocumentException: null Nested exception: null
      at org.dom4j.io.SAXReader.read(SAXReader.java:484)
      at org.dom4j.io.SAXReader.read(SAXReader.java:264)
      at hudson.tasks.junit.SuiteResult.<init>(SuiteResult.java:50)
      at hudson.tasks.junit.TestResult.parse(TestResult.java:124)
      ... 36 more
      Caused by: java.lang.NullPointerException
      at hudson.tasks.junit.XMLEntityResolver.resolveEntity(XMLEntityResolver.java:40)
      at
      com.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEntity(EntityResolverWrapper.java:148)
      at
      com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:701)
      at
      com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:1019)
      at
      com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
      at
      com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
      at
      com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
      at
      com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
      at org.dom4j.io.SAXReader.read(SAXReader.java:465)
      ... 39 more

            Unassigned Unassigned
            jasonchaffee Jason Chaffee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: