org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/plugins/issueviews/single-word.vm [line 437,column 91 ] : $textutils.htmlEncode($comment.roleLevel) is not a valid reference.

Atlassian JIRA | Jed Wesley-Smith | 9 years ago
  1. 0

    After deploying 3.12.3 to JAC we have noticed the following in the logs: {noformat} 2008-04-16 23:23:40,012 resin-tcp-connection-j2ee.jira.atlassian.com:8080-37 WARN [velocity] org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/plugins/issueviews/single-word.vm [line 437,column 91 ] : $textutils.htmlEncode($comment.roleLevel) 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.parser.node.ASTElseIfStatement.render(ASTElseIfStatement.java:78) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:89) 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:450) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:76) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:60) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:55) at com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getHtml(JiraResourcedModuleDescriptor.java:95) at com.atlassian.jira.issue.views.AbstractIssueHtmlView.getBody(AbstractIssueHtmlView.java:95) at com.atlassian.jira.issue.views.SearchRequestRSSView$1.writeIssue(SearchRequestRSSView.java:75) at com.atlassian.jira.issue.views.util.SearchRequestViewBodyWriterUtil$1.writeIssue(SearchRequestViewBodyWriterUtil.java:57) at com.atlassian.jira.issue.views.util.IssueWriterHitCollector.collect(IssueWriterHitCollector.java:30) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:128) at com.atlassian.jira.issue.views.util.SearchRequestViewBodyWriterUtil.writeBody(SearchRequestViewBodyWriterUtil.java:61) at com.atlassian.jira.issue.views.SearchRequestRSSView.writeSearchResults(SearchRequestRSSView.java:85) at com.atlassian.jira.plugin.searchrequestview.SearchRequestURLHandler.handleRequest(SearchRequestURLHandler.java:244) at com.atlassian.jira.web.servlet.SearchRequestViewServlet.doGet(SearchRequestViewServlet.java:27) {noformat} Need to investigate cause/symptoms and fix.

    Atlassian JIRA | 9 years ago | Jed Wesley-Smith
    org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/plugins/issueviews/single-word.vm [line 437,column 91 ] : $textutils.htmlEncode($comment.roleLevel) is not a valid reference.
  2. 0

    After deploying 3.12.3 to JAC we have noticed the following in the logs: {noformat} 2008-04-16 23:23:40,012 resin-tcp-connection-j2ee.jira.atlassian.com:8080-37 WARN [velocity] org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/plugins/issueviews/single-word.vm [line 437,column 91 ] : $textutils.htmlEncode($comment.roleLevel) 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.parser.node.ASTElseIfStatement.render(ASTElseIfStatement.java:78) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:89) 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:450) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:76) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:60) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:55) at com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getHtml(JiraResourcedModuleDescriptor.java:95) at com.atlassian.jira.issue.views.AbstractIssueHtmlView.getBody(AbstractIssueHtmlView.java:95) at com.atlassian.jira.issue.views.SearchRequestRSSView$1.writeIssue(SearchRequestRSSView.java:75) at com.atlassian.jira.issue.views.util.SearchRequestViewBodyWriterUtil$1.writeIssue(SearchRequestViewBodyWriterUtil.java:57) at com.atlassian.jira.issue.views.util.IssueWriterHitCollector.collect(IssueWriterHitCollector.java:30) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:128) at com.atlassian.jira.issue.views.util.SearchRequestViewBodyWriterUtil.writeBody(SearchRequestViewBodyWriterUtil.java:61) at com.atlassian.jira.issue.views.SearchRequestRSSView.writeSearchResults(SearchRequestRSSView.java:85) at com.atlassian.jira.plugin.searchrequestview.SearchRequestURLHandler.handleRequest(SearchRequestURLHandler.java:244) at com.atlassian.jira.web.servlet.SearchRequestViewServlet.doGet(SearchRequestViewServlet.java:27) {noformat} Need to investigate cause/symptoms and fix.

    Atlassian JIRA | 9 years ago | Jed Wesley-Smith
    org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/plugins/issueviews/single-word.vm [line 437,column 91 ] : $textutils.htmlEncode($comment.roleLevel) is not a valid reference.
  3. 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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    2005-01-18 02:22:41,470 ERROR [velocity] Left side ($constant.getString("iconurl").startsWith("http://")) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. templates/plugins/jira/projectpanels/popularissues-panel.vm [line 1, column 61] 2005-01-18 02:22:41,473 WARN [velocity] org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/plugins/jira/projectpanels/popularissues-panel.vm [line 4,column 27] : $constant.getString("iconurl") 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.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:89) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:172) 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.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:450) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:97) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:77) at com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getHtml(JiraResourcedModuleDescriptor.java:79) at com.atlassian.jira.plugin.projectpanel.impl.PopularIssuesProjectTabPanel.getHtml(PopularIssuesProjectTabPanel.java:52) at com.atlassian.jira.web.action.browser.Browser.getProjectTabHtml(Browser.java:292)

    Atlassian JIRA | 1 decade ago | Jeff Turner
    org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/plugins/jira/projectpanels/popularissues-panel.vm [line 4,column 27] : $constant.getString("iconurl") is not a valid reference.
  6. 0

    2005-01-18 02:22:41,432 WARN [velocity] org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/plugins/jira/projectpanels/popularissues-panel.vm [line 4,column 174] : $constant.getString("description") 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.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:89) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:172) 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.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:450) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:97) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:77) at com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getHtml(JiraResourcedModuleDescriptor.java:79) at com.atlassian.jira.plugin.projectpanel.impl.PopularIssuesProjectTabPanel.getHtml(PopularIssuesProjectTabPanel.java:52) at com.atlassian.jira.web.action.browser.Browser.getProjectTabHtml(Browser.java:292)

    Atlassian JIRA | 1 decade ago | Jeff Turner
    org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/plugins/jira/projectpanels/popularissues-panel.vm [line 4,column 174] : $constant.getString("description") 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/plugins/issueviews/single-word.vm [line 437,column 91 ] : $textutils.htmlEncode($comment.roleLevel) 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.ASTBlock.render(ASTBlock.java:55)
      3. org.apache.velocity.runtime.parser.node.ASTElseIfStatement.render(ASTElseIfStatement.java:78)
      4. org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:89)
      5. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
      6. org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166)
      7. org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
      8. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
      9. org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70)
      10. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
      11. org.apache.velocity.Template.merge(Template.java:256)
      12. org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450)
      12 frames
    3. com.atlassian.velocity
      DefaultVelocityManager.getEncodedBody
      1. com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:76)
      2. com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:60)
      3. com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:55)
      3 frames
    4. com.atlassian.jira
      SearchRequestViewServlet.doGet
      1. com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getHtml(JiraResourcedModuleDescriptor.java:95)
      2. com.atlassian.jira.issue.views.AbstractIssueHtmlView.getBody(AbstractIssueHtmlView.java:95)
      3. com.atlassian.jira.issue.views.SearchRequestRSSView$1.writeIssue(SearchRequestRSSView.java:75)
      4. com.atlassian.jira.issue.views.util.SearchRequestViewBodyWriterUtil$1.writeIssue(SearchRequestViewBodyWriterUtil.java:57)
      5. com.atlassian.jira.issue.views.util.IssueWriterHitCollector.collect(IssueWriterHitCollector.java:30)
      6. com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:128)
      7. com.atlassian.jira.issue.views.util.SearchRequestViewBodyWriterUtil.writeBody(SearchRequestViewBodyWriterUtil.java:61)
      8. com.atlassian.jira.issue.views.SearchRequestRSSView.writeSearchResults(SearchRequestRSSView.java:85)
      9. com.atlassian.jira.plugin.searchrequestview.SearchRequestURLHandler.handleRequest(SearchRequestURLHandler.java:244)
      10. com.atlassian.jira.web.servlet.SearchRequestViewServlet.doGet(SearchRequestViewServlet.java:27)
      10 frames