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

NPE after update to 508.vc5478ef36921

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • s3-plugin
    • None
    • Linux

      After update of the S3 Plugin to version 508.vc5478ef36921 it stopped working completely. Builds fail with a NullPointerException:

      Publish artifacts to S3 Bucket Build is still running
      Publish artifacts to S3 Bucket Using S3 profile: JenkinsBucket
      Publish artifacts to S3 Bucket bucket=foo/s3_test, file=bar.txt region=eu-central-1, will be uploaded from slave=true managed=false , server encryption false
      ERROR: Failed to upload files
      java.io.IOException: Call fails for Destination [bucketName=foo, objectName=s3_test/bar.txt]: java.lang.NullPointerException:: Failed after 5 tries.
      	at PluginClassLoader for s3//hudson.plugins.s3.S3Profile.repeat(S3Profile.java:277)
      	at PluginClassLoader for s3//hudson.plugins.s3.S3Profile.upload(S3Profile.java:167)
      	at PluginClassLoader for s3//hudson.plugins.s3.S3BucketPublisher.perform(S3BucketPublisher.java:327)
      	at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
      	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80)
      	at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:33)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:767)
      	at hudson.model.Build$BuildExecution.post2(Build.java:179)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:711)
      	at hudson.model.Run.execute(Run.java:1863)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
      	at hudson.model.ResourceController.execute(ResourceController.java:101)
      	at hudson.model.Executor.run(Executor.java:446)
      Caused by: java.lang.NullPointerException
      	at PluginClassLoader for s3//hudson.plugins.s3.ClientHelper.shouldUseProxy(ClientHelper.java:172)
      	at PluginClassLoader for s3//hudson.plugins.s3.ClientHelper.getAsyncHttpClient(ClientHelper.java:155)
      	at PluginClassLoader for s3//hudson.plugins.s3.ClientHelper.createAsyncClient(ClientHelper.java:63)
      	at PluginClassLoader for s3//hudson.plugins.s3.callable.S3Callable.getTransferManager(S3Callable.java:47)
      	at PluginClassLoader for s3//hudson.plugins.s3.callable.S3UploadCallable.invoke(S3UploadCallable.java:27)
      	at PluginClassLoader for s3//hudson.plugins.s3.callable.S3BaseUploadCallable.invoke(S3BaseUploadCallable.java:43)
      	at PluginClassLoader for s3//hudson.plugins.s3.callable.S3BaseUploadCallable.invoke(S3BaseUploadCallable.java:20)
      	at Jenkins v2.504.3//hudson.FilePath$FileCallableWrapper.call(FilePath.java:3593)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:225)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:50)
      	at hudson.remoting.Request$2.run(Request.java:391)
      	at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:81)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      	at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:140)
      	at java.base/java.lang.Thread.run(Thread.java:840)
      	Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from jenkins.example.org/10.11.12.13:48768
      		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1916)
      		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:384)
      		at hudson.remoting.Channel.call(Channel.java:1108)
      		at hudson.FilePath.act(FilePath.java:1207)
      		at hudson.FilePath.act(FilePath.java:1196)
      		at PluginClassLoader for s3//hudson.plugins.s3.S3Profile.invoke(S3Profile.java:205)
      		at PluginClassLoader for s3//hudson.plugins.s3.S3Profile$1.call(S3Profile.java:170)
      		at PluginClassLoader for s3//hudson.plugins.s3.S3Profile$1.call(S3Profile.java:167)
      		at PluginClassLoader for s3//hudson.plugins.s3.S3Profile.repeat(S3Profile.java:273)
      		at PluginClassLoader for s3//hudson.plugins.s3.S3Profile.upload(S3Profile.java:167)
      		at PluginClassLoader for s3//hudson.plugins.s3.S3BucketPublisher.perform(S3BucketPublisher.java:327)
      		at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
      		at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80)
      		at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:33)
      		at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
      		at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:767)
      		at hudson.model.Build$BuildExecution.post2(Build.java:179)
      		at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:711)
      		at hudson.model.Run.execute(Run.java:1863)
      		at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
      		at hudson.model.ResourceController.execute(ResourceController.java:101)
      		at hudson.model.Executor.run(Executor.java:446)
      Build step 'Publish artifacts to S3 Bucket' changed build result to UNSTABLE
      

      The same works fine with 498.v4c32ea_de55c2.

            jimilian Alexander A
            dhs Dirk Heinrichs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: