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

Surefire plugin produces NullPointerException when using Java 10

    Details

    • Similar Issues:
    • Released As:
      git-client-3.0.0

      Description

      I tried running Maven install using Java 10 on the latest version of the repository 3.0.0-beta6-SNAPSHOT but got a NullPointerException.  I found that version 2.20.1 is reported to have an issue  with 
      org.apache.maven.surefire.shade.org.apache.commons.lang3.SystemUtils.isJavaVersionAtLeast(SystemUtils.java:1626)
      I think git-client-plugin just needs to be upgraded to the fixed version of Surefire: 2.21.0

      maven install -e

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on project git-client: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test failed.: NullPointerException -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on project git-client: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test failed.
      {{ at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)}}
      {{ at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)}}
      {{ at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)}}
      {{ at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)}}
      {{ at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)}}
      {{ at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)}}
      {{ at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)}}
      {{ at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)}}
      {{ at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)}}
      {{ at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)}}
      {{ at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)}}
      {{ at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)}}
      {{ at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)}}
      {{ at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)}}
      {{ at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)}}
      {{ at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)}}
      {{ at java.lang.reflect.Method.invoke (Method.java:564)}}
      {{ 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)}}
      {{ at org.codehaus.classworlds.Launcher.main (Launcher.java:47)}}
      Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test failed.
      {{ at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:148)}}
      {{ at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)}}
      {{ at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)}}
      {{ at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)}}
      {{ at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)}}
      {{ at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)}}
      {{ at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)}}
      {{ at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)}}
      {{ at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)}}
      {{ at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)}}
      {{ at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)}}
      {{ at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)}}
      {{ at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)}}
      {{ at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)}}
      {{ at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)}}
      {{ at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)}}
      {{ at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)}}
      {{ at java.lang.reflect.Method.invoke (Method.java:564)}}
      {{ 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)}}
      {{ at org.codehaus.classworlds.Launcher.main (Launcher.java:47)}}
      Caused by: java.lang.NullPointerException
      {{ at org.apache.maven.surefire.shade.org.apache.commons.lang3.SystemUtils.isJavaVersionAtLeast (SystemUtils.java:1626)}}
      {{ at org.apache.maven.plugin.surefire.AbstractSurefireMojo.getEffectiveJvm (AbstractSurefireMojo.java:2107)}}
      {{ at org.apache.maven.plugin.surefire.AbstractSurefireMojo.getForkConfiguration (AbstractSurefireMojo.java:1976)}}
      {{ at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider (AbstractSurefireMojo.java:1111)}}
      {{ at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked (AbstractSurefireMojo.java:954)}}
      {{ at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute (AbstractSurefireMojo.java:832)}}
      {{ at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)}}
      {{ at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)}}
      {{ at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)}}
      {{ at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)}}
      {{ at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)}}
      {{ at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)}}
      {{ at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)}}
      {{ at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)}}
      {{ at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)}}
      {{ at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)}}
      {{ at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)}}
      {{ at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)}}
      {{ at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)}}
      {{ at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)}}
      {{ at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)}}
      {{ at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)}}
      {{ at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)}}
      {{ at java.lang.reflect.Method.invoke (Method.java:564)}}
      {{ 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)}}
      {{ at org.codehaus.classworlds.Launcher.main (Launcher.java:47)}}

       

        Attachments

          Issue Links

            Activity

            aakoch Adam Koch created issue -
            markewaite Mark Waite made changes -
            Field Original Value New Value
            Assignee Mark Waite [ markewaite ]
            oleg_nenashev Oleg Nenashev made changes -
            Labels git-client plugin git-client java10 plugin
            oleg_nenashev Oleg Nenashev made changes -
            Epic Link JENKINS-40689 [ 177392 ]
            markewaite Mark Waite made changes -
            Status Open [ 1 ] Fixed but Unreleased [ 10203 ]
            Resolution Fixed [ 1 ]
            oleg_nenashev Oleg Nenashev made changes -
            Labels git-client java10 plugin git-client java10 java11 plugin
            renescheibe René Scheibe made changes -
            Remote Link This issue links to "git-client-plugin pr#355 (Web Link)" [ 24204 ]
            renescheibe René Scheibe made changes -
            Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]
            Released As git-client-3.0.0
            markewaite Mark Waite made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

              People

              • Assignee:
                Unassigned
                Reporter:
                aakoch Adam Koch
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: