「java.io.IOException: DER length more than 4 bytes (DER の長さが 4 バイトを超えています)」と表示されて、アプリケーション リンクの作成に失敗する

お困りですか?

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

コミュニティに質問

問題

Atlassian Server アプリと Atlassian Cloud アプリの間にアプリケーション リンクを設定すると、アプリ ログに次のエラーが表示されます。

A system error has occurred.
java.lang.RuntimeException: java.security.spec.InvalidKeySpecException: java.io.IOException: DER length more than 4 bytes
	at com.atlassian.security.auth.trustedapps.ListApplicationRetriever.getApplicationProtocolV0(ListApplicationRetriever.java:93)
	at com.atlassian.security.auth.trustedapps.ListApplicationRetriever.getApplicationProtocolV1(ListApplicationRetriever.java:52)
	at com.atlassian.security.auth.trustedapps.ListApplicationRetriever.getApplication(ListApplicationRetriever.java:46)
	at com.atlassian.security.auth.trustedapps.ReaderApplicationRetriever.getApplication(ReaderApplicationRetriever.java:27)
	at com.atlassian.security.auth.trustedapps.InputStreamApplicationRetriever.getApplication(InputStreamApplicationRetriever.java:21)
	...
Caused by: java.security.spec.InvalidKeySpecException: java.io.IOException: DER length more than 4 bytes
	at org.bouncycastle.jce.provider.JDKKeyFactory.engineGeneratePublic(Unknown Source)
	at org.bouncycastle.jce.provider.JDKKeyFactory$RSA.engineGeneratePublic(Unknown Source)
	...
Referer URL: http://jira.example.com:8080/plugins/servlet/applinks/auth/conf/trusted/inbound-non-ual/XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

原因

Server インスタンスと Cloud インスタンスの間のアプリケーション リンクは、Server アプリがポート 80 またはポート 443 で (有効な SSL 証明書を使用して) 動作している場合にのみ実行できます。また、インスタンスはインターネット経由で公開されアクセス可能になっている必要があります。

上記のエラー メッセージのリファラー URL に、Server インスタンスがポート 8080 または Web アプリ用のその他の非標準ポートで動作していると表示される場合があります。

ソリューション

  • Atlassian Server アプリがポート 80 またはポート 443 で (有効な SSL 証明書を使用して) 動作し、インターネット経由でアクセスできることを確認します。
  • この設定方法に不明な点がある場合は、Atlassian Server サポート チーム (https://support.atlassian.com/ja) までご連絡ください。

Last modified on Mar 30, 2016

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

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