java.lang.NullPointerException

GitHub | fraz3alpha | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  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 | 2 years ago | Jaroslav Henner
    java.lang.NullPointerException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 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 | 2 years ago | Jaroslav Henner
    java.lang.NullPointerException
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.Arrays$ArrayList.<init>()
  2. Java RT
    Arrays.asList
    1. java.util.Arrays$ArrayList.<init>(Arrays.java:2853)
    2. java.util.Arrays.asList(Arrays.java:2839)
    2 frames
  3. com.nirima.jenkins
    DockerCloud$2.apply
    1. com.nirima.jenkins.plugins.docker.DockerCloud$2.apply(DockerCloud.java:331)
    2. com.nirima.jenkins.plugins.docker.DockerCloud$2.apply(DockerCloud.java:328)
    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.provisionWithWait
    1. com.nirima.jenkins.plugins.docker.DockerCloud.pullImage(DockerCloud.java:328)
    2. com.nirima.jenkins.plugins.docker.DockerCloud.provisionWithWait(DockerCloud.java:363)
    2 frames