java.lang.NullPointerException

Jenkins JIRA | Jaroslav Henner | 1 year ago
  1. 0

    After scheduling a job that should run in the container, the jenkins.log starts getting filled with {code} Aug 09, 2015 11:37:22 AM com.nirima.jenkins.plugins.docker.DockerCloud provision INFO: Asked to provision 1 slave(s) for: test Aug 09, 2015 11:37:22 AM com.nirima.jenkins.plugins.docker.DockerCloud provision INFO: Will provision '8880612971b0e41ecc5de6943c9680bb8dc08027dbae4d3a275ac827293cbf2e', for label: 'test', in cloud: 'autodocker' Aug 09, 2015 11:37:22 AM com.nirima.jenkins.plugins.docker.DockerCloud addProvisionedSlave INFO: Provisioning '8880612971b0e41ecc5de6943c9680bb8dc08027dbae4d3a275ac827293cbf2e' number '0' on 'autodocker'; Total containers: '1' Aug 09, 2015 11:37:22 AM hudson.slaves.NodeProvisioner$StandardStrategyImpl apply INFO: Started provisioning Image of 8880612971b0e41ecc5de6943c9680bb8dc08027dbae4d3a275ac827293cbf2e from autodocker with 1 executors. Remaining excess workload: 0 Aug 09, 2015 11:37:22 AM com.nirima.jenkins.plugins.docker.DockerCloud$1 call SEVERE: Error in provisioning; template='DockerTemplate{configVersion=2, labelString='test', launcher=com.nirima.jenkins.plugins.docker.launcher.DockerComputerSSHLauncher@79f5b686, remoteFsMapping='', remoteFs='/home/jenkins', instanceCap=1, mode=NORMAL, retentionStrategy=com.nirima.jenkins.plugins.docker.strategy.DockerOnceRetentionStrategy@4d6c87d2, numExecutors=1, dockerTemplateBase=DockerTemplateBase{image=8880612971b0e41ecc5de6943c9680bb8dc08027dbae4d3a275ac827293cbf2e}, removeVolumes=false, pullStrategy=PULL_NEVER}' for cloud='autodocker' java.lang.NullPointerException at java.util.Objects.requireNonNull(Objects.java:203) at java.util.Arrays$ArrayList.<init>(Arrays.java:3813) at java.util.Arrays.asList(Arrays.java:3800) at com.nirima.jenkins.plugins.docker.DockerCloud$2.apply(DockerCloud.java:308) at com.nirima.jenkins.plugins.docker.DockerCloud$2.apply(DockerCloud.java:305) at shaded.com.google.common.collect.Iterators.indexOf(Iterators.java:778) at shaded.com.google.common.collect.Iterators.any(Iterators.java:684) at shaded.com.google.common.collect.Iterables.any(Iterables.java:623) at com.nirima.jenkins.plugins.docker.DockerCloud.pullImage(DockerCloud.java:305) at com.nirima.jenkins.plugins.docker.DockerCloud.provisionWithWait(DockerCloud.java:334) at com.nirima.jenkins.plugins.docker.DockerCloud.access$000(DockerCloud.java:55) at com.nirima.jenkins.plugins.docker.DockerCloud$1.call(DockerCloud.java:219) at com.nirima.jenkins.plugins.docker.DockerCloud$1.call(DockerCloud.java:216) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code} no container seems to be getting started. Changin the Pull strategy doesn't help.

    Jenkins JIRA | 1 year ago | Jaroslav Henner
    java.lang.NullPointerException
  2. 0

    After scheduling a job that should run in the container, the jenkins.log starts getting filled with {code} Aug 09, 2015 11:37:22 AM com.nirima.jenkins.plugins.docker.DockerCloud provision INFO: Asked to provision 1 slave(s) for: test Aug 09, 2015 11:37:22 AM com.nirima.jenkins.plugins.docker.DockerCloud provision INFO: Will provision '8880612971b0e41ecc5de6943c9680bb8dc08027dbae4d3a275ac827293cbf2e', for label: 'test', in cloud: 'autodocker' Aug 09, 2015 11:37:22 AM com.nirima.jenkins.plugins.docker.DockerCloud addProvisionedSlave INFO: Provisioning '8880612971b0e41ecc5de6943c9680bb8dc08027dbae4d3a275ac827293cbf2e' number '0' on 'autodocker'; Total containers: '1' Aug 09, 2015 11:37:22 AM hudson.slaves.NodeProvisioner$StandardStrategyImpl apply INFO: Started provisioning Image of 8880612971b0e41ecc5de6943c9680bb8dc08027dbae4d3a275ac827293cbf2e from autodocker with 1 executors. Remaining excess workload: 0 Aug 09, 2015 11:37:22 AM com.nirima.jenkins.plugins.docker.DockerCloud$1 call SEVERE: Error in provisioning; template='DockerTemplate{configVersion=2, labelString='test', launcher=com.nirima.jenkins.plugins.docker.launcher.DockerComputerSSHLauncher@79f5b686, remoteFsMapping='', remoteFs='/home/jenkins', instanceCap=1, mode=NORMAL, retentionStrategy=com.nirima.jenkins.plugins.docker.strategy.DockerOnceRetentionStrategy@4d6c87d2, numExecutors=1, dockerTemplateBase=DockerTemplateBase{image=8880612971b0e41ecc5de6943c9680bb8dc08027dbae4d3a275ac827293cbf2e}, removeVolumes=false, pullStrategy=PULL_NEVER}' for cloud='autodocker' java.lang.NullPointerException at java.util.Objects.requireNonNull(Objects.java:203) at java.util.Arrays$ArrayList.<init>(Arrays.java:3813) at java.util.Arrays.asList(Arrays.java:3800) at com.nirima.jenkins.plugins.docker.DockerCloud$2.apply(DockerCloud.java:308) at com.nirima.jenkins.plugins.docker.DockerCloud$2.apply(DockerCloud.java:305) at shaded.com.google.common.collect.Iterators.indexOf(Iterators.java:778) at shaded.com.google.common.collect.Iterators.any(Iterators.java:684) at shaded.com.google.common.collect.Iterables.any(Iterables.java:623) at com.nirima.jenkins.plugins.docker.DockerCloud.pullImage(DockerCloud.java:305) at com.nirima.jenkins.plugins.docker.DockerCloud.provisionWithWait(DockerCloud.java:334) at com.nirima.jenkins.plugins.docker.DockerCloud.access$000(DockerCloud.java:55) at com.nirima.jenkins.plugins.docker.DockerCloud$1.call(DockerCloud.java:219) at com.nirima.jenkins.plugins.docker.DockerCloud$1.call(DockerCloud.java:216) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code} no container seems to be getting started. Changin the Pull strategy doesn't help.

    Jenkins JIRA | 1 year ago | Jaroslav Henner
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. bluebunnty 4 times, last 2 weeks ago
  2. serious2monkeys 6 times, last 3 months ago
  3. mukky 2 times, last 4 months ago
  4. emmanuelstroem 95 times, last 6 months ago
  5. sriharshakiran 1 times, last 7 months ago
