errorjava.lang.IllegalArgumentException: duplicate key

Still need help?

The Atlassian Community is here for you.

Ask the community

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

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.