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]

Atlassian JIRA | Taiwo Akindele [Atlassian] | 9 months ago
  1. 0

    h3. Summary As described under known causes for the issue described in [How to fix gadget titles showing as __MSG_gadget|https://confluence.atlassian.com/display/JIRAKB/How+to+fix+gadget+titles+showing+as+__MSG_gadget], broken Application links can cause dashboard gadget title i18n keys not to render properly. h3. Environment * JIRA 7.1+ h3. 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. h3. Expected Results Gadget titles are not affected and display correctly. h3. 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: {noformat} 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) {noformat} h3.Workaround As explained in the KB article above, simply fix the broken Application Links. (i) If you continue to see this broken titles after correcting applinks please see the [KB|https://confluence.atlassian.com/display/JIRAKB/How+to+fix+gadget+titles+showing+as+__MSG_gadget] for other known causes.

    Atlassian JIRA | 9 months ago | Taiwo Akindele [Atlassian]
    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]
  2. 0

    h3. Summary As described under known causes for the issue described in [How to fix gadget titles showing as __MSG_gadget|https://confluence.atlassian.com/display/JIRAKB/How+to+fix+gadget+titles+showing+as+__MSG_gadget], broken Application links can cause dashboard gadget title i18n keys not to render properly. h3. Environment * JIRA 7.1+ h3. 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. h3. Expected Results Gadget titles are not affected and display correctly. h3. 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: {noformat} 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) {noformat} h3.Workaround As explained in the KB article above, simply fix the broken Application Links. (i) If you continue to see this broken titles after correcting applinks please see the [KB|https://confluence.atlassian.com/display/JIRAKB/How+to+fix+gadget+titles+showing+as+__MSG_gadget] for other known causes.

    Atlassian JIRA | 9 months ago | Taiwo Akindele [Atlassian]
    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]
  3. 0

    How to fix gadget titles showing as __MSG_gadget - Atlassian Documentation

    atlassian.com | 4 months ago
    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]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I upgraded from Stash 3.7.1 -> 3.9.1. I had some applinks to my other JIRA apps, and now when I try and go to the Application Links screen, I get a 500 error. The logs report: {noformat} 2015-05-18 22:14:44,146 ERROR [http-nio-127.0.0.1-8803-exec-7] prez @4OWM7Ex1334x48x0 10bxhzg 64.27.17.129,127.0.0.1 "GET /plugins/servlet/applinks/listApplicationLinks HTTP/1.0" org.apache.velocity Exception rendering #parse(com/atlassian/applinks/ui/admin/common_header.vm) at com/atlassian/applinks/ui/admin/list_application_links.vm[line 49, column 5] 2015-05-18 22:14:44,225 ERROR [http-nio-127.0.0.1-8803-exec-7] @4OWM7Ex1334x49x0 10bxhzg 64.27.17.129,127.0.0.1 "GET /mvc/error500 HTTP/1.0" c.a.s.i.web.ErrorPageController There was an unhandled exception loading [/plugins/servlet/applinks/listApplicationLinks] com.atlassian.templaterenderer.RenderingException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getOrphanedTrustCertificates' in class com.atlassian.applinks.ui.velocity.ListApplicationLinksContext threw exception java.lang.NoClassDefFoundError: com/atlassian/ip/Subnet at com/atlassian/applinks/ui/admin/common_header.vm[line 11, column 20] at com.atlassian.templaterenderer.velocity.one.six.internal.VelocityTemplateRendererImpl.render(VelocityTemplateRendererImpl.java:109) ~[na:na] at com.atlassian.applinks.ui.AbstractApplinksServlet.render(AbstractApplinksServlet.java:288) ~[na:na] at com.atlassian.applinks.ui.ListApplicationLinksServlet.doGet(ListApplicationLinksServlet.java:108) ~[na:na] at com.atlassian.applinks.ui.AbstractApplinksServlet.service(AbstractApplinksServlet.java:159) ~[na:na] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) ~[na:na] at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:181) ~[sitemesh-2.5-atlassian-11.jar:na] at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:85) ~[sitemesh-2.5-atlassian-11.jar:na] at com.atlassian.stash.internal.spring.security.StashAuthenticationFilter.doFilter(StashAuthenticationFilter.java:83) ~[StashAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doInsideSpringSecurityChain(BeforeLoginPluginAuthenticationFilter.java:111) ~[BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:77) ~[BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:103) ~[atlassian-trusted-apps-core-4.0.0.jar:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:79) ~[na:na] at com.atlassian.analytics.client.filter.DefaultAnalyticsFilter.doFilter(DefaultAnalyticsFilter.java:32) ~[na:na] at com.atlassian.analytics.client.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:32) ~[na:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doBeforeBeforeLoginFilters(BeforeLoginPluginAuthenticationFilter.java:89) ~[BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:75) ~[BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.request.DefaultRequestManager.doAsRequest(DefaultRequestManager.java:85) ~[stash-service-impl-3.9.1.jar:na] at com.atlassian.stash.internal.hazelcast.ConfigurableWebFilter.doFilter(ConfigurableWebFilter.java:38) ~[ConfigurableWebFilter.class:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_79] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_79] ... 208 frames trimmed Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getOrphanedTrustCertificates' in class com.atlassian.applinks.ui.velocity.ListApplicationLinksContext threw exception java.lang.NoClassDefFoundError: com/atlassian/ip/Subnet at com/atlassian/applinks/ui/admin/common_header.vm[line 11, column 20] at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:237) ~[na:na] at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252) ~[na:na] at org.apache.velocity.runtime.parser.node.ASTReference.evaluate(ASTReference.java:460) ~[na:na] at org.apache.velocity.runtime.parser.node.ASTNotNode.evaluate(ASTNotNode.java:63) ~[na:na] at org.apache.velocity.runtime.parser.node.ASTAndNode.evaluate(ASTAndNode.java:104) ~[na:na] at org.apache.velocity.runtime.parser.node.ASTExpression.evaluate(ASTExpression.java:62) ~[na:na] at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:85) ~[na:na] at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) ~[na:na] at org.apache.velocity.runtime.directive.Parse.render(Parse.java:260) ~[na:na] at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175) ~[na:na] at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) ~[na:na] at org.apache.velocity.Template.merge(Template.java:328) ~[na:na] at org.apache.velocity.Template.merge(Template.java:235) ~[na:na] at com.atlassian.templaterenderer.velocity.one.six.internal.VelocityTemplateRendererImpl.render(VelocityTemplateRendererImpl.java:100) ~[na:na] ... 20 common frames omitted Caused by: java.lang.NoClassDefFoundError: com/atlassian/ip/Subnet at com.atlassian.security.auth.trustedapps.AtlassianIPMatcher.parsePatternString(AtlassianIPMatcher.java:56) ~[atlassian-trusted-apps-core-4.0.0.jar:na] at com.atlassian.security.auth.trustedapps.RequestConditions$RulesBuilder.addIPPattern(RequestConditions.java:45) ~[atlassian-trusted-apps-core-4.0.0.jar:na] at com.atlassian.stash.internal.auth.trusted.TrustedApplicationsManagerImpl$1.apply(TrustedApplicationsManagerImpl.java:171) ~[stash-service-impl-3.9.1.jar:na] at com.atlassian.stash.internal.auth.trusted.TrustedApplicationsManagerImpl$1.apply(TrustedApplicationsManagerImpl.java:166) ~[stash-service-impl-3.9.1.jar:na] at com.google.common.collect.Iterators$8.next(Iterators.java:812) ~[guava-11.0.2-atlassian-02.jar:na] at com.google.common.collect.Lists.newArrayList(Lists.java:139) ~[guava-11.0.2-atlassian-02.jar:na] at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:256) ~[guava-11.0.2-atlassian-02.jar:na] at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:217) ~[guava-11.0.2-atlassian-02.jar:na] at com.atlassian.stash.internal.auth.trusted.TrustedApplicationsManagerImpl.getTrustedApplications(TrustedApplicationsManagerImpl.java:98) ~[stash-service-impl-3.9.1.jar:na] at com.atlassian.applinks.core.auth.trusted.TrustedAppsOrphanedTrustDetector.findOrphanedTrustCertificates(TrustedAppsOrphanedTrustDetector.java:59) ~[na:na] at com.atlassian.applinks.core.auth.DelegatingOrphanedTrustDetector.findOrphanedTrustCertificates(DelegatingOrphanedTrustDetector.java:30) ~[na:na] at com.atlassian.applinks.ui.velocity.ListApplicationLinksContext.getOrphanedTrustCertificates(ListApplicationLinksContext.java:137) ~[na:na] at org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyExecutor.java:142) ~[na:na] at org.apache.velocity.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectImpl.java:533) ~[na:na] at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:198) ~[na:na] ... 33 common frames omitted Caused by: java.lang.ClassNotFoundException: com.atlassian.ip.Subnet at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1295) ~[catalina.jar:8.0.15] ... 48 common frames omitted {noformat} Was a library left out of this release or something? I've not tried manually deleting the app links in the DB ,but I should not have to :) h4. Workaround Copy {{atlassian-ip-2.0.jar}} to {{<STASH_INSTALL>/atlassian-stash/WEB-INF/lib/}}. You can find this in your previous Stash installation directory at the same location. If you do not have a previous installation, you can download 3.8.1 [here|https://www.atlassian.com/software/stash/downloads/binary/atlassian-stash-3.8.1.tar.gz], unzip it, and it will be at {{atlassian-stash/WEB-INF/lib}}. The JAR can also be downloaded directly from [here|https://maven.atlassian.com/service/local/repositories/atlassian-public/content/com/atlassian/ip/atlassian-ip/2.0/atlassian-ip-2.0.jar].

    Atlassian JIRA | 2 years ago | Preston Elder
    com.atlassian.templaterenderer.RenderingException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getOrphanedTrustCertificates' in class com.atlassian.applinks.ui.velocity.ListApplicationLinksContext threw exception java.lang.NoClassDefFoundError: com/atlassian/ip/Subnet at com/atlassian/applinks/ui/admin/common_header.vm[line 11, column 20]
  6. 0

    I upgraded from Stash 3.7.1 -> 3.9.1. I had some applinks to my other JIRA apps, and now when I try and go to the Application Links screen, I get a 500 error. The logs report: {noformat} 2015-05-18 22:14:44,146 ERROR [http-nio-127.0.0.1-8803-exec-7] prez @4OWM7Ex1334x48x0 10bxhzg 64.27.17.129,127.0.0.1 "GET /plugins/servlet/applinks/listApplicationLinks HTTP/1.0" org.apache.velocity Exception rendering #parse(com/atlassian/applinks/ui/admin/common_header.vm) at com/atlassian/applinks/ui/admin/list_application_links.vm[line 49, column 5] 2015-05-18 22:14:44,225 ERROR [http-nio-127.0.0.1-8803-exec-7] @4OWM7Ex1334x49x0 10bxhzg 64.27.17.129,127.0.0.1 "GET /mvc/error500 HTTP/1.0" c.a.s.i.web.ErrorPageController There was an unhandled exception loading [/plugins/servlet/applinks/listApplicationLinks] com.atlassian.templaterenderer.RenderingException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getOrphanedTrustCertificates' in class com.atlassian.applinks.ui.velocity.ListApplicationLinksContext threw exception java.lang.NoClassDefFoundError: com/atlassian/ip/Subnet at com/atlassian/applinks/ui/admin/common_header.vm[line 11, column 20] at com.atlassian.templaterenderer.velocity.one.six.internal.VelocityTemplateRendererImpl.render(VelocityTemplateRendererImpl.java:109) ~[na:na] at com.atlassian.applinks.ui.AbstractApplinksServlet.render(AbstractApplinksServlet.java:288) ~[na:na] at com.atlassian.applinks.ui.ListApplicationLinksServlet.doGet(ListApplicationLinksServlet.java:108) ~[na:na] at com.atlassian.applinks.ui.AbstractApplinksServlet.service(AbstractApplinksServlet.java:159) ~[na:na] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) ~[na:na] at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:181) ~[sitemesh-2.5-atlassian-11.jar:na] at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:85) ~[sitemesh-2.5-atlassian-11.jar:na] at com.atlassian.stash.internal.spring.security.StashAuthenticationFilter.doFilter(StashAuthenticationFilter.java:83) ~[StashAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doInsideSpringSecurityChain(BeforeLoginPluginAuthenticationFilter.java:111) ~[BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:77) ~[BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:103) ~[atlassian-trusted-apps-core-4.0.0.jar:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:79) ~[na:na] at com.atlassian.analytics.client.filter.DefaultAnalyticsFilter.doFilter(DefaultAnalyticsFilter.java:32) ~[na:na] at com.atlassian.analytics.client.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:32) ~[na:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doBeforeBeforeLoginFilters(BeforeLoginPluginAuthenticationFilter.java:89) ~[BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:75) ~[BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.request.DefaultRequestManager.doAsRequest(DefaultRequestManager.java:85) ~[stash-service-impl-3.9.1.jar:na] at com.atlassian.stash.internal.hazelcast.ConfigurableWebFilter.doFilter(ConfigurableWebFilter.java:38) ~[ConfigurableWebFilter.class:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_79] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_79] ... 208 frames trimmed Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getOrphanedTrustCertificates' in class com.atlassian.applinks.ui.velocity.ListApplicationLinksContext threw exception java.lang.NoClassDefFoundError: com/atlassian/ip/Subnet at com/atlassian/applinks/ui/admin/common_header.vm[line 11, column 20] at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:237) ~[na:na] at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252) ~[na:na] at org.apache.velocity.runtime.parser.node.ASTReference.evaluate(ASTReference.java:460) ~[na:na] at org.apache.velocity.runtime.parser.node.ASTNotNode.evaluate(ASTNotNode.java:63) ~[na:na] at org.apache.velocity.runtime.parser.node.ASTAndNode.evaluate(ASTAndNode.java:104) ~[na:na] at org.apache.velocity.runtime.parser.node.ASTExpression.evaluate(ASTExpression.java:62) ~[na:na] at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:85) ~[na:na] at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) ~[na:na] at org.apache.velocity.runtime.directive.Parse.render(Parse.java:260) ~[na:na] at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175) ~[na:na] at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) ~[na:na] at org.apache.velocity.Template.merge(Template.java:328) ~[na:na] at org.apache.velocity.Template.merge(Template.java:235) ~[na:na] at com.atlassian.templaterenderer.velocity.one.six.internal.VelocityTemplateRendererImpl.render(VelocityTemplateRendererImpl.java:100) ~[na:na] ... 20 common frames omitted Caused by: java.lang.NoClassDefFoundError: com/atlassian/ip/Subnet at com.atlassian.security.auth.trustedapps.AtlassianIPMatcher.parsePatternString(AtlassianIPMatcher.java:56) ~[atlassian-trusted-apps-core-4.0.0.jar:na] at com.atlassian.security.auth.trustedapps.RequestConditions$RulesBuilder.addIPPattern(RequestConditions.java:45) ~[atlassian-trusted-apps-core-4.0.0.jar:na] at com.atlassian.stash.internal.auth.trusted.TrustedApplicationsManagerImpl$1.apply(TrustedApplicationsManagerImpl.java:171) ~[stash-service-impl-3.9.1.jar:na] at com.atlassian.stash.internal.auth.trusted.TrustedApplicationsManagerImpl$1.apply(TrustedApplicationsManagerImpl.java:166) ~[stash-service-impl-3.9.1.jar:na] at com.google.common.collect.Iterators$8.next(Iterators.java:812) ~[guava-11.0.2-atlassian-02.jar:na] at com.google.common.collect.Lists.newArrayList(Lists.java:139) ~[guava-11.0.2-atlassian-02.jar:na] at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:256) ~[guava-11.0.2-atlassian-02.jar:na] at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:217) ~[guava-11.0.2-atlassian-02.jar:na] at com.atlassian.stash.internal.auth.trusted.TrustedApplicationsManagerImpl.getTrustedApplications(TrustedApplicationsManagerImpl.java:98) ~[stash-service-impl-3.9.1.jar:na] at com.atlassian.applinks.core.auth.trusted.TrustedAppsOrphanedTrustDetector.findOrphanedTrustCertificates(TrustedAppsOrphanedTrustDetector.java:59) ~[na:na] at com.atlassian.applinks.core.auth.DelegatingOrphanedTrustDetector.findOrphanedTrustCertificates(DelegatingOrphanedTrustDetector.java:30) ~[na:na] at com.atlassian.applinks.ui.velocity.ListApplicationLinksContext.getOrphanedTrustCertificates(ListApplicationLinksContext.java:137) ~[na:na] at org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyExecutor.java:142) ~[na:na] at org.apache.velocity.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectImpl.java:533) ~[na:na] at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:198) ~[na:na] ... 33 common frames omitted Caused by: java.lang.ClassNotFoundException: com.atlassian.ip.Subnet at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1295) ~[catalina.jar:8.0.15] ... 48 common frames omitted {noformat} Was a library left out of this release or something? I've not tried manually deleting the app links in the DB ,but I should not have to :) h4. Workaround Copy {{atlassian-ip-2.0.jar}} to {{<STASH_INSTALL>/atlassian-stash/WEB-INF/lib/}}. You can find this in your previous Stash installation directory at the same location. If you do not have a previous installation, you can download 3.8.1 [here|https://www.atlassian.com/software/stash/downloads/binary/atlassian-stash-3.8.1.tar.gz], unzip it, and it will be at {{atlassian-stash/WEB-INF/lib}}. The JAR can also be downloaded directly from [here|https://maven.atlassian.com/service/local/repositories/atlassian-public/content/com/atlassian/ip/atlassian-ip/2.0/atlassian-ip-2.0.jar].

    Atlassian JIRA | 2 years ago | Preston Elder
    com.atlassian.templaterenderer.RenderingException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getOrphanedTrustCertificates' in class com.atlassian.applinks.ui.velocity.ListApplicationLinksContext threw exception java.lang.NoClassDefFoundError: com/atlassian/ip/Subnet at com/atlassian/applinks/ui/admin/common_header.vm[line 11, column 20]

    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. 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()
    2. com.atlassian.templaterenderer
      VelocityTemplateRendererImpl.render
      1. com.atlassian.templaterenderer.velocity.one.six.internal.VelocityTemplateRendererImpl.render(VelocityTemplateRendererImpl.java:109)
      1 frame
    3. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.GeneratedMethodAccessor1986.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      2 frames