JIRA Unable To Load Custom Release Notes Template Due To 'differing numbers of names and templates specified in properties file' Error
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
It should be possible for us to create a custom velocity file for Release Notes template, as per outlined in the documentation on Creating a Custom Release Notes Template Containing Release Comments. However when we try to access the Release Notes screen in JIRA, the page becomes blank:

And the following exceptions appears in the atlassian-jira.log
:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
2012-09-12 17:34:57,902 http-8080-1 ERROR anonymous 1054x3x1 1r90j3y 0:0:0:0:0:0:0:1 /secure/ReleaseNote.jspa [webwork.util.ValueStack] query="releaseNote" {[id="releaseNote" type="8" values=""]}
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)
at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56)
at webwork.util.ValueStack.findValue(ValueStack.java:414)
at webwork.util.ValueStack.findValue(ValueStack.java:213)
at webwork.view.taglib.WebWorkBodyTagSupport.findValue(WebWorkBodyTagSupport.java:62)
at webwork.view.taglib.BasicPropertyTag.doStartTag(BasicPropertyTag.java:54)
at org.apache.jsp.secure.views.project.releasenote_jsp._jspx_meth_ww_005fproperty_005f0(releasenote_jsp.java:127)
at org.apache.jsp.secure.views.project.releasenote_jsp._jspService(releasenote_jsp.java:77)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
[......]
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.RuntimeException: Error loading release notes; differing numbers of names and templates specified in properties file.
at com.atlassian.jira.project.util.ReleaseNoteManager.loadReleaseNoteTemplates(ReleaseNoteManager.java:103)
at com.atlassian.jira.project.util.ReleaseNoteManager.getStyles(ReleaseNoteManager.java:76)
at com.atlassian.jira.project.util.ReleaseNoteManager.getReleaseNote(ReleaseNoteManager.java:125)
at com.atlassian.jira.web.action.browser.ReleaseNote.getReleaseNote(ReleaseNote.java:97)
... 200 more
Cause
For each new template format, the corresponding templates must be added to the jira-config.properties
file. Hence this problem could arise if the required property is missing, or some templates are not added to the jira-config.properties
file.
Resolution
Open the
$JIRA_HOME/jira-config.properties
file, and ensure that the following property is defined in the file and all of the template file is defined:jira-config.properties
1 2
jira.releasenotes.templates = releasenotes-html.vm, releasenotes-text.vm, custom-releasenotes-html.vm jira.releasenotes.templatenames = releasenotes-html.vm, releasenotes-text.vm, custom-releasenotes-html.vm
ℹ️
custom-releasenotes-html.vm
file is a sample custom release not template name
Was this helpful?