ParseErrorException on outgoing mail from JIRA

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

JIRA's outgoing mail is generating error messages.

The following appears in the atlassian-jira.log:

org.apache.velocity.exception.ParseErrorException: Encountered "mailto" at line 3, column 59.
Was expecting one of:
    "," ...
    ")" ...
    <WHITESPACE> ...
    
        at org.apache.velocity.Template.process(Template.java:141)
        at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:374)
        at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:297)
        at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:767)
        at org.apache.velocity.runtime.directive.Parse.render(Parse.java:141)
        at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
        at org.apache.velocity.Template.merge(Template.java:256)
        at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:422)
        at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:77)
        at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:61)
        at com.atlassian.jira.service.services.mail.MailFetcherService.createErrorForwardEmail(MailFetcherService.java:338)
        at com.atlassian.jira.service.services.mail.MailFetcherService.forwardEmail(MailFetcherService.java:382)
        at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:192)
        at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:60)
        at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:47)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
        at com.atlassian.multitenant.quartz.MultiTenantThreadPool$MultiTenantRunnable.run(MultiTenantThreadPool.java:72)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

Diagnosis

Email templates have been modified. See the Administration > System > Troubleshooting & Support > System Info page for modified files and verify whether any *.vm files are listed.

Cause

Email templates are using invalid formatting.

Workaround

Replace modified vm templates with unmodified copies.

Resolution

Modify the vm templates to use valid formatting. See more here on Customizing Email Content

You can get copies of unmodified templates from the archive downloads on our JIRA Archives Downloads page. We recommend that you match the download version to the one that you are running.

tip/resting Created with Sketch.

Customizations to Velocity templates or other JIRA files are not included in the scope of Atlassian Support.

Last modified on Nov 14, 2018

Was this helpful?

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