MethodInvocationException On Create/Update Issues by Email, Invalid Resource
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
問題
The below error appears in the logs, I broke down the stack trace to smaller part for better understanding:
An error occurred whilst rendering this message. Please contact the administrators, and inform them of this bug. Details: -------
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getIssueTypeIconUrl' in class com.atlassian.jira.mail.util.MailAttachmentsManagerImpl threw
exception java.lang.IllegalArgumentException: The resource pathhttp://xxxxxxxxxx.xxxxxxx.com/images/pki-header/i_pdf_yellow.gif is not valid at
templates/email/macros.vm[line 324, column 69] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262) at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:342) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212) at
... Caused by: java.lang.IllegalArgumentException: The resource path http://xxxxxxxxxg.xxxx.com/images/pki-header/i_pdf_yellow.gif is not valid at
org.apache.catalina.webresources.StandardRoot.validate(StandardRoot.java:250) at org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot.java:212) at
org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot.java:206) at org.apache.catalina.core.ApplicationContext.getResource(ApplicationContext.java:557) at 原因
This is due to unsupported file type which JIRA is mentioning to, breaking down stack trace again:
The URL for the icon which is associating with issue type is not responding when JIRA tries to call it.
The resource path http://xxxxxxxxxg.xxxx.com/images/pki-header/i_pdf_yellow.gif is not valid at
org.apache.catalina.webresources.StandardRoot.validate(StandardRoot.java:250)ソリューション
Navigate to Admin -> Issue Types and change the URL for the icon to a valid icon that JIRA can read and call, or upload a valid icon. Issue types has been mentioned here at Defining Issue Type Field Values.
この内容はお役に立ちましたか?