errorjava.lang.IllegalArgumentException: duplicate key

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

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)

原因

The problem happens when both Fisheye and Crucible have a repository and a project with the same key.

ソリューション

 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.

最終更新日 2018 年 7 月 31 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.