MethodInvocationException On Create/Update Issues by Email, Invalid Resource

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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.

*Except Fisheye and Crucible

Problem

The below error appears in the logs, I broke down the stack trace to smaller part for better understanding:

1 2 3 4 5 6 7 8 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 ...
1 2 3 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

Cause

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.

1 2 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)

Resolution

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.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.