org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/email/jemh/html/errorhint.vm [line 53,column 83] : $message.getSubject() is not a valid reference.

JIRA | Mike Curwen | 6 years ago
  1. 0

    When you leave off the subject, and there is no defaultSummary in emh.properties, the hint-o-gram generated says: > No summary provided, no email subkect, no default. This message will eventually be rejected. subkect s/b subject. Also at the bottom where it's outputting the details of the original email, the subject shows up as "$message.getSubject()" And in the logs, I have: 2011-02-25 10:35:40,525 JiraQuartzScheduler_Worker-3 WARN ServiceRunner ITSM Service [velocity] org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/email/jemh/html/errorhint.vm [line 53,column 83] : $message.getSubject() is not a valid reference. at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:277) 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.javahollic.jira.emh.service.AbstractMessageHandler.encodeAndSendEmail(AbstractMessageHandler.java:855) at com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:788) at com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:664) at com.javahollic.jira.emh.service.EMHIssueHandler.handleMessage(EMHIssueHandler.java:207) at com.javahollic.jira.emh.service.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:76) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:189) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) Can that be prevented with $!message.getSubject() ? Affects 0.9.6.2-snapshot

    JIRA | 6 years ago | Mike Curwen
    org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/email/jemh/html/errorhint.vm [line 53,column 83] : $message.getSubject() is not a valid reference.
  2. 0

    When you leave off the subject, and there is no defaultSummary in emh.properties, the hint-o-gram generated says: > No summary provided, no email subkect, no default. This message will eventually be rejected. subkect s/b subject. Also at the bottom where it's outputting the details of the original email, the subject shows up as "$message.getSubject()" And in the logs, I have: 2011-02-25 10:35:40,525 JiraQuartzScheduler_Worker-3 WARN ServiceRunner ITSM Service [velocity] org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/email/jemh/html/errorhint.vm [line 53,column 83] : $message.getSubject() is not a valid reference. at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:277) 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.javahollic.jira.emh.service.AbstractMessageHandler.encodeAndSendEmail(AbstractMessageHandler.java:855) at com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:788) at com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:664) at com.javahollic.jira.emh.service.EMHIssueHandler.handleMessage(EMHIssueHandler.java:207) at com.javahollic.jira.emh.service.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:76) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:189) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) Can that be prevented with $!message.getSubject() ? Affects 0.9.6.2-snapshot

    JIRA | 6 years ago | Mike Curwen
    org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/email/jemh/html/errorhint.vm [line 53,column 83] : $message.getSubject() is not a valid reference.
  3. 0

    I'm sending a message (email attached) to update an existing issue. The issue is updated but I get an email with the following message back: "Unhandled Exception [null] (bug) during comment on [COB-2308]", (reporter has COMMENT auth: false). Full email & emh.properties attached. Snippet from jira100811130439-stdout.2011-11-07.log java.lang.NullPointerException at java.io.StringReader.<init>(StringReader.java:33) at com.javahollic.jira.emh.engine.EMHIssueUtils.fixupBodyforIssueRenderer(EMHIssueUtils.java:1559) at com.javahollic.jira.emh.engine.EMHIssueUtils.setupComment(EMHIssueUtils.java:1370) at com.javahollic.jira.emh.engine.AbstractFieldProcessor.handleCommentOrPostIssueCreationActions(AbstractFieldProcessor.java:195) at com.javahollic.jira.emh.service.EMHIssueHandler.runProcessor(EMHIssueHandler.java:492) at com.javahollic.jira.emh.service.EMHIssueHandler.handleMessage(EMHIssueHandler.java:133) at com.javahollic.jira.emh.service.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:87) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:186) 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) 2011-11-07 11:59:40,126 QuartzWorker-1 ERROR ServiceRunner JEMH IMAP Service [velocity] RHS of #set statement is null. Context will not be modified. templates/email/html/includes/emailconstants.vm [line 2, column 1] 2011-11-07 11:59:40,126 QuartzWorker-1 ERROR ServiceRunner JEMH IMAP Service [velocity] RHS of #set statement is null. Context will not be modified. templates/email/html/includes/emailconstants.vm [line 3, column 1] 2011-11-07 11:59:40,126 QuartzWorker-1 ERROR ServiceRunner JEMH IMAP Service [velocity] RHS of #set statement is null. Context will not be modified. templates/email/html/includes/emailconstants.vm [line 4, column 1] 2011-11-07 11:59:40,126 QuartzWorker-1 ERROR ServiceRunner JEMH IMAP Service [velocity] RHS of #set statement is null. Context will not be modified. templates/email/html/includes/emailconstants.vm [line 5, column 1] 2011-11-07 11:59:40,126 QuartzWorker-1 ERROR ServiceRunner JEMH IMAP Service [velocity] RHS of #set statement is null. Context will not be modified. templates/email/html/includes/emailconstants.vm [line 6, column 1] 2011-11-07 11:59:40,126 QuartzWorker-1 ERROR ServiceRunner JEMH IMAP Service [velocity] RHS of #set statement is null. Context will not be modified. templates/email/html/includes/emailconstants.vm [line 9, column 1] 2011-11-07 11:59:40,126 QuartzWorker-1 ERROR ServiceRunner JEMH IMAP Service [velocity] RHS of #set statement is null. Context will not be modified. templates/email/html/includes/emailconstants.vm [line 10, column 1] 2011-11-07 11:59:40,126 QuartzWorker-1 ERROR ServiceRunner JEMH IMAP Service [velocity] RHS of #set statement is null. Context will not be modified. templates/email/html/includes/emailconstants.vm [line 11, column 1] 2011-11-07 11:59:40,126 QuartzWorker-1 ERROR ServiceRunner JEMH IMAP Service [velocity] RHS of #set statement is null. Context will not be modified. templates/email/html/includes/emailconstants.vm [line 14, column 1] 2011-11-07 11:59:40,126 QuartzWorker-1 ERROR ServiceRunner JEMH IMAP Service [velocity] RHS of #set statement is null. Context will not be modified. templates/email/html/includes/emailconstants.vm [line 15, column 1] 2011-11-07 11:59:40,126 QuartzWorker-1 ERROR ServiceRunner JEMH IMAP Service [velocity] RHS of #set statement is null. Context will not be modified. templates/email/html/includes/emailconstants.vm [line 16, column 1] 2011-11-07 11:59:40,141 QuartzWorker-1 WARN ServiceRunner JEMH IMAP Service [velocity] org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/email/html/includes/emailconstants.vm [line 1,column 7] : ${textLinkColour} is not a valid reference. at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:277) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.parser.node.ASTStringLiteral.value(ASTStringLiteral.java:138) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:51) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:95) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.directive.Parse.render(Parse.java:181) 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.runtime.directive.Parse.render(Parse.java:181) 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.javahollic.jira.emh.service.AbstractMessageHandler.encodeAndSendEmail(AbstractMessageHandler.java:832) at com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:772) at com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:648) at com.javahollic.jira.emh.service.EMHIssueHandler.handleMessage(EMHIssueHandler.java:212) at com.javahollic.jira.emh.service.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:87) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:186) 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) 2011-11-07 11:59:40,141 QuartzWorker-1 WARN ServiceRunner JEMH IMAP Service [velocity] org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/email/html/includes/header.vm [line 19,column 34] : ${topBackgroundColour} is not a valid reference. at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:277) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.directive.Parse.render(Parse.java:181) 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.javahollic.jira.emh.service.AbstractMessageHandler.encodeAndSendEmail(AbstractMessageHandler.java:832) at com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:772) at com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:648) at com.javahollic.jira.emh.service.EMHIssueHandler.handleMessage(EMHIssueHandler.java:212) at com.javahollic.jira.emh.service.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:87) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:186) 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) 2011-11-07 11:59:40,141 QuartzWorker-1 WARN ServiceRunner JEMH IMAP Service [velocity] org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/email/html/includes/header.vm [line 19,column 82] : ${topBackgroundColour} is not a valid reference. at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:277) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.directive.Parse.render(Parse.java:181) 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.javahollic.jira.emh.service.AbstractMessageHandler.encodeAndSendEmail(AbstractMessageHandler.java:832) at com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:772) at com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:648) at com.javahollic.jira.emh.service.EMHIssueHandler.handleMessage(EMHIssueHandler.java:212) at com.javahollic.jira.emh.service.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:87) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:186) 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) 2011-11-07 11:59:40,141 QuartzWorker-1 WARN ServiceRunner JEMH IMAP Service [velocity] org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/email/html/includes/header.vm [line 19,column 111] : ${topTxtColour} is not a valid reference. at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:277) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.directive.Parse.render(Parse.java:181) 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.javahollic.jira.emh.service.AbstractMessageHandler.encodeAndSendEmail(AbstractMessageHandler.java:832) at com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:772) at com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:648) at com.javahollic.jira.emh.service.EMHIssueHandler.handleMessage(EMHIssueHandler.java:212) at com.javahollic.jira.emh.service.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:87) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:186) 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) 2011-11-07 11:59:40,157 QuartzWorker-1 ERROR ServiceRunner JEMH IMAP Service [velocity] RHS of #set statement is null. Context will not be modified. templates/email/html/includes/emailconstants.vm [line 2, column 1] 2011-11-07 11:59:40,157 QuartzWorker-1 ERROR ServiceRunner JEMH IMAP Service [velocity] RHS of #set statement is null. Context will not be modified. templates/email/html/includes/emailconstants.vm [line 3, column 1] 2011-11-07 11:59:40,157 QuartzWorker-1 ERROR ServiceRunner JEMH IMAP Service [velocity] RHS of #set statement is null. Context will not be modified. templates/email/html/includes/emailconstants.vm [line 4, column 1] 2011-11-07 11:59:40,157 QuartzWorker-1 ERROR ServiceRunner JEMH IMAP Service [velocity] RHS of #set statement is null. Context will not be modified. templates/email/html/includes/emailconstants.vm [line 5, column 1] 2011-11-07 11:59:40,157 QuartzWorker-1 ERROR ServiceRunner JEMH IMAP Service [velocity] RHS of #set statement is null. Context will not be modified. templates/email/html/includes/emailconstants.vm [line 6, column 1] 2011-11-07 11:59:40,157 QuartzWorker-1 ERROR ServiceRunner JEMH IMAP Service [velocity] RHS of #set statement is null. Context will not be modified. templates/email/html/includes/emailconstants.vm [line 9, column 1] 2011-11-07 11:59:40,157 QuartzWorker-1 ERROR ServiceRunner JEMH IMAP Service [velocity] RHS of #set statement is null. Context will not be modified. templates/email/html/includes/emailconstants.vm [line 10, column 1] 2011-11-07 11:59:40,157 QuartzWorker-1 ERROR ServiceRunner JEMH IMAP Service [velocity] RHS of #set statement is null. Context will not be modified. templates/email/html/includes/emailconstants.vm [line 11, column 1] 2011-11-07 11:59:40,157 QuartzWorker-1 ERROR ServiceRunner JEMH IMAP Service [velocity] RHS of #set statement is null. Context will not be modified. templates/email/html/includes/emailconstants.vm [line 14, column 1] 2011-11-07 11:59:40,157 QuartzWorker-1 ERROR ServiceRunner JEMH IMAP Service [velocity] RHS of #set statement is null. Context will not be modified. templates/email/html/includes/emailconstants.vm [line 15, column 1] 2011-11-07 11:59:40,157 QuartzWorker-1 ERROR ServiceRunner JEMH IMAP Service [velocity] RHS of #set statement is null. Context will not be modified. templates/email/html/includes/emailconstants.vm [line 16, column 1] 2011-11-07 11:59:40,157 QuartzWorker-1 WARN ServiceRunner JEMH IMAP Service [velocity] org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/email/html/includes/emailconstants.vm [line 1,column 7] : ${textLinkColour} is not a valid reference. at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:277) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.parser.node.ASTStringLiteral.value(ASTStringLiteral.java:138) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:51) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:95) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.directive.Parse.render(Parse.java:181) 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.runtime.directive.Parse.render(Parse.java:181) 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.javahollic.jira.emh.service.AbstractMessageHandler.encodeAndSendEmail(AbstractMessageHandler.java:832) at com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:772) at com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:648) at com.javahollic.jira.emh.service.EMHIssueHandler.handleMessage(EMHIssueHandler.java:212) at com.javahollic.jira.emh.service.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:87) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:186) 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) 2011-11-07 11:59:40,157 QuartzWorker-1 WARN ServiceRunner JEMH IMAP Service [velocity] org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/email/html/includes/footer.vm [line 1,column 17] : ${textLinkColour} is not a valid reference. at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:277) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.parser.node.ASTStringLiteral.value(ASTStringLiteral.java:138) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:149) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.directive.Parse.render(Parse.java:181) 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.javahollic.jira.emh.service.AbstractMessageHandler.encodeAndSendEmail(AbstractMessageHandler.java:832) at com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:772) at com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:648) at com.javahollic.jira.emh.service.EMHIssueHandler.handleMessage(EMHIssueHandler.java:212) at com.javahollic.jira.emh.service.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:87) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:186) 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) 2011-11-07 11:59:40,157 QuartzWorker-1 WARN ServiceRunner JEMH IMAP Service [velocity] org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/email/html/includes/footer.vm [line 1,column 17] : ${textLinkColour} is not a valid reference. at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:277) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.parser.node.ASTStringLiteral.value(ASTStringLiteral.java:138) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:149) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.directive.Parse.render(Parse.java:181) 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.javahollic.jira.emh.service.AbstractMessageHandler.encodeAndSendEmail(AbstractMessageHandler.java:832) at com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:772) at com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:648) at com.javahollic.jira.emh.service.EMHIssueHandler.handleMessage(EMHIssueHandler.java:212) at com.javahollic.jira.emh.service.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:87) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:186) 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)

    JIRA | 5 years ago | dave fisher
    org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/email/html/includes/footer.vm [line 1,column 17] : ${textLinkColour} is not a valid reference.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Each time the JEMH mail handler processes an email, there's an exception in the atlassian-jira.log 2011-11-14 17:26:53,521 QuartzWorker-0 WARN ServiceRunner JEMH CreateOrCommentHandler [velocity] org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/email/html/includes/footer.vm [line 1,column 17] : ${textLinkColour} is not a valid reference. at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:277) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.parser.node.ASTStringLiteral.value(ASTStringLiteral.java:138) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:149) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.directive.Parse.render(Parse.java:181) 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.javahollic.jira.emh.service.AbstractMessageHandler.encodeAndSendEmail(AbstractMessageHandler.java:832) at com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:772) at com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:648) at com.javahollic.jira.emh.service.EMHIssueHandler.handleMessage(EMHIssueHandler.java:212) at com.javahollic.jira.emh.service.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:87) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:186) 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)

    JIRA | 5 years ago | Valentijn Scholten
    org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/email/html/includes/footer.vm [line 1,column 17] : ${textLinkColour} is not a valid reference.
  6. 0

    {noformat} 2011-06-20 06:48:46,436 QuartzWorker-0 WARN ServiceRunner Generic Mail Handler [velocity] org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/email/jemh/text/errorhint.vm [line 116,column 4] : $anAdmin.getFullName() is not a valid reference. at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:277) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) 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.javahollic.jira.emh.service.AbstractMessageHandler.encodeAndSendEmail(AbstractMessageHandler.java:851) at com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:779) at com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:655) at com.javahollic.jira.emh.service.EMHIssueHandler.handleMessage(EMHIssueHandler.java:205) at com.javahollic.jira.emh.service.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:79) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:187) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:65) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:52) 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) {noformat} Rolling back to 0.9.7.0 helps.

    JIRA | 5 years ago | Francis Martens (iDalko)
    org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/email/jemh/text/errorhint.vm [line 116,column 4] : $anAdmin.getFullName() is not a valid reference.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.velocity.runtime.exception.ReferenceException

      reference : template = templates/email/jemh/html/errorhint.vm [line 53,column 83] : $message.getSubject() is not a valid reference.

      at org.apache.velocity.runtime.parser.node.ASTReference.render()
    2. Apache Velocity
      VelocityEngine.mergeTemplate
      1. org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:277)
      2. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
      3. org.apache.velocity.Template.merge(Template.java:256)
      4. org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:422)
      4 frames
    3. com.atlassian.velocity
      DefaultVelocityManager.getEncodedBody
      1. com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:77)
      2. com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:61)
      2 frames
    4. com.javahollic.jira
      CreateOrCommentHandler.handleMessage
      1. com.javahollic.jira.emh.service.AbstractMessageHandler.encodeAndSendEmail(AbstractMessageHandler.java:855)
      2. com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:788)
      3. com.javahollic.jira.emh.service.AbstractMessageHandler.sendErrorHintsToEmailSender(AbstractMessageHandler.java:664)
      4. com.javahollic.jira.emh.service.EMHIssueHandler.handleMessage(EMHIssueHandler.java:207)
      5. com.javahollic.jira.emh.service.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:76)
      5 frames
    5. com.atlassian.jira
      ServiceRunner.execute
      1. com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:189)
      2. com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67)
      3. com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48)
      3 frames
    6. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:191)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
      2 frames