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

NullPointerException with Maven 3.9.0

XMLWordPrintable

      All our jobs works fine with maven 3.8.5.

      After upgrading to maven 3.9.0, all jobs fail with the same exception:

      (build in command line works fine)

       

      [INFO] Scanning for projects...
      [DEBUG] Using mirror artifactory-mirror (xxx) for artifactory-central (xxx).
      [DEBUG] Creating adapter using nameMapper 'gav' and factory 'rwlock-local'
      [DEBUG] Enforcing Artifactory artifact resolver
      [DEBUG] [buildinfo] Resolved artifact: xxx from: artifactory-mirror (xxx) Context is: project
      [DEBUG] Using mirror artifactory-mirror (xxx) for central (https://repo.maven.apache.org/maven2).
      [DEBUG] [buildinfo] Properties file '/data/jenkins/workspace/project/MvnBuild_myproject@tmp/artifactory/buildInfo6709233135456604253.properties' retrieved from 'System.getProperty(buildInfoConfig.propertiesFile)'
      [ERROR] Internal error: java.lang.NullPointerException: Cannot invoke "org.eclipse.aether.impl.RemoteRepositoryFilterManager.getRemoteRepositoryFilter(org.eclipse.aether.RepositorySystemSession)" because "this.remoteRepositoryFilterManager" is null -> [Help 1]
      org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException: Cannot invoke "org.eclipse.aether.impl.RemoteRepositoryFilterManager.getRemoteRepositoryFilter(org.eclipse.aether.RepositorySystemSession)" because "this.remoteRepositoryFilterManager" is null
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:108)
          at org.jvnet.hudson.maven3.launcher.Maven35Launcher.main (Maven35Launcher.java:138)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke (Method.java:568)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
          at jenkins.maven3.agent.Maven35Main.launch (Maven35Main.java:179)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke (Method.java:568)
          at hudson.maven.Maven3Builder.call (Maven3Builder.java:139)
          at hudson.maven.Maven3Builder.call (Maven3Builder.java:70)
          at hudson.remoting.UserRequest.perform (UserRequest.java:211)
          at hudson.remoting.UserRequest.perform (UserRequest.java:54)
          at hudson.remoting.Request$2.run (Request.java:376)
          at hudson.remoting.InterceptingExecutorService.lambda$wrap$0 (InterceptingExecutorService.java:78)
          at java.util.concurrent.FutureTask.run (FutureTask.java:264)
          at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1136)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635)
          at java.lang.Thread.run (Thread.java:833)
      Caused by: java.lang.NullPointerException: Cannot invoke "org.eclipse.aether.impl.RemoteRepositoryFilterManager.getRemoteRepositoryFilter(org.eclipse.aether.RepositorySystemSession)" because "this.remoteRepositoryFilterManager" is null
          at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:296)
          at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts (DefaultArtifactResolver.java:278)
          at org.jfrog.build.extractor.maven.resolver.ArtifactoryEclipseArtifactResolver.resolveArtifacts (ArtifactoryEclipseArtifactResolver.java:56)
          at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact (DefaultArtifactResolver.java:255)
          at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom (DefaultArtifactDescriptorReader.java:228)
          at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor (DefaultArtifactDescriptorReader.java:169)
          at org.eclipse.aether.internal.impl.collect.DependencyCollectorDelegate.collectDependencies (DependencyCollectorDelegate.java:197)
          at org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector.collectDependencies (DefaultDependencyCollector.java:95)
          at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies (DefaultRepositorySystem.java:327)
          at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolveInternal (DefaultPluginDependenciesResolver.java:205)
          at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve (DefaultPluginDependenciesResolver.java:158)
          at org.apache.maven.plugin.internal.DefaultMavenPluginManager.resolveExtensionArtifacts (DefaultMavenPluginManager.java:816)
          at org.apache.maven.plugin.internal.DefaultMavenPluginManager.setupExtensionsRealm (DefaultMavenPluginManager.java:762)
          at org.jfrog.build.extractor.maven.resolver.ArtifactoryEclipsePluginManager.setupExtensionsRealm (ArtifactoryEclipsePluginManager.java:29)
          at org.apache.maven.project.DefaultProjectBuildingHelper.createProjectRealm (DefaultProjectBuildingHelper.java:177)
          at org.apache.maven.project.DefaultModelBuildingListener.buildExtensionsAssembled (DefaultModelBuildingListener.java:92)
          at org.apache.maven.model.building.ModelBuildingEventCatapult$1.fire (ModelBuildingEventCatapult.java:40)
          at org.apache.maven.model.building.DefaultModelBuilder.fireEvent (DefaultModelBuilder.java:1269)
          at org.apache.maven.model.building.DefaultModelBuilder.build (DefaultModelBuilder.java:474)
          at org.apache.maven.model.building.DefaultModelBuilder.build (DefaultModelBuilder.java:455)
          at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:611)
          at org.apache.maven.project.DefaultProjectBuilder.build (DefaultProjectBuilder.java:374)
          at org.jfrog.build.extractor.maven.ArtifactoryProjectBuilder.build (ArtifactoryProjectBuilder.java:34)
          at org.apache.maven.graph.DefaultGraphBuilder.collectProjects (DefaultGraphBuilder.java:349)
          at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor (DefaultGraphBuilder.java:340)
          at org.apache.maven.graph.DefaultGraphBuilder.build (DefaultGraphBuilder.java:76)
          at org.apache.maven.DefaultMaven.buildGraph (DefaultMaven.java:453)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:196)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:172)
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:100)
          at org.jvnet.hudson.maven3.launcher.Maven35Launcher.main (Maven35Launcher.java:138)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke (Method.java:568)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
          at jenkins.maven3.agent.Maven35Main.launch (Maven35Main.java:179)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke (Method.java:568)
          at hudson.maven.Maven3Builder.call (Maven3Builder.java:139)
          at hudson.maven.Maven3Builder.call (Maven3Builder.java:70)
          at hudson.remoting.UserRequest.perform (UserRequest.java:211)
          at hudson.remoting.UserRequest.perform (UserRequest.java:54)
          at hudson.remoting.Request$2.run (Request.java:376)
          at hudson.remoting.InterceptingExecutorService.lambda$wrap$0 (InterceptingExecutorService.java:78)
          at java.util.concurrent.FutureTask.run (FutureTask.java:264)
          at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1136)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635)
          at java.lang.Thread.run (Thread.java:833)

            yahaviz Yahav Itzhak
            ol Olivier Lambert
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: