Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1121

java.lang.NullPointerException org.apache.maven.plugin.surefire.report.DefaultReporterFactory.mergeFromOtherFactories(DefaultReporterFactory.java:82)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.18
    • 2.18.1
    • None
    • None

    Description

      git clone http://git-wip-us.apache.org/repos/asf/logging-log4j2.git

      Check out Log4j 2 commit d033a71eb0047ca35ec1582f0eab73abe3e04919. This is currently the latest.

      Run: mvn -e clean test

      I get:

      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] Apache Log4j 2 ..................................... SUCCESS [  0.566 s]
      [INFO] Apache Log4j API ................................... SUCCESS [ 26.239 s]
      [INFO] Apache Log4j Core .................................. SUCCESS [05:09 min]
      [INFO] Apache Log4j 1.x Compatibility API ................. SUCCESS [  9.233 s]
      [INFO] Apache Log4j SLF4J Binding ......................... SUCCESS [  8.507 s]
      [INFO] Apache Log4j to SLF4J Adapter ...................... FAILURE [  5.781 s]
      [INFO] Apache Log4j Commons Logging Bridge ................ SKIPPED
      [INFO] Apache Log4j Flume Bridge .......................... SKIPPED
      [INFO] Apache Log4j Web ................................... SKIPPED
      [INFO] Apache Log4j Tag Library ........................... SKIPPED
      [INFO] Apache Log4j JMX GUI ............................... SKIPPED
      [INFO] Apache Log4j Samples ............................... SKIPPED
      [INFO] Apache Log4j Samples: Flume - Common ............... SKIPPED
      [INFO] Apache Log4j Samples: Flume - Remote ............... SKIPPED
      [INFO] Apache Log4j Samples: Flume - Embedded ............. SKIPPED
      [INFO] Apache Log4j BOM ................................... SKIPPED
      [INFO] Apache Log4j NoSQL ................................. SKIPPED
      [INFO] Apache Log4J Performance Tests ..................... SKIPPED
      [INFO] Apache Log4j Streaming Interface ................... SKIPPED
      [INFO] Apache Log4j JUL Adapter ........................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 06:02 min
      [INFO] Finished at: 2014-12-01T10:51:31-05:00
      [INFO] Final Memory: 34M/266M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18:test (default-test) on project log4j-to-slf4j: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18:test failed. NullPointerExc
      eption -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18:test (default-test) on project log4j-to-slf4j: Execution default-test of goal org.apache.maven.plugins:maven-
      surefire-plugin:2.18:test failed.
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
              at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
              at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
              at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18:test failed.
              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:143)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
              ... 19 more
      Caused by: java.lang.NullPointerException
              at org.apache.maven.plugin.surefire.report.DefaultReporterFactory.mergeFromOtherFactories(DefaultReporterFactory.java:82)
              at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:182)
              at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1019)
              at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:853)
              at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:751)
              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
              ... 20 more
      [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/PluginExecutionException
      [ERROR]
      [ERROR] After correcting the problems, you can resume the build with the command
      [ERROR]   mvn <goals> -rf :log4j-to-slf4j
      Mon 12/01/2014-10:51:32.19 C:\vcs\git\apache\logging\logging-log4j2> m32 -version
      

      Attachments

        1. effective.pom
          1.58 MB
          Gary D. Gregory

        Activity

          People

            tibordigana Tibor Digana
            ggregory Gary D. Gregory
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: