Uploaded image for project: 'Maven Enforcer Plugin'
  1. Maven Enforcer Plugin
  2. MENFORCER-367

Null Pointer Exception Analyzing org.bouncycastle:bcprov-jdk15on:1.66

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Resolved
    • 3.0.0-M3
    • None
    • Plugin
    • None

    Description

      When I try to upgrade from 1.65.01 to 1.66 of this library:

                      <dependency>

                               <groupId>org.bouncycastle</groupId>

                               <artifactId>bcprov-jdk15on</artifactId>

                               <!-- version>1.65.01</version -->

                               <version>1.66</version>

                       </dependency>

      I get the following NullPointerException:

      [*ERROR*] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce (enforce-bytecode-version) on project benchmark: Execution enforce-bytecode-version of goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce failed.: NullPointerException -> [Help 1]

      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce (enforce-bytecode-version) on project benchmark: Execution enforce-bytecode-version of goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce 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:956)

          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)

          at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)

          at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke (Method.java:498)

          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 enforce-bytecode-version of goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce 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:956)

          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)

          at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)

          at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke (Method.java:498)

          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: java.lang.NullPointerException

          at org.apache.maven.plugins.enforcer.EnforceBytecodeVersion.isBadArtifact (EnforceBytecodeVersion.java:336)

          at org.apache.maven.plugins.enforcer.EnforceBytecodeVersion.checkDependencies (EnforceBytecodeVersion.java:252)

          at org.apache.maven.plugins.enforcer.EnforceBytecodeVersion.handleArtifacts (EnforceBytecodeVersion.java:171)

          at org.apache.maven.plugins.enforcer.AbstractResolveDependencies.execute (AbstractResolveDependencies.java:77)

          at org.apache.maven.plugins.enforcer.EnforceMojo.execute (EnforceMojo.java:205)

          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:956)

          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)

          at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)

          at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke (Method.java:498)

          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)

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            davewichers Dave Wichers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: