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

NPE when collection JUnit test results

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • maven-plugin
    • None
    • 1.544

      I was on 1.544, I upgraded to 1.546 found some blocker (see JENKINS-21250) and rolled-back to 1.546 and then it started failing (I don't remember it failing before).

      The error I get now is:

      ...
      [INFO] ------------------------------------------------------------------------
      [INFO] Building XWiki Commons - XML 5.4-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO] 
      [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ xwiki-commons-xml ---
      [INFO] Deleting /home/hudsonagent/hudson_root/workspace/xwiki-commons/xwiki-commons-core/xwiki-commons-xml/target
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-plugins) @ xwiki-commons-xml ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-jcl-log4j-isolation) @ xwiki-commons-xml ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-commons-lang3) @ xwiki-commons-xml ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-upper-bounds) @ xwiki-commons-xml ---
      [INFO] Skipping Rule Enforcement.
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-no-legacy-dependencies) @ xwiki-commons-xml ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-platform-rendering-isolation) @ xwiki-commons-xml ---
      [INFO] 
      [INFO] --- maven-enforcer-plugin:1.3.1:enforce (check-dependency-version) @ xwiki-commons-xml ---
      [INFO] 
      [INFO] --- maven-remote-resources-plugin:1.4:process (xwiki-license-resources) @ xwiki-commons-xml ---
      [INFO] 
      [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ xwiki-commons-xml ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 6 resources
      [INFO] Copying 2 resources
      [INFO] 
      [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ xwiki-commons-xml ---
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 25 source files to /home/hudsonagent/hudson_root/workspace/xwiki-commons/xwiki-commons-core/xwiki-commons-xml/target/classes
      [INFO] 
      [INFO] --- maven-bundle-plugin:2.3.7:manifest (bundle-manifest) @ xwiki-commons-xml ---
      [INFO] 
      [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ xwiki-commons-xml ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory /home/hudsonagent/hudson_root/workspace/xwiki-commons/xwiki-commons-core/xwiki-commons-xml/src/test/resources
      [INFO] Copying 2 resources
      [INFO] 
      [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ xwiki-commons-xml ---
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 4 source files to /home/hudsonagent/hudson_root/workspace/xwiki-commons/xwiki-commons-core/xwiki-commons-xml/target/test-classes
      [INFO] 
      [INFO] --- maven-surefire-plugin:2.16:test (default-test) @ xwiki-commons-xml ---
      [INFO] Surefire report directory: /home/hudsonagent/hudson_root/workspace/xwiki-commons/xwiki-commons-core/xwiki-commons-xml/target/surefire-reports
      
      -------------------------------------------------------
       T E S T S
      -------------------------------------------------------
      Running org.xwiki.xml.XMLUtilsTest
      Tests run: 21, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.246 sec - in org.xwiki.xml.XMLUtilsTest
      Running org.xwiki.xml.html.HTMLUtilsTest
      Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.102 sec - in org.xwiki.xml.html.HTMLUtilsTest
      Running org.xwiki.xml.internal.html.DefaultHTMLCleanerTest
      Tests run: 14, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.252 sec - in org.xwiki.xml.internal.html.DefaultHTMLCleanerTest
      
      Results :
      
      Tests run: 37, Failures: 0, Errors: 0, Skipped: 1
      
      [JENKINS] Recording test results
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO] 
      [INFO] XWiki Commons - Parent POM ........................ SUCCESS [3.766s]
      [INFO] XWiki Commons - Tools - Parent POM ................ SUCCESS [1.390s]
      [INFO] XWiki Commons - Tools - License Resources ......... SUCCESS [2.547s]
      [INFO] XWiki Commons - Tools - Enforcers ................. SUCCESS [1.442s]
      [INFO] XWiki Commons - Tools - Banned Dependencies Enforcer  SUCCESS [2.639s]
      [INFO] XWiki Commons - Root POM .......................... SUCCESS [1.574s]
      [INFO] XWiki Commons - Tools - Verification Resources .... SUCCESS [2.675s]
      [INFO] XWiki Commons - Core - Parent POM ................. SUCCESS [2.909s]
      [INFO] XWiki Commons - Stability ......................... SUCCESS [3.231s]
      [INFO] XWiki Commons - Test Framework - Parent POM ....... SUCCESS [2.317s]
      [INFO] XWiki Commons - Test Framework - Simple ........... SUCCESS [3.510s]
      [INFO] XWiki Commons - Text .............................. SUCCESS [4.185s]
      [INFO] XWiki Commons - Component - Parent POM ............ SUCCESS [2.311s]
      [INFO] XWiki Commons - Component - API ................... SUCCESS [4.083s]
      [INFO] XWiki Commons - ClassLoader - Parent POM .......... SUCCESS [2.277s]
      [INFO] XWiki Commons - ClassLoader - API ................. SUCCESS [3.416s]
      [INFO] XWiki Commons - ClassLoader - Protocols - Parent POM  SUCCESS [2.333s]
      [INFO] XWiki Commons - ClassLoader - Protocols - JAR ..... SUCCESS [3.206s]
      [INFO] XWiki Commons - Observation - Parent POM .......... SUCCESS [2.281s]
      [INFO] XWiki Commons - Observation - API ................. SUCCESS [3.506s]
      [INFO] XWiki Commons - Component - Observation ........... SUCCESS [3.170s]
      [INFO] XWiki Commons - Component - Default Implementation  SUCCESS [4.279s]
      [INFO] XWiki Commons - Context ........................... SUCCESS [3.797s]
      [INFO] XWiki Commons - Script ............................ SUCCESS [3.391s]
      [INFO] XWiki Commons - Configuration - Parent POM ........ SUCCESS [2.281s]
      [INFO] XWiki Commons - Configuration - API ............... SUCCESS [3.208s]
      [INFO] XWiki Commons - Test Framework - Component ........ SUCCESS [3.563s]
      [INFO] XWiki Commons - Component - Component Archetype ... SUCCESS [7.298s]
      [INFO] XWiki Commons - Environment - Parent POM .......... SUCCESS [2.344s]
      [INFO] XWiki Commons - Environment - API ................. SUCCESS [3.188s]
      [INFO] XWiki Commons - Environment - Common .............. SUCCESS [3.318s]
      [INFO] XWiki Commons - Environment - Standard ............ SUCCESS [3.914s]
      [INFO] XWiki Commons - Environment - Servlet ............. SUCCESS [5.733s]
      [INFO] XWiki Commons - Properties ........................ SUCCESS [4.444s]
      [INFO] XWiki Commons - Loggging .......................... SUCCESS [2.348s]
      [INFO] XWiki Commons - Logging - API ..................... SUCCESS [3.777s]
      [INFO] XWiki Commons - Observation - Local ............... SUCCESS [3.814s]
      [INFO] XWiki Commons - Job ............................... SUCCESS [4.460s]
      [INFO] XWiki Commons - Logging - Logback ................. SUCCESS [4.680s]
      [INFO] XWiki Commons - Extension - Parent POM ............ SUCCESS [2.412s]
      [INFO] XWiki Commons - Extension - API ................... SUCCESS [11.302s]
      [INFO] XWiki Commons - Extension - Handler - Parent POM .. SUCCESS [2.256s]
      [INFO] XWiki Commons - Extension - Handler - JAR ......... SUCCESS [6.727s]
      [INFO] XWiki Commons - Extension - Repository - Parent POM  SUCCESS [2.375s]
      [INFO] XWiki Commons - Extension - Repository - HTTP ..... SUCCESS [3.451s]
      [INFO] XWiki Commons - Extension - Repository - Maven .... SUCCESS [7.266s]
      [INFO] XWiki Commons - Repository ........................ SUCCESS [2.249s]
      [INFO] XWiki Commons - Repository - Model ................ SUCCESS [3.935s]
      [INFO] XWiki Commons - Repository - API .................. SUCCESS [3.304s]
      [INFO] XWiki Commons - Extension - Repository - XWiki .... SUCCESS [3.977s]
      [INFO] XWiki Commons - Filter - Parent POM ............... SUCCESS [2.334s]
      [INFO] XWiki Commons - Filter - API ...................... SUCCESS [4.584s]
      [INFO] XWiki Commons - XML ............................... FAILURE [1.669s]
      [INFO] XWiki Commons - Filter - XML ...................... SKIPPED
      [INFO] XWiki Commons - Groovy ............................ SKIPPED
      [INFO] XWiki Commons - Management ........................ SKIPPED
      [INFO] XWiki Commons - Velocity .......................... SKIPPED
      [INFO] XWiki Commons - Diff .............................. SKIPPED
      [INFO] XWiki Commons - Diff API .......................... SKIPPED
      [INFO] XWiki Commons - Diff Display API .................. SKIPPED
      [INFO] XWiki Commons - Diff Script API ................... SKIPPED
      [INFO] XWiki Commons - Legacy ............................ SKIPPED
      [INFO] XWiki Commons - Legacy - Component - Parent POM ... SKIPPED
      [INFO] XWiki Commons - Legacy - Component - API .......... SKIPPED
      [INFO] XWiki Commons - Legacy - Component - Default Implementation  SKIPPED
      [INFO] XWiki Commons - Legacy - Configuration ............ SKIPPED
      [INFO] XWiki Commons - Properties ........................ SKIPPED
      [INFO] XWiki Commons - Tools - XAR Tools ................. SKIPPED
      [INFO] XWiki Commons - Tools - XAR Tools - XAR Plugin .... SKIPPED
      [INFO] XWiki Commons - Tools - XAR Tools - XAR Handlers .. SKIPPED
      [INFO] XWiki Commons - Tools - XAR Tools - Functional Tests  SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 6:36.068s
      [INFO] Finished at: Thu Jan 09 15:01:41 CET 2014
      [INFO] Final Memory: 76M/252M
      [INFO] ------------------------------------------------------------------------
      Waiting for Jenkins to finish collecting data
      [ERROR] Internal error: java.lang.NullPointerException -> [Help 1]
      org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException
      	at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
      	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      	at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:117)
      	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:597)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
      	at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:178)
      	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:597)
      	at hudson.maven.Maven3Builder.call(Maven3Builder.java:134)
      	at hudson.maven.Maven3Builder.call(Maven3Builder.java:69)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      	at hudson.remoting.Request$2.run(Request.java:328)
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      	at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.NullPointerException
      	at hudson.tasks.junit.TestResultAction.getDataFile(TestResultAction.java:91)
      	at hudson.tasks.junit.TestResultAction.load(TestResultAction.java:147)
      	at hudson.tasks.junit.TestResultAction.getResult(TestResultAction.java:97)
      	at hudson.tasks.junit.TestResultAction.getResult(TestResultAction.java:55)
      	at hudson.tasks.test.AbstractTestResultAction.findCorrespondingResult(AbstractTestResultAction.java:183)
      	at hudson.tasks.test.TestResult.getPreviousResult(TestResult.java:143)
      	at hudson.tasks.junit.SuiteResult.getPreviousResult(SuiteResult.java:283)
      	at hudson.tasks.junit.CaseResult.getPreviousResult(CaseResult.java:440)
      	at hudson.tasks.junit.CaseResult.freeze(CaseResult.java:569)
      	at hudson.tasks.junit.SuiteResult.freeze(SuiteResult.java:325)
      	at hudson.tasks.junit.TestResult.freeze(TestResult.java:618)
      	at hudson.tasks.junit.TestResultAction.setResult(TestResultAction.java:74)
      	at hudson.tasks.junit.TestResultAction.<init>(TestResultAction.java:67)
      	at hudson.maven.reporters.SurefireReport.<init>(SurefireReport.java:45)
      	at hudson.maven.reporters.SurefireArchiver$2.call(SurefireArchiver.java:166)
      	at hudson.maven.reporters.SurefireArchiver$2.call(SurefireArchiver.java:160)
      	at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:413)
      	at hudson.maven.MavenBuild$ProxyImpl2.execute(MavenBuild.java:530)
      	at sun.reflect.GeneratedMethodAccessor264.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at hudson.model.Executor$1.call(Executor.java:559)
      	at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23)
      	at $Proxy52.execute(Unknown Source)
      	at sun.reflect.GeneratedMethodAccessor269.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:299)
      	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:280)
      	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:239)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      [JENKINS] Archiving /home/hudsonagent/hudson_root/workspace/xwiki-commons/xwiki-commons-core/xwiki-commons-configuration/xwiki-commons-configuration-api/pom.xml to org.xwiki.commons/xwiki-commons-configuration-api/5.4-SNAPSHOT/xwiki-commons-configuration-api-5.4-SNAPSHOT.pom
      	at hudson.remoting.Request$2.run(Request.java:328)
      [JENKINS] Archiving /home/hudsonagent/hudson_root/workspace/xwiki-commons/xwiki-commons-core/xwiki-commons-configuration/xwiki-commons-configuration-api/target/xwiki-commons-configuration-api-5.4-SNAPSHOT.jar to org.xwiki.commons/xwiki-commons-configuration-api/5.4-20140109.135836-13/xwiki-commons-configuration-api-5.4-20140109.135836-13.jar
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:619)
      [ERROR] 
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException
      ...
      

      See http://ci.xwiki.org/job/xwiki-commons/1175/console

      Thanks

            jglick Jesse Glick
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: