org.apache.velocity.exception.VelocityException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Stacktrace : {noformat} 2012-10-12 14:17:01,800 http-8512-1 ERROR admin 857x1242x1 m35win 127.0.0.1 /sr/jira.issueviews:searchrequest-excel-all-fields/temp/SearchRequest.xls [atlassian.jira.plugin.AbstractJiraModuleDescriptor] Error while rendering velocity template for 'view'. org.apache.velocity.exception.VelocityException: Could not find template 'templates/bonfire/customfield/bonfiretext/view-hidden.vm' ensure it is in the classpath. at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:76) at com.atlassian.jira.template.velocity.DefaultVelocityTemplatingEngine$DefaultRenderRequest.asHtml(DefaultVelocityTemplatingEngine.java:104) at com.atlassian.jira.plugin.AbstractJiraModuleDescriptor.getHtml(AbstractJiraModuleDescriptor.java:112) at com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptorImpl.getHtml(CustomFieldTypeModuleDescriptorImpl.java:209) at com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptorImpl.getViewHtmlByValue(CustomFieldTypeModuleDescriptorImpl.java:203) at com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptorImpl.getColumnViewHtml(CustomFieldTypeModuleDescriptorImpl.java:149) {noformat} Steps to reproduce : # Install JIRA 5.0.3 # Install Bonfire 1.8.4 on it # Now upgrade JIRA to 5.1.2 # Install Bonfire 2.4.1 on it. # Try to export issues to excel by navigating to Issue Navigator>Views> Excel (All Fields) # The above exception appears on the screen Please note however, the excel file gets exported and there is no error for the user.
    via by Ruchi Tandon[Atlassian],
  • Stacktrace : {noformat} 2012-10-12 14:17:01,800 http-8512-1 ERROR admin 857x1242x1 m35win 127.0.0.1 /sr/jira.issueviews:searchrequest-excel-all-fields/temp/SearchRequest.xls [atlassian.jira.plugin.AbstractJiraModuleDescriptor] Error while rendering velocity template for 'view'. org.apache.velocity.exception.VelocityException: Could not find template 'templates/bonfire/customfield/bonfiretext/view-hidden.vm' ensure it is in the classpath. at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:76) at com.atlassian.jira.template.velocity.DefaultVelocityTemplatingEngine$DefaultRenderRequest.asHtml(DefaultVelocityTemplatingEngine.java:104) at com.atlassian.jira.plugin.AbstractJiraModuleDescriptor.getHtml(AbstractJiraModuleDescriptor.java:112) at com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptorImpl.getHtml(CustomFieldTypeModuleDescriptorImpl.java:209) at com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptorImpl.getViewHtmlByValue(CustomFieldTypeModuleDescriptorImpl.java:203) at com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptorImpl.getColumnViewHtml(CustomFieldTypeModuleDescriptorImpl.java:149) {noformat} Steps to reproduce : # Install JIRA 5.0.3 # Install Bonfire 1.8.4 on it # Now upgrade JIRA to 5.1.2 # Install Bonfire 2.4.1 on it. # Try to export issues to excel by navigating to Issue Navigator>Views> Excel (All Fields) # The above exception appears on the screen Please note however, the excel file gets exported and there is no error for the user.
    via by Ruchi Tandon[Atlassian],
  • {code} 2013-02-07 15:02:07,950 http-127.0.0.1-9080-5 ERROR melias 902x159637x1 1gal4o5 59.167.133.100,172.16.1.187,127.0.0.1 /rest/greenhopper/1.0/xboard/issue/details.json [velocity] ResourceManager : unable to find resource 'templates/jira/issue/field/issuelinking-view.vm' in any resource loader. 2013-02-07 15:02:07,950 http-127.0.0.1-9080-5 ERROR melias 902x159637x1 1gal4o5 59.167.133.100,172.16.1.187,127.0.0.1 /rest/greenhopper/1.0/xboard/issue/details.json [com.atlassian.velocity.DefaultVelocityManager] ResourceNotFoundException occurred whilst loading resource 2013-02-07 15:02:07,951 http-127.0.0.1-9080-5 ERROR melias 902x159637x1 1gal4o5 59.167.133.100,172.16.1.187,127.0.0.1 /rest/greenhopper/1.0/xboard/issue/details.json [jira.issue.fields.AbstractOrderableField] Error occurred while rendering velocity template for 'templates/jira/issue/field//issuelinking-view.vm'. org.apache.velocity.exception.VelocityException: Could not find template 'templates/jira/issue/field/issuelinking-view.vm' ensure it is in the classpath. at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:76) at com.atlassian.jira.template.velocity.DefaultVelocityTemplatingEngine$DefaultRenderRequest.asHtml(DefaultVelocityTemplatingEngine.java:104) at com.atlassian.jira.issue.fields.AbstractOrderableField.renderTemplate(AbstractOrderableField.java:191) at com.atlassian.jira.issue.fields.IssueLinksSystemField.getViewVelocityTemplate(IssueLinksSystemField.java:173) at com.atlassian.jira.issue.fields.IssueLinksSystemField.getViewHtml(IssueLinksSystemField.java:161) at com.atlassian.jira.issue.fields.AbstractOrderableField.getViewHtml(AbstractOrderableField.java:166) at com.atlassian.greenhopper.web.rapid.issue.fields.SystemFieldEntryFactory.createViewEntry(SystemFieldEntryFactory.java:45) at com.atlassian.greenhopper.web.rapid.issue.IssueEntryFactory.getViewFields(IssueEntryFactory.java:610) at com.atlassian.greenhopper.web.rapid.issue.IssueEntryFactory.buildViewEntry(IssueEntryFactory.java:336) at com.atlassian.greenhopper.web.rapid.issue.IssueResource$1.call(IssueResource.java:121) at com.atlassian.greenhopper.web.rapid.issue.IssueResource$1.call(IssueResource.java:87) {code}
    via by Michael Ruflin [Atlassian],
  • {code} 2013-02-07 15:02:07,950 http-127.0.0.1-9080-5 ERROR melias 902x159637x1 1gal4o5 59.167.133.100,172.16.1.187,127.0.0.1 /rest/greenhopper/1.0/xboard/issue/details.json [velocity] ResourceManager : unable to find resource 'templates/jira/issue/field/issuelinking-view.vm' in any resource loader. 2013-02-07 15:02:07,950 http-127.0.0.1-9080-5 ERROR melias 902x159637x1 1gal4o5 59.167.133.100,172.16.1.187,127.0.0.1 /rest/greenhopper/1.0/xboard/issue/details.json [com.atlassian.velocity.DefaultVelocityManager] ResourceNotFoundException occurred whilst loading resource 2013-02-07 15:02:07,951 http-127.0.0.1-9080-5 ERROR melias 902x159637x1 1gal4o5 59.167.133.100,172.16.1.187,127.0.0.1 /rest/greenhopper/1.0/xboard/issue/details.json [jira.issue.fields.AbstractOrderableField] Error occurred while rendering velocity template for 'templates/jira/issue/field//issuelinking-view.vm'. org.apache.velocity.exception.VelocityException: Could not find template 'templates/jira/issue/field/issuelinking-view.vm' ensure it is in the classpath. at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:76) at com.atlassian.jira.template.velocity.DefaultVelocityTemplatingEngine$DefaultRenderRequest.asHtml(DefaultVelocityTemplatingEngine.java:104) at com.atlassian.jira.issue.fields.AbstractOrderableField.renderTemplate(AbstractOrderableField.java:191) at com.atlassian.jira.issue.fields.IssueLinksSystemField.getViewVelocityTemplate(IssueLinksSystemField.java:173) at com.atlassian.jira.issue.fields.IssueLinksSystemField.getViewHtml(IssueLinksSystemField.java:161) at com.atlassian.jira.issue.fields.AbstractOrderableField.getViewHtml(AbstractOrderableField.java:166) at com.atlassian.greenhopper.web.rapid.issue.fields.SystemFieldEntryFactory.createViewEntry(SystemFieldEntryFactory.java:45) at com.atlassian.greenhopper.web.rapid.issue.IssueEntryFactory.getViewFields(IssueEntryFactory.java:610) at com.atlassian.greenhopper.web.rapid.issue.IssueEntryFactory.buildViewEntry(IssueEntryFactory.java:336) at com.atlassian.greenhopper.web.rapid.issue.IssueResource$1.call(IssueResource.java:121) at com.atlassian.greenhopper.web.rapid.issue.IssueResource$1.call(IssueResource.java:87) {code}
    via by Michael Ruflin [Atlassian],
  • When a mail is generated by the default notification scheme it sits on the mail queue and is not sent. Every time the application tries to send the mail the following exception is logged. 2004-05-19 13:03:30,966 ERROR [atlassian.jira.mail.IssueMailQueueItem] Could not find template 'templates\email\text/issuecreated.vm' ensure it is in the classpath. org.apache.velocity.exception.VelocityException: Could not find template 'templates\email\text/issuecreated.vm' ensure it is in the classpath. at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:88) at com.atlassian.jira.mail.MailingListCompiler.sendLists(MailingListCompiler.java:155) at com.atlassian.jira.mail.MailingListCompiler.sendLists(MailingListCompiler.java:106) at com.atlassian.jira.mail.IssueMailQueueItem.send(IssueMailQueueItem.java:107) at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:55) at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:23) at com.atlassian.jira.service.JiraServiceContainer.run(JiraServiceContainer.java:51) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:50) at org.quartz.core.JobRunShell.run(JobRunShell.java:147) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:387) 2004-05-19 13:03:30,966 ERROR [atlassian.mail.queue.MailQueueImpl] com.atlassian.mail.MailException: Could not find template 'templates\email\text/issuecreated.vm' ensure it is in the classpath. I have checked in the war file and the files are there
    via by Graeme Penny,
    • org.apache.velocity.exception.VelocityException: Could not find template 'templates/bonfire/customfield/bonfiretext/view-hidden.vm' ensure it is in the classpath. at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:76) at com.atlassian.jira.template.velocity.DefaultVelocityTemplatingEngine$DefaultRenderRequest.asHtml(DefaultVelocityTemplatingEngine.java:104) at com.atlassian.jira.plugin.AbstractJiraModuleDescriptor.getHtml(AbstractJiraModuleDescriptor.java:112) at com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptorImpl.getHtml(CustomFieldTypeModuleDescriptorImpl.java:209) at com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptorImpl.getViewHtmlByValue(CustomFieldTypeModuleDescriptorImpl.java:203) at com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptorImpl.getColumnViewHtml(CustomFieldTypeModuleDescriptorImpl.java:149)
    No Bugmate found.