9 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at java.util.Objects.requireNonNull()
  2. Java RT
    Arrays.asList
    1. java.util.Objects.requireNonNull(Objects.java:203)
    2. java.util.Arrays$ArrayList.<init>(Arrays.java:3813)
    3. java.util.Arrays.asList(Arrays.java:3800)
    3 frames
  3. com.nirima.jenkins
    DockerCloud$2.apply
    1. com.nirima.jenkins.plugins.docker.DockerCloud$2.apply(DockerCloud.java:308)
    2. com.nirima.jenkins.plugins.docker.DockerCloud$2.apply(DockerCloud.java:305)
    2 frames
  4. shaded.com.google
    Iterables.any
    1. shaded.com.google.common.collect.Iterators.indexOf(Iterators.java:778)
    2. shaded.com.google.common.collect.Iterators.any(Iterators.java:684)
    3. shaded.com.google.common.collect.Iterables.any(Iterables.java:623)
    3 frames
  5. com.nirima.jenkins
    DockerCloud$1.call
    1. com.nirima.jenkins.plugins.docker.DockerCloud.pullImage(DockerCloud.java:305)
    2. com.nirima.jenkins.plugins.docker.DockerCloud.provisionWithWait(DockerCloud.java:334)
    3. com.nirima.jenkins.plugins.docker.DockerCloud.access$000(DockerCloud.java:55)
    4. com.nirima.jenkins.plugins.docker.DockerCloud$1.call(DockerCloud.java:219)
    5. com.nirima.jenkins.plugins.docker.DockerCloud$1.call(DockerCloud.java:216)
    5 frames
  6. jenkins.util
    ContextResettingExecutorService$2.call
    1. jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
    1 frame
  7. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    4. java.lang.Thread.run(Thread.java:745)
    4 frames