java.lang.IllegalArgumentException: duplicate key: QueuedResultKey{resultKey=J64SPT-UNIT2-UNIT-5, timestamp=53729201374254818}

Atlassian JIRA | Martin Meinhold | 2 years ago
  1. 0

    JBAC had a hiccup and didn't spin up new elastic agents. Looking at the logs we've noticed the following exception: {noformat} 2015-02-10 07:28:48,486 ERROR [scheduler_Worker-4] [JobRunShell] Job elastic agent monitor job group.elastic agent monitor job threw an unhandled Exception: java.lang.IllegalArgumentException: duplicate key: QueuedResultKey{resultKey=J64SPT-UNIT2-UNIT-5, timestamp=53729201374254818} at com.google.common.base.Preconditions.checkArgument(Preconditions.java:115) at com.google.common.collect.RegularImmutableMap.<init>(RegularImmutableMap.java:72) at com.google.common.collect.ImmutableMap$Builder.fromEntryList(ImmutableMap.java:245) at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:231) at com.google.common.collect.Maps.uniqueIndex(Maps.java:681) at com.google.common.collect.Maps.uniqueIndex(Maps.java:637) at com.atlassian.bamboo.v2.build.queue.QueueManagerView.getQueueView(QueueManagerView.java:68) at com.atlassian.bamboo.agent.elastic.schedule.ElasticRunningInstancesOptimizerImpl.getRequirementSetsOfQueuedExecutables(ElasticRunningInstancesOptimizerImpl.java:622) at com.atlassian.bamboo.agent.elastic.schedule.ElasticRunningInstancesOptimizerImpl.getImagesToStart(ElasticRunningInstancesOptimizerImpl.java:203) at sun.reflect.GeneratedMethodAccessor2545.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:98) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:262) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:95) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy139.getImagesToStart(Unknown Source) at com.atlassian.bamboo.agent.elastic.schedule.ElasticInstancesMonitorJob.execute(ElasticInstancesMonitorJob.java:47) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) 2015-02-10 07:28:48,487 ERROR [scheduler_Worker-4] [ErrorLogger] Job (elastic agent monitor job group.elastic agent monitor job threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.IllegalArgumentException: duplicate key: QueuedResultKey{resultKey=J64SPT-UNIT2-UNIT-5, timestamp=53729201374254818}] at org.quartz.core.JobRunShell.run(JobRunShell.java:213) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) Caused by: java.lang.IllegalArgumentException: duplicate key: QueuedResultKey{resultKey=J64SPT-UNIT2-UNIT-5, timestamp=53729201374254818} at com.google.common.base.Preconditions.checkArgument(Preconditions.java:115) at com.google.common.collect.RegularImmutableMap.<init>(RegularImmutableMap.java:72) at com.google.common.collect.ImmutableMap$Builder.fromEntryList(ImmutableMap.java:245) at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:231) at com.google.common.collect.Maps.uniqueIndex(Maps.java:681) at com.google.common.collect.Maps.uniqueIndex(Maps.java:637) at com.atlassian.bamboo.v2.build.queue.QueueManagerView.getQueueView(QueueManagerView.java:68) at com.atlassian.bamboo.agent.elastic.schedule.ElasticRunningInstancesOptimizerImpl.getRequirementSetsOfQueuedExecutables(ElasticRunningInstancesOptimizerImpl.java:622) at com.atlassian.bamboo.agent.elastic.schedule.ElasticRunningInstancesOptimizerImpl.getImagesToStart(ElasticRunningInstancesOptimizerImpl.java:203) at sun.reflect.GeneratedMethodAccessor2545.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:98) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:262) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:95) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy139.getImagesToStart(Unknown Source) at com.atlassian.bamboo.agent.elastic.schedule.ElasticInstancesMonitorJob.execute(ElasticInstancesMonitorJob.java:47) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) ... 5 more {noformat} According to the ui, the build mentioned in the exception finished about 4 hours ago. (5.8-m4 build 5860 - 04 Feb 15)

    Atlassian JIRA | 2 years ago | Martin Meinhold
    java.lang.IllegalArgumentException: duplicate key: QueuedResultKey{resultKey=J64SPT-UNIT2-UNIT-5, timestamp=53729201374254818}
  2. 0

    GitHub comment 22#182105324

    GitHub | 10 months ago | aurelien-baudet
    java.lang.IllegalArgumentException: Multiple entries with same key: js=JavaScript and js=JS
  3. 0

    Duplicate key error when creating ASG

    GitHub | 3 years ago | sommestad
    java.lang.IllegalArgumentException: duplicate key: external
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Failed to create ELB for VPC subnets

    GitHub | 3 years ago | jperry
    java.lang.IllegalArgumentException: duplicate key: public
  6. 0

    Server Problem

    GitHub | 4 years ago | JBrondum
    java.lang.IllegalArgumentException: duplicate key: mod_NotEnoughItems

  1. eti22 6 times, last 2 months ago
2 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.IllegalArgumentException

    duplicate key: QueuedResultKey{resultKey=J64SPT-UNIT2-UNIT-5, timestamp=53729201374254818}

    at com.google.common.base.Preconditions.checkArgument()
  2. Guava
    Maps.uniqueIndex
    1. com.google.common.base.Preconditions.checkArgument(Preconditions.java:115)
    2. com.google.common.collect.RegularImmutableMap.<init>(RegularImmutableMap.java:72)
    3. com.google.common.collect.ImmutableMap$Builder.fromEntryList(ImmutableMap.java:245)
    4. com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:231)
    5. com.google.common.collect.Maps.uniqueIndex(Maps.java:681)
    6. com.google.common.collect.Maps.uniqueIndex(Maps.java:637)
    6 frames
  3. com.atlassian.bamboo
    ElasticRunningInstancesOptimizerImpl.getImagesToStart
    1. com.atlassian.bamboo.v2.build.queue.QueueManagerView.getQueueView(QueueManagerView.java:68)
    2. com.atlassian.bamboo.agent.elastic.schedule.ElasticRunningInstancesOptimizerImpl.getRequirementSetsOfQueuedExecutables(ElasticRunningInstancesOptimizerImpl.java:622)
    3. com.atlassian.bamboo.agent.elastic.schedule.ElasticRunningInstancesOptimizerImpl.getImagesToStart(ElasticRunningInstancesOptimizerImpl.java:203)
    3 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor2545.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:483)
    3 frames
  5. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
    3 frames
  6. Spring Tx
    TransactionInterceptor.invoke
    1. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:98)
    2. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:262)
    3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:95)
    3 frames
  7. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
    2 frames
  8. com.sun.proxy
    $Proxy139.getImagesToStart
    1. com.sun.proxy.$Proxy139.getImagesToStart(Unknown Source)
    1 frame
  9. com.atlassian.bamboo
    ElasticInstancesMonitorJob.execute
    1. com.atlassian.bamboo.agent.elastic.schedule.ElasticInstancesMonitorJob.execute(ElasticInstancesMonitorJob.java:47)
    1 frame
  10. quartz
    JobRunShell.run
    1. org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    1 frame
  11. com.atlassian.bamboo
    ImpersonationHelper$1.run
    1. com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
    2. com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
    3. com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
    4. com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
    4 frames
  12. quartz
    SimpleThreadPool$WorkerThread.run
    1. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
    1 frame