MethodInvocationException On Create/Update Issues by Email, Invalid Resource
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
Platform Notice: Server, Data Center, and Cloud By Request - This article was written for the Atlassian server and data center platforms but may also be useful for Atlassian Cloud customers. If completing instructions in this article would help you, please contact Atlassian Support and mention it.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*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.