errorjava.lang.IllegalArgumentException: duplicate key
Symptoms
Requests to FishEye from JIRA raises errors in FishEye's error log:
2012-01-13 11:57:16,057 ERROR [btpool0-21 ] com.sun.jersey.server.impl.application.WebApplicationImpl com.sun.jersey.server.impl.application.WebApplicationImpl-onException - Internal server errorjava.lang.IllegalArgumentException: duplicate key: YYY
at com.google.common.collect.RegularImmutableMap.<init>(RegularImmutableMap.java:62)
at com.google.common.collect.ImmutableMap$Builder.fromEntryList(ImmutableMap.java:212)
at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:198)
at com.google.common.collect.Maps.uniqueIndex(Maps.java:476)
Cause
The problem happens when both Fisheye and Crucible have a repository and a project with the same key.
Resolution
As a quick workaround, we recommend having the Crucible project prefixed with "CR-". So if your Fisheye repository is YYY, your Crucible project should be CR-YYY to easily distinguish one over the other.
Alternatively, upgrading to Fisheye 2.7.10 or above would also fix this situation.
Last modified on Jul 31, 2018
Powered by Confluence and Scroll Viewport.