org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/plugins/jira/portlets/statsbody.vm [line 27,column 32] : $value.getString('name') is not a valid reference.

Atlassian JIRA | Jeff Turner | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    This error occurs when viewing the dashboard with a stats portlet, where one of the issue types has a NULL description. This shouldn't normally happen, as not specifying the description results in it having a '' description (in MySQL): 2005-01-18 17:48:02,074 WARN [velocity] org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/plugins/jira/portlets/statsbody.vm [line 27,column 32] : $value.getString('name') 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.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.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) 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.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.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.portal.PortletImpl.getViewHtml(PortletImpl.java:47) at _secure._views._dashboard__jsp._jspService(_dashboard__jsp.java:1579)

    Atlassian JIRA | 1 decade ago | Jeff Turner
    org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/plugins/jira/portlets/statsbody.vm [line 27,column 32] : $value.getString('name') is not a valid reference.
  2. 0

    This error occurs when viewing the dashboard with a stats portlet, where one of the issue types has a NULL description. This shouldn't normally happen, as not specifying the description results in it having a '' description (in MySQL): 2005-01-18 17:48:02,074 WARN [velocity] org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/plugins/jira/portlets/statsbody.vm [line 27,column 32] : $value.getString('name') 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.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.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) 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.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.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.portal.PortletImpl.getViewHtml(PortletImpl.java:47) at _secure._views._dashboard__jsp._jspService(_dashboard__jsp.java:1579)

    Atlassian JIRA | 1 decade ago | Jeff Turner
    org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/plugins/jira/portlets/statsbody.vm [line 27,column 32] : $value.getString('name') 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/jira/portlets/statsbody.vm [line 27,column 32] : $value.getString('name') 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.SimpleNode.render(SimpleNode.java:230)
      6. org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:172)
      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.ASTBlock.render(ASTBlock.java:55)
      11. org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166)
      12. org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
      13. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
      14. org.apache.velocity.runtime.directive.Parse.render(Parse.java:181)
      15. org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
      16. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
      17. org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70)
      18. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
      19. org.apache.velocity.Template.merge(Template.java:256)
      20. org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450)
      20 frames
    3. com.atlassian.velocity
      DefaultVelocityManager.getEncodedBody
      1. com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:97)
      2. com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:77)
      2 frames
    4. com.atlassian.jira
      PortletImpl.getViewHtml
      1. com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getHtml(JiraResourcedModuleDescriptor.java:79)
      2. com.atlassian.jira.portal.PortletImpl.getViewHtml(PortletImpl.java:47)
      2 frames
    5. _secure._views
      _dashboard__jsp._jspService
      1. _secure._views._dashboard__jsp._jspService(_dashboard__jsp.java:1579)
      1 frame