java.util.concurrent.ExecutionException: java.util.NoSuchElementException

Jenkins JIRA | Jonathan Harker | 4 years ago
  1. 0

    A simple job which creates a single jclouds instance then runs `echo` on that instance fails -- creating several nova instances on the account, none of which are listed in jenkins as nodes. The instance template uses a base ubuntu precise image, with Allow Sudo on and the following init script defined: #!/bin/bash apt-add-repository -y ppa:saltstack/salt apt-get -y update apt-get install -y build-essential apt-get install -y git apt-get install -y python-dev apt-get install -y python-novaclient apt-get install -y python-jinja2 apt-get install -y salt-master The console output is: Started by user anonymous [EnvInject] - Loading node environment variables. Building on master in workspace /var/lib/jenkins/jobs/create-salt-slave-az1/workspace Queuing cloud instance: #0 1, HPCS salt-az1 ERROR: Exception creating a node: org.jclouds.compute.RunNodesException: error running 1 node group(salt-az1) location(az-1.region-a.geo-1) image(8419) size(101) options({scriptPresent=true, userMetadata={Name=salt-az1}, generateKeyPair=true}) Execution failures: 1) ExecutionException on salt-az1-348: java.util.concurrent.ExecutionException: java.util.NoSuchElementException 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:679) Caused by: java.util.NoSuchElementException at com.google.common.collect.Iterables.getLast(Iterables.java:797) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:100) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:55) at com.google.common.util.concurrent.Futures$3.apply(Futures.java:380) at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522) ... 3 more 1 error[s] Node failures: 0 error[s] ERROR: Exception creating a node: org.jclouds.compute.RunNodesException: error running 1 node group(salt-az1) location(az-1.region-a.geo-1) image(8419) size(101) options({scriptPresent=true, userMetadata={Name=salt-az1}, generateKeyPair=true}) Execution failures: 1) ExecutionException on salt-az1-768: java.util.concurrent.ExecutionException: java.util.NoSuchElementException 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:679) Caused by: java.util.NoSuchElementException at com.google.common.collect.Iterables.getLast(Iterables.java:797) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:100) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:55) at com.google.common.util.concurrent.Futures$3.apply(Futures.java:380) at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522) ... 3 more 1 error[s] Node failures: 0 error[s] ERROR: Exception creating a node: org.jclouds.compute.RunNodesException: error running 1 node group(salt-az1) location(az-1.region-a.geo-1) image(8419) size(101) options({scriptPresent=true, userMetadata={Name=salt-az1}, generateKeyPair=true}) Execution failures: 1) ExecutionException on salt-az1-98c: java.util.concurrent.ExecutionException: java.util.NoSuchElementException 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:679) Caused by: java.util.NoSuchElementException at com.google.common.collect.Iterables.getLast(Iterables.java:797) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:100) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:55) at com.google.common.util.concurrent.Futures$3.apply(Futures.java:380) at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522) ... 3 more 1 error[s] Node failures: 0 error[s] ERROR: Exception creating a node: org.jclouds.compute.RunNodesException: error running 1 node group(salt-az1) location(az-1.region-a.geo-1) image(8419) size(101) options({scriptPresent=true, userMetadata={Name=salt-az1}, generateKeyPair=true}) Execution failures: 1) ExecutionException on salt-az1-82: java.util.concurrent.ExecutionException: java.util.NoSuchElementException 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:679) Caused by: java.util.NoSuchElementException at com.google.common.collect.Iterables.getLast(Iterables.java:797) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:100) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:55) at com.google.common.util.concurrent.Futures$3.apply(Futures.java:380) at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522) ... 3 more 1 error[s] Node failures: 0 error[s] ERROR: Exception creating a node: org.jclouds.compute.RunNodesException: error running 1 node group(salt-az1) location(az-1.region-a.geo-1) image(8419) size(101) options({scriptPresent=true, userMetadata={Name=salt-az1}, generateKeyPair=true}) Execution failures: 1) ExecutionException on salt-az1-e93: java.util.concurrent.ExecutionException: java.util.NoSuchElementException 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:679) Caused by: java.util.NoSuchElementException at com.google.common.collect.Iterables.getLast(Iterables.java:797) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:100) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:55) at com.google.common.util.concurrent.Futures$3.apply(Futures.java:380) at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522) ... 3 more 1 error[s] Node failures: 0 error[s] FATAL: One or more instances failed to launch. java.lang.IllegalStateException: One or more instances failed to launch. at jenkins.plugins.jclouds.compute.internal.ProvisionPlannedInstancesAndDestroyAllOnError.apply(ProvisionPlannedInstancesAndDestroyAllOnError.java:81) at jenkins.plugins.jclouds.compute.JCloudsBuildWrapper.setUp(JCloudsBuildWrapper.java:93) at hudson.model.Build$BuildExecution.doRun(Build.java:154) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1502) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236)

    Jenkins JIRA | 4 years ago | Jonathan Harker
    java.util.concurrent.ExecutionException: java.util.NoSuchElementException
  2. 0

    [JENKINS-16088] JClouds Plugin creates too many instances and fails to launch Jenkins slaves - Jenkins JIRA

    jenkins-ci.org | 4 months ago
    java.util.concurrent.ExecutionException: java.util.NoSuchElementException
  3. 0

    A simple job which creates a single jclouds instance then runs `echo` on that instance fails -- creating several nova instances on the account, none of which are listed in jenkins as nodes. The instance template uses a base ubuntu precise image, with Allow Sudo on and the following init script defined: #!/bin/bash apt-add-repository -y ppa:saltstack/salt apt-get -y update apt-get install -y build-essential apt-get install -y git apt-get install -y python-dev apt-get install -y python-novaclient apt-get install -y python-jinja2 apt-get install -y salt-master The console output is: Started by user anonymous [EnvInject] - Loading node environment variables. Building on master in workspace /var/lib/jenkins/jobs/create-salt-slave-az1/workspace Queuing cloud instance: #0 1, HPCS salt-az1 ERROR: Exception creating a node: org.jclouds.compute.RunNodesException: error running 1 node group(salt-az1) location(az-1.region-a.geo-1) image(8419) size(101) options({scriptPresent=true, userMetadata={Name=salt-az1}, generateKeyPair=true}) Execution failures: 1) ExecutionException on salt-az1-348: java.util.concurrent.ExecutionException: java.util.NoSuchElementException 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:679) Caused by: java.util.NoSuchElementException at com.google.common.collect.Iterables.getLast(Iterables.java:797) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:100) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:55) at com.google.common.util.concurrent.Futures$3.apply(Futures.java:380) at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522) ... 3 more 1 error[s] Node failures: 0 error[s] ERROR: Exception creating a node: org.jclouds.compute.RunNodesException: error running 1 node group(salt-az1) location(az-1.region-a.geo-1) image(8419) size(101) options({scriptPresent=true, userMetadata={Name=salt-az1}, generateKeyPair=true}) Execution failures: 1) ExecutionException on salt-az1-768: java.util.concurrent.ExecutionException: java.util.NoSuchElementException 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:679) Caused by: java.util.NoSuchElementException at com.google.common.collect.Iterables.getLast(Iterables.java:797) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:100) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:55) at com.google.common.util.concurrent.Futures$3.apply(Futures.java:380) at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522) ... 3 more 1 error[s] Node failures: 0 error[s] ERROR: Exception creating a node: org.jclouds.compute.RunNodesException: error running 1 node group(salt-az1) location(az-1.region-a.geo-1) image(8419) size(101) options({scriptPresent=true, userMetadata={Name=salt-az1}, generateKeyPair=true}) Execution failures: 1) ExecutionException on salt-az1-98c: java.util.concurrent.ExecutionException: java.util.NoSuchElementException 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:679) Caused by: java.util.NoSuchElementException at com.google.common.collect.Iterables.getLast(Iterables.java:797) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:100) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:55) at com.google.common.util.concurrent.Futures$3.apply(Futures.java:380) at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522) ... 3 more 1 error[s] Node failures: 0 error[s] ERROR: Exception creating a node: org.jclouds.compute.RunNodesException: error running 1 node group(salt-az1) location(az-1.region-a.geo-1) image(8419) size(101) options({scriptPresent=true, userMetadata={Name=salt-az1}, generateKeyPair=true}) Execution failures: 1) ExecutionException on salt-az1-82: java.util.concurrent.ExecutionException: java.util.NoSuchElementException 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:679) Caused by: java.util.NoSuchElementException at com.google.common.collect.Iterables.getLast(Iterables.java:797) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:100) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:55) at com.google.common.util.concurrent.Futures$3.apply(Futures.java:380) at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522) ... 3 more 1 error[s] Node failures: 0 error[s] ERROR: Exception creating a node: org.jclouds.compute.RunNodesException: error running 1 node group(salt-az1) location(az-1.region-a.geo-1) image(8419) size(101) options({scriptPresent=true, userMetadata={Name=salt-az1}, generateKeyPair=true}) Execution failures: 1) ExecutionException on salt-az1-e93: java.util.concurrent.ExecutionException: java.util.NoSuchElementException 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:679) Caused by: java.util.NoSuchElementException at com.google.common.collect.Iterables.getLast(Iterables.java:797) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:100) at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:55) at com.google.common.util.concurrent.Futures$3.apply(Futures.java:380) at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522) ... 3 more 1 error[s] Node failures: 0 error[s] FATAL: One or more instances failed to launch. java.lang.IllegalStateException: One or more instances failed to launch. at jenkins.plugins.jclouds.compute.internal.ProvisionPlannedInstancesAndDestroyAllOnError.apply(ProvisionPlannedInstancesAndDestroyAllOnError.java:81) at jenkins.plugins.jclouds.compute.JCloudsBuildWrapper.setUp(JCloudsBuildWrapper.java:93) at hudson.model.Build$BuildExecution.doRun(Build.java:154) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1502) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236)

    Jenkins JIRA | 4 years ago | Jonathan Harker
    java.util.concurrent.ExecutionException: java.util.NoSuchElementException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I have discovered the following exception from a scheduler that is running off master with the beta task store enabled. {noformat} E0113 22:51:55.941 [AsyncProcessor-2, AsyncUtil:123] java.util.concurrent.ExecutionException: java.util.NoSuchElementException java.util.concurrent.ExecutionException: java.util.NoSuchElementException at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:1.8.0_66-Tw8r9b1] at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[na:1.8.0_66-Tw8r9b1] at org.apache.aurora.scheduler.base.AsyncUtil.evaluateResult(AsyncUtil.java:118) [aurora-110.jar:na] at org.apache.aurora.scheduler.base.AsyncUtil.access$000(AsyncUtil.java:32) [aurora-110.jar:na] at org.apache.aurora.scheduler.base.AsyncUtil$1.afterExecute(AsyncUtil.java:59) [aurora-110.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1150) [na:1.8.0_66-Tw8r9b1] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_66-Tw8r9b1] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_66-Tw8r9b1] Caused by: java.util.NoSuchElementException: null at com.google.common.collect.Iterables.getLast(Iterables.java:784) ~[guava-19.0.jar:na] at org.apache.aurora.scheduler.base.Tasks.getLatestEvent(Tasks.java:149) ~[aurora-110.jar:na] at org.apache.aurora.scheduler.base.Tasks$1.apply(Tasks.java:156) ~[aurora-110.jar:na] at org.apache.aurora.scheduler.base.Tasks$1.apply(Tasks.java:153) ~[aurora-110.jar:na] at com.google.common.collect.ByFunctionOrdering.compare(ByFunctionOrdering.java:45) ~[guava-19.0.jar:na] at java.util.TimSort.binarySort(TimSort.java:296) ~[na:1.8.0_66-Tw8r9b1] at java.util.TimSort.sort(TimSort.java:239) ~[na:1.8.0_66-Tw8r9b1] at java.util.Arrays.sort(Arrays.java:1438) ~[na:1.8.0_66-Tw8r9b1] at com.google.common.collect.Ordering.sortedCopy(Ordering.java:860) ~[guava-19.0.jar:na] at org.apache.aurora.scheduler.pruning.TaskHistoryPruner.lambda$registerInactiveTask$20(TaskHistoryPruner.java:156) ~[aurora-110.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_66-Tw8r9b1] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_66-Tw8r9b1] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[na:1.8.0_66-Tw8r9b1] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[na:1.8.0_66-Tw8r9b1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_66-Tw8r9b1] ... 2 common frames omitted {noformat} Similar exception occurs within the preemptor and causes the scheduler to crash: {noformat} E0113 01:43:06.242 THREAD5037 com.google.common.util.concurrent.ServiceManager$ServiceListener.failed: Service PreemptorService [FAILED] has failed in the RUNNING state. java.util.NoSuchElementException at com.google.common.collect.Iterables.getLast(Iterables.java:784) at org.apache.aurora.scheduler.base.Tasks.getLatestEvent(Tasks.java:149) at org.apache.aurora.scheduler.preemptor.PendingTaskProcessor$3.apply(PendingTaskProcessor.java:237) at org.apache.aurora.scheduler.preemptor.PendingTaskProcessor$3.apply(PendingTaskProcessor.java:234) at com.google.common.base.Predicates$AndPredicate.apply(Predicates.java:374) at com.google.common.collect.Iterators$7.computeNext(Iterators.java:675) 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.TransformedIterator.hasNext(TransformedIterator.java:43) at com.google.common.collect.Iterators.addAll(Iterators.java:364) at com.google.common.collect.Iterables.addAll(Iterables.java:352) at com.google.common.collect.HashMultiset.create(HashMultiset.java:66) at org.apache.aurora.scheduler.preemptor.PendingTaskProcessor.fetchIdlePendingGroups(PendingTaskProcessor.java:183) at org.apache.aurora.scheduler.preemptor.PendingTaskProcessor.lambda$run$140(PendingTaskProcessor.java:144) at org.apache.aurora.scheduler.storage.db.DbStorage.read(DbStorage.java:138) at org.mybatis.guice.transactional.TransactionalMethodInterceptor.invoke(TransactionalMethodInterceptor.java:101) at org.apache.aurora.common.inject.TimedInterceptor.invoke(TimedInterceptor.java:83) at org.apache.aurora.scheduler.storage.log.LogStorage.read(LogStorage.java:570) at org.apache.aurora.scheduler.storage.CallOrderEnforcingStorage.read(CallOrderEnforcingStorage.java:113) at org.apache.aurora.scheduler.preemptor.PendingTaskProcessor.run(PendingTaskProcessor.java:119) at org.apache.aurora.scheduler.preemptor.PreemptorModule$PreemptorService.runOneIteration(PreemptorModule.java:145) at com.google.common.util.concurrent.AbstractScheduledService$ServiceDelegate$Task.run(AbstractScheduledService.java:189) at com.google.common.util.concurrent.Callables$3.run(Callables.java:100) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) 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) {noformat} Background: I discovered this while running a load test on a small test cluster. This exception kept on occurring, preventing any tasks from being pruned from the dbtask store. This exception also kept on killing the preemptor, causing a new scheduler to be elected. Eventually the number of tasks stored for this job reached 8k+ and there was a general slowdown observed across the entire system. After a certain point, the scheduler wasn't able to register within the 1minute registration timeout, causing the entire cluster to stop working until I raised the timeout to 5 minutes, and then killed the job preventing more tasks from being created.

    Apache's JIRA Issue Tracker | 11 months ago | Zameer Manji
    java.util.NoSuchElementException
  6. 0

    NoSuchElementException in LocalClassAwareTypeNames.doVisitParameterizedTypeReference (37)

    Eclipse Bugzilla | 1 year ago | error-reports-inbox
    java.util.NoSuchElementException: null

    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.util.NoSuchElementException

      No message provided

      at com.google.common.collect.Iterables.getLast()
    2. Guava
      Iterables.getLast
      1. com.google.common.collect.Iterables.getLast(Iterables.java:797)
      1 frame
    3. org.jclouds.openstack
      AllocateAndAddFloatingIpToNode.apply
      1. org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:100)
      2. org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:55)
      2 frames
    4. Guava
      Futures$ChainingListenableFuture.run
      1. com.google.common.util.concurrent.Futures$3.apply(Futures.java:380)
      2. com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:522)
      2 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      3. java.lang.Thread.run(Thread.java:679)
      3 frames