java.util.concurrent.ExecutionException: java.lang.NullPointerException

Jenkins JIRA | Hugo Trippaers | 3 years ago
  1. 0

    When creating a slave machine i'm seeing this NPE regularly. It causes the creation of the slave to fail, but the machine is still provisioned in cloudstack. I would have expected that the machine would be detroyed once a part of the provisioning fails. Installed version of jenkins-jclouds is 3.2.1, Jenkins is at 1.508 1 error[s] Node failures: 0 error[s] at com.google.common.base.Throwables.propagate(Throwables.java:160) at jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.destroyBadNodesAndPropagate(JCloudsSlaveTemplate.java:258) at jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.get(JCloudsSlaveTemplate.java:248) at jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.provisionSlave(JCloudsSlaveTemplate.java:160) at jenkins.plugins.jclouds.compute.JCloudsCloud$2.call(JCloudsCloud.java:216) at jenkins.plugins.jclouds.compute.JCloudsCloud$2.call(JCloudsCloud.java:213) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: org.jclouds.compute.RunNodesException: error running 1 node group(cloudstack-buildslave-centos6) location(2) image(b1b99bde-480d-49fa-ac64-f7fba6445cc7) size(f351015a-cd67-4680-a8c4-5dafe0c4ab04) options({taskName=bootstrap, scriptPresent=true , userMetadata={Name=cloudstack-buildslave-centos6}}) Execution failures: 1) ExecutionException on cloudstack-buildslave-centos6-ad8: java.util.concurrent.ExecutionException: java.lang.NullPointerException at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:289) at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:276) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:111) at org.jclouds.concurrent.FutureIterables$1.run(FutureIterables.java:134) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.NullPointerException at org.jclouds.cloudstack.predicates.PublicIPAddressPredicates$AssociatedWithNetwork.apply(PublicIPAddressPredicates.java:43) at org.jclouds.cloudstack.predicates.PublicIPAddressPredicates$AssociatedWithNetwork.apply(PublicIPAddressPredicates.java:34) at com.google.common.base.Predicates$AndPredicate.apply(Predicates.java:342) at com.google.common.collect.Iterators$8.computeNext(Iterators.java:688) at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) at com.google.common.collect.AbstractIterator.next(AbstractIterator.java:153) at com.google.common.collect.Iterators.find(Iterators.java:761) at com.google.common.collect.Iterables.find(Iterables.java:646) at org.jclouds.cloudstack.functions.ReuseOrAssociateNewPublicIPAddress.findAvailableAndAssociatedWithNetwork(ReuseOrAssociateNewPublicIPAddress.java:80) at org.jclouds.cloudstack.functions.ReuseOrAssociateNewPublicIPAddress.apply(ReuseOrAssociateNewPublicIPAddress.java:97) at org.jclouds.cloudstack.functions.StaticNATVirtualMachineInNetwork.apply(StaticNATVirtualMachineInNetwork.java:66) at org.jclouds.cloudstack.compute.strategy.CloudStackComputeServiceAdapter.createNodeWithGroupEncodedIntoName(CloudStackComputeServiceAdapter.java:190) at org.jclouds.compute.strategy.impl.AdaptingComputeServiceStrategies.createNodeWithGroupEncodedIntoName(AdaptingComputeServiceStrategies.java:186) at org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet$AddNode.call(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:82) at org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet$AddNode.call(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:66) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) at org.jclouds.concurrent.config.DescribingExecutorService.submit(DescribingExecutorService.java:89) at org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet.createNodeInGroupWithNameAndTemplate(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:170) at org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet.execute(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:125) at org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:213) at jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.get(JCloudsSlaveTemplate.java:246) at jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.provisionSlave(JCloudsSlaveTemplate.java:160) at jenkins.plugins.jclouds.compute.JCloudsCloud$2.call(JCloudsCloud.java:216) at jenkins.plugins.jclouds.compute.JCloudsCloud$2.call(JCloudsCloud.java:213) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) at org.jclouds.concurrent.config.DescribingExecutorService.submit(DescribingExecutorService.java:89) at org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet.createNodeInGroupWithNameAndTemplate(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:170) at org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet.execute(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:125) at org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:213) at jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.get(JCloudsSlaveTemplate.java:246) at jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.provisionSlave(JCloudsSlaveTemplate.java:160) at jenkins.plugins.jclouds.compute.JCloudsCloud$2.call(JCloudsCloud.java:216) at jenkins.plugins.jclouds.compute.JCloudsCloud$2.call(JCloudsCloud.java:213) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) ... 3 more 1 error[s] Node failures: 0 error[s] at org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:221) at jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.get(JCloudsSlaveTemplate.java:246) ... 8 more

    Jenkins JIRA | 3 years ago | Hugo Trippaers
    java.util.concurrent.ExecutionException: java.lang.NullPointerException
  2. 0

    When creating a slave machine i'm seeing this NPE regularly. It causes the creation of the slave to fail, but the machine is still provisioned in cloudstack. I would have expected that the machine would be detroyed once a part of the provisioning fails. Installed version of jenkins-jclouds is 3.2.1, Jenkins is at 1.508 1 error[s] Node failures: 0 error[s] at com.google.common.base.Throwables.propagate(Throwables.java:160) at jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.destroyBadNodesAndPropagate(JCloudsSlaveTemplate.java:258) at jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.get(JCloudsSlaveTemplate.java:248) at jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.provisionSlave(JCloudsSlaveTemplate.java:160) at jenkins.plugins.jclouds.compute.JCloudsCloud$2.call(JCloudsCloud.java:216) at jenkins.plugins.jclouds.compute.JCloudsCloud$2.call(JCloudsCloud.java:213) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: org.jclouds.compute.RunNodesException: error running 1 node group(cloudstack-buildslave-centos6) location(2) image(b1b99bde-480d-49fa-ac64-f7fba6445cc7) size(f351015a-cd67-4680-a8c4-5dafe0c4ab04) options({taskName=bootstrap, scriptPresent=true , userMetadata={Name=cloudstack-buildslave-centos6}}) Execution failures: 1) ExecutionException on cloudstack-buildslave-centos6-ad8: java.util.concurrent.ExecutionException: java.lang.NullPointerException at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:289) at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:276) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:111) at org.jclouds.concurrent.FutureIterables$1.run(FutureIterables.java:134) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.NullPointerException at org.jclouds.cloudstack.predicates.PublicIPAddressPredicates$AssociatedWithNetwork.apply(PublicIPAddressPredicates.java:43) at org.jclouds.cloudstack.predicates.PublicIPAddressPredicates$AssociatedWithNetwork.apply(PublicIPAddressPredicates.java:34) at com.google.common.base.Predicates$AndPredicate.apply(Predicates.java:342) at com.google.common.collect.Iterators$8.computeNext(Iterators.java:688) at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) at com.google.common.collect.AbstractIterator.next(AbstractIterator.java:153) at com.google.common.collect.Iterators.find(Iterators.java:761) at com.google.common.collect.Iterables.find(Iterables.java:646) at org.jclouds.cloudstack.functions.ReuseOrAssociateNewPublicIPAddress.findAvailableAndAssociatedWithNetwork(ReuseOrAssociateNewPublicIPAddress.java:80) at org.jclouds.cloudstack.functions.ReuseOrAssociateNewPublicIPAddress.apply(ReuseOrAssociateNewPublicIPAddress.java:97) at org.jclouds.cloudstack.functions.StaticNATVirtualMachineInNetwork.apply(StaticNATVirtualMachineInNetwork.java:66) at org.jclouds.cloudstack.compute.strategy.CloudStackComputeServiceAdapter.createNodeWithGroupEncodedIntoName(CloudStackComputeServiceAdapter.java:190) at org.jclouds.compute.strategy.impl.AdaptingComputeServiceStrategies.createNodeWithGroupEncodedIntoName(AdaptingComputeServiceStrategies.java:186) at org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet$AddNode.call(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:82) at org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet$AddNode.call(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:66) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) at org.jclouds.concurrent.config.DescribingExecutorService.submit(DescribingExecutorService.java:89) at org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet.createNodeInGroupWithNameAndTemplate(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:170) at org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet.execute(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:125) at org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:213) at jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.get(JCloudsSlaveTemplate.java:246) at jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.provisionSlave(JCloudsSlaveTemplate.java:160) at jenkins.plugins.jclouds.compute.JCloudsCloud$2.call(JCloudsCloud.java:216) at jenkins.plugins.jclouds.compute.JCloudsCloud$2.call(JCloudsCloud.java:213) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) at org.jclouds.concurrent.config.DescribingExecutorService.submit(DescribingExecutorService.java:89) at org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet.createNodeInGroupWithNameAndTemplate(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:170) at org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet.execute(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:125) at org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:213) at jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.get(JCloudsSlaveTemplate.java:246) at jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.provisionSlave(JCloudsSlaveTemplate.java:160) at jenkins.plugins.jclouds.compute.JCloudsCloud$2.call(JCloudsCloud.java:216) at jenkins.plugins.jclouds.compute.JCloudsCloud$2.call(JCloudsCloud.java:213) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) ... 3 more 1 error[s] Node failures: 0 error[s] at org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:221) at jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.get(JCloudsSlaveTemplate.java:246) ... 8 more

    Jenkins JIRA | 3 years ago | Hugo Trippaers
    java.util.concurrent.ExecutionException: java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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 org.jclouds.cloudstack.predicates.PublicIPAddressPredicates$AssociatedWithNetwork.apply()
    2. org.jclouds.cloudstack
      PublicIPAddressPredicates$AssociatedWithNetwork.apply
      1. org.jclouds.cloudstack.predicates.PublicIPAddressPredicates$AssociatedWithNetwork.apply(PublicIPAddressPredicates.java:43)
      2. org.jclouds.cloudstack.predicates.PublicIPAddressPredicates$AssociatedWithNetwork.apply(PublicIPAddressPredicates.java:34)
      2 frames
    3. Guava
      Iterables.find
      1. com.google.common.base.Predicates$AndPredicate.apply(Predicates.java:342)
      2. com.google.common.collect.Iterators$8.computeNext(Iterators.java:688)
      3. com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
      4. com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
      5. com.google.common.collect.AbstractIterator.next(AbstractIterator.java:153)
      6. com.google.common.collect.Iterators.find(Iterators.java:761)
      7. com.google.common.collect.Iterables.find(Iterables.java:646)
      7 frames
    4. org.jclouds.cloudstack
      CloudStackComputeServiceAdapter.createNodeWithGroupEncodedIntoName
      1. org.jclouds.cloudstack.functions.ReuseOrAssociateNewPublicIPAddress.findAvailableAndAssociatedWithNetwork(ReuseOrAssociateNewPublicIPAddress.java:80)
      2. org.jclouds.cloudstack.functions.ReuseOrAssociateNewPublicIPAddress.apply(ReuseOrAssociateNewPublicIPAddress.java:97)
      3. org.jclouds.cloudstack.functions.StaticNATVirtualMachineInNetwork.apply(StaticNATVirtualMachineInNetwork.java:66)
      4. org.jclouds.cloudstack.compute.strategy.CloudStackComputeServiceAdapter.createNodeWithGroupEncodedIntoName(CloudStackComputeServiceAdapter.java:190)
      4 frames
    5. jclouds compute core
      CreateNodesWithGroupEncodedIntoNameThenAddToSet$AddNode.call
      1. org.jclouds.compute.strategy.impl.AdaptingComputeServiceStrategies.createNodeWithGroupEncodedIntoName(AdaptingComputeServiceStrategies.java:186)
      2. org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet$AddNode.call(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:82)
      3. org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet$AddNode.call(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:66)
      3 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:166)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      5. java.lang.Thread.run(Thread.java:722)
      5 frames
    7. jclouds Components Core
      DescribingExecutorService.submit
      1. org.jclouds.concurrent.config.DescribingExecutorService.submit(DescribingExecutorService.java:89)
      1 frame
    8. jclouds compute core
      BaseComputeService.createNodesInGroup
      1. org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet.createNodeInGroupWithNameAndTemplate(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:170)
      2. org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet.execute(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:125)
      3. org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:213)
      3 frames
    9. jenkins.plugins.jclouds
      JCloudsCloud$2.call
      1. jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.get(JCloudsSlaveTemplate.java:246)
      2. jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.provisionSlave(JCloudsSlaveTemplate.java:160)
      3. jenkins.plugins.jclouds.compute.JCloudsCloud$2.call(JCloudsCloud.java:216)
      4. jenkins.plugins.jclouds.compute.JCloudsCloud$2.call(JCloudsCloud.java:213)
      4 frames
    10. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:166)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      5. java.lang.Thread.run(Thread.java:722)
      5 frames
    11. jclouds Components Core
      DescribingExecutorService.submit
      1. org.jclouds.concurrent.config.DescribingExecutorService.submit(DescribingExecutorService.java:89)
      1 frame
    12. jclouds compute core
      BaseComputeService.createNodesInGroup
      1. org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet.createNodeInGroupWithNameAndTemplate(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:170)
      2. org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet.execute(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:125)
      3. org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:213)
      3 frames
    13. jenkins.plugins.jclouds
      JCloudsCloud$2.call
      1. jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.get(JCloudsSlaveTemplate.java:246)
      2. jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.provisionSlave(JCloudsSlaveTemplate.java:160)
      3. jenkins.plugins.jclouds.compute.JCloudsCloud$2.call(JCloudsCloud.java:216)
      4. jenkins.plugins.jclouds.compute.JCloudsCloud$2.call(JCloudsCloud.java:213)
      4 frames
    14. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:166)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      5. java.lang.Thread.run(Thread.java:722)
      5 frames