Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-62363

JIRA throws NPE at Outgoing Authentication page for Generic Application links

    XMLWordPrintable

Details

    Description

      Summary

      JIRA throws NPE at Outgoing Authentication page for Generic Application links

      Steps to Reproduce

      1. Go to Administration > Applications > Application links and configure new Generic Application link
      2. Click Edit of newly created link and go to Outgoing Authentication tab.

      Expected Results

      Page renders properly.

      Actual Results

      You get Error page:

      and error in the logs:

      2016-08-29 16:46:24,073 http-nio-8081-exec-1 ERROR      [o.a.c.c.C.[.[localhost].[/].[servlet-module-container-servlet]] Servlet.service() for servlet [servlet-module-container-servlet] in context with path [] threw exception
      com.atlassian.templaterenderer.RenderingException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getText' in  class com.sun.proxy.$Proxy1475 threw exception java.lang.NullPointerException at com/atlassian/applinks/oauth/auth/outbound_non
      applinks.vm[line 52, column 44]
              at com.atlassian.templaterenderer.velocity.one.six.internal.VelocityTemplateRendererImpl.render(VelocityTemplateRendererImpl.java:109)
              at sun.reflect.GeneratedMethodAccessor442.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
      .... 
             at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getText' in  class com.sun.proxy.$Proxy1475 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)
      ...
      Caused by: java.lang.NullPointerException
              at com.atlassian.jira.i18n.AbstractI18nResolver.getText(AbstractI18nResolver.java:24)
              at sun.reflect.GeneratedMethodAccessor313.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      ...
      

      Notes

      None

      Workaround

      If you don't use outgoing link you can ignore the error.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ayakovlev@atlassian.com Andriy Yakovlev [Atlassian]
              Votes:
              8 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated: