java.lang.IllegalArgumentException: Duplicate keys in mappings com.atlassian.bamboo.plan.branch.ChainBranchImpl@b2172046=0 and com.atlassian.bamboo.plan.branch.ChainBranchImpl@38c544dc=0

Atlassian JIRA | Piotr Stefan Stefaniak [Atlassian] | 5 years ago
  1. 0

    steps to reproduce: 1) create new plan, let's call it P1 2) create second plan, let's call it P2 3) create a new branch for plan P1, as a name use "branch" 4) create a new branch for plan P2, as a name use the same "branch" 5) admin->system->indexing->full_reindex->perform 6a) Error message appears: {panel:bgColor=#FFCECE} (-) *Indexing operation failed - errors occurred while indexing.: java.lang.IllegalArgumentException: Duplicate keys in mappings com.atlassian.bamboo.plan.branch.ChainBranchImpl@b2172046=0 and com.atlassian.bamboo.plan.branch.ChainBranchImpl@38c544dc=0* {panel} 6b) not sure what is the expected behavior... should we allow indexing multiple branches with the same name? ---- stacktrace: {noformat} java.lang.IllegalArgumentException: Duplicate keys in mappings com.atlassian.bamboo.plan.branch.ChainBranchImpl@b2172046=0 and com.atlassian.bamboo.plan.branch.ChainBranchImpl@38c544dc=0 at com.google.common.collect.ImmutableSortedMap.validateEntries(ImmutableSortedMap.java:285) at com.google.common.collect.ImmutableSortedMap.copyOfInternal(ImmutableSortedMap.java:262) at com.google.common.collect.ImmutableSortedMap.copyOf(ImmutableSortedMap.java:201) at com.atlassian.bamboo.index.DefaultBuildResultsIndexer.reindexAll(DefaultBuildResultsIndexer.java:71) at com.atlassian.bamboo.index.ReindexAction.execute(ReindexAction.java:68) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) {noformat} ---- relevant part (DefaultBuildResultsIndexer.java:71): {code} ImmutableSortedMap<Plan, Long> sortedPlanMap = ImmutableSortedMap.copyOf(planMap, Ordering.natural().onResultOf(Functions.forMap(planMap)).reverse().compound(getPlanNameProviderCaseInsensitiveOrdering())); {code}

    Atlassian JIRA | 5 years ago | Piotr Stefan Stefaniak [Atlassian]
    java.lang.IllegalArgumentException: Duplicate keys in mappings com.atlassian.bamboo.plan.branch.ChainBranchImpl@b2172046=0 and com.atlassian.bamboo.plan.branch.ChainBranchImpl@38c544dc=0
  2. 0

    steps to reproduce: 1) create new plan, let's call it P1 2) create second plan, let's call it P2 3) create a new branch for plan P1, as a name use "branch" 4) create a new branch for plan P2, as a name use the same "branch" 5) admin->system->indexing->full_reindex->perform 6a) Error message appears: {panel:bgColor=#FFCECE} (-) *Indexing operation failed - errors occurred while indexing.: java.lang.IllegalArgumentException: Duplicate keys in mappings com.atlassian.bamboo.plan.branch.ChainBranchImpl@b2172046=0 and com.atlassian.bamboo.plan.branch.ChainBranchImpl@38c544dc=0* {panel} 6b) not sure what is the expected behavior... should we allow indexing multiple branches with the same name? ---- stacktrace: {noformat} java.lang.IllegalArgumentException: Duplicate keys in mappings com.atlassian.bamboo.plan.branch.ChainBranchImpl@b2172046=0 and com.atlassian.bamboo.plan.branch.ChainBranchImpl@38c544dc=0 at com.google.common.collect.ImmutableSortedMap.validateEntries(ImmutableSortedMap.java:285) at com.google.common.collect.ImmutableSortedMap.copyOfInternal(ImmutableSortedMap.java:262) at com.google.common.collect.ImmutableSortedMap.copyOf(ImmutableSortedMap.java:201) at com.atlassian.bamboo.index.DefaultBuildResultsIndexer.reindexAll(DefaultBuildResultsIndexer.java:71) at com.atlassian.bamboo.index.ReindexAction.execute(ReindexAction.java:68) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) {noformat} ---- relevant part (DefaultBuildResultsIndexer.java:71): {code} ImmutableSortedMap<Plan, Long> sortedPlanMap = ImmutableSortedMap.copyOf(planMap, Ordering.natural().onResultOf(Functions.forMap(planMap)).reverse().compound(getPlanNameProviderCaseInsensitiveOrdering())); {code}

    Atlassian JIRA | 5 years ago | Piotr Stefan Stefaniak [Atlassian]
    java.lang.IllegalArgumentException: Duplicate keys in mappings com.atlassian.bamboo.plan.branch.ChainBranchImpl@b2172046=0 and com.atlassian.bamboo.plan.branch.ChainBranchImpl@38c544dc=0
  3. 0

    Guava Duplicate keys exception IllegalArgumentException

    Stack Overflow | 4 years ago | Pintac
    java.lang.IllegalArgumentException: Duplicate keys in mappings 2=1 and 1=1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Duplicate keys in mappings

    GitHub | 3 years ago | Prometheius
    java.lang.IllegalArgumentException: Duplicate keys in mappings 1xitemStack[387:0:item.writtenBook:net.minecraft.item.ItemEditableBook]=[ CORPOREAL:180.0 ] and 1xitemStack[387:0:item.writtenBook:net.minecraft.item.ItemEditableBook]=[ CORPOREAL:180.0 ]
  6. 0

    IllegalArgumentException: Duplicate VM: 0

    Eclipse Bugzilla | 1 decade ago | jerome_lanneluc
    java.lang.IllegalArgumentException: Duplicate VM: 0

    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 keys in mappings com.atlassian.bamboo.plan.branch.ChainBranchImpl@b2172046=0 and com.atlassian.bamboo.plan.branch.ChainBranchImpl@38c544dc=0

      at com.google.common.collect.ImmutableSortedMap.validateEntries()
    2. Guava
      ImmutableSortedMap.copyOf
      1. com.google.common.collect.ImmutableSortedMap.validateEntries(ImmutableSortedMap.java:285)
      2. com.google.common.collect.ImmutableSortedMap.copyOfInternal(ImmutableSortedMap.java:262)
      3. com.google.common.collect.ImmutableSortedMap.copyOf(ImmutableSortedMap.java:201)
      3 frames
    3. com.atlassian.bamboo
      ReindexAction.execute
      1. com.atlassian.bamboo.index.DefaultBuildResultsIndexer.reindexAll(DefaultBuildResultsIndexer.java:71)
      2. com.atlassian.bamboo.index.ReindexAction.execute(ReindexAction.java:68)
      2 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames