MethodInvocationException On Create/Update Issues by Email, Invalid Resource

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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

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.

*Except Fisheye and Crucible

Problem

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 

 

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.

 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.

Last modified on Feb 26, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.