Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
7.1.0
-
7.01
-
3
-
Severity 3 - Minor
-
0
-
Description
Summary
As described under known causes for the issue described in How to fix gadget titles showing as __MSG_gadget, broken Application links can cause dashboard gadget title i18n keys not to render properly.
Environment
- JIRA 7.1+
Steps to Reproduce
- Configure Application Links from JIRA to other applications that have been taken down after i.e. the Application URLs are no longer valid, or there are issues connecting to the remote applications through the applink.
- Go to a JIRA dashboard and observe the display of gadget titles, or scroll down the list of gadgets available in the gadget directory when trying to add a new gadget.
Expected Results
Gadget titles are not affected and display correctly.
Actual Results
Gadget titles display translation keys instead of the actual title e.g. _MSG_gadget.activity.stream.title_ instead of 'Activity Stream'.
The following may appear in atlassian-jira.log file the logs:
2016-02-26 13:48:12,564 http-nio-2186-exec-23 ERROR [o.a.c.c.C.[.[localhost].[/JSP-262186].[servlet-module-container-servlet]] Servlet.service() for servlet [servlet-module-container-servlet] in context with path [/JSP-262186] threw exception com.atlassian.templaterenderer.RenderingException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getText' in class com.sun.proxy.$Proxy12830 threw exception java.lang.NullPointerException at com/atlassian/applinks/oauth/auth/outbound_nonapplinks.vm[line 52, column 44] at com.atlassian.templaterenderer.velocity.one.six.internal.VelocityTemplateRendererImpl.render(VelocityTemplateRendererImpl.java:109) at sun.reflect.GeneratedMethodAccessor1986.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ... Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getText' in class com.sun.proxy.$Proxy12830 threw exception java.lang.NullPointerException at com/atlassian/applinks/oauth/auth/outbound_nonapplinks.vm[line 52, column 44] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:342) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) at org.apache.velocity.Template.merge(Template.java:235) at com.atlassian.templaterenderer.velocity.one.six.internal.VelocityTemplateRendererImpl.render(VelocityTemplateRendererImpl.java:100) ... 234 more Caused by: java.lang.NullPointerException at com.atlassian.jira.i18n.AbstractI18nResolver.getText(AbstractI18nResolver.java:24) at sun.reflect.GeneratedMethodAccessor1918.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497)
Workaround
As explained in the KB article above, simply fix the broken Application Links.
If you continue to see this broken titles after correcting applinks please see the KB for other known causes.
Attachments
Issue Links
- is caused by
-
APL-1311 Loading...