java.lang.NullPointerException

Atlassian JIRA | Jeff Turner | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    JIRA NPEs on a portlet after an apparently normal startup: {noformat} 2005-10-07 19:55:44,472 INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] Starting JIRA Enterprise Edition, Version: 3.3.2-#98^M 2005-10-07 19:55:44,472 INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] Configured to use database: mysql^M 07-oct.-2005 19:55:44 org.quartz.core.QuartzScheduler start^M INFO: Scheduler JiraQuartzScheduler_$_NON_CLUSTERED started.^M [Filter: profiling] Using parameter [jira_profile]^M [Filter: profiling] defaulting to off [autostart=false]^M [Filter: profiling] Turning filter off [jira_profile=off]^M 07-oct.-2005 19:55:46 com.atlassian.jira.web.dispatcher.JiraServletDispatcher init^M ATTENTION: Unable to find 'webwork.multipart.saveDir' property setting. Defaulting to javax.servlet.context.tempdir^M 07-oct.-2005 19:55:46 com.atlassian.jira.web.dispatcher.JiraServletDispatcher init^M INFO: Action dispatcher initialized^M 07-oct.-2005 19:55:46 org.apache.coyote.http11.Http11Protocol start^M INFO: Démarrage de Coyote HTTP/1.1 sur http-80^M 07-oct.-2005 19:55:46 org.apache.coyote.http11.Http11Protocol start^M INFO: Démarrage de Coyote HTTP/1.1 sur http-443^M 07-oct.-2005 19:55:46 org.apache.jk.common.ChannelSocket init^M INFO: JK2: ajp13 listening on /0.0.0.0:8009^M 07-oct.-2005 19:55:46 org.apache.jk.server.JkMain start^M INFO: Jk running ID=0 time=0/47 config=C:\tools\tomcat-4.1\conf\jk2.properties^M Server is not supporting gzip-file-contents request^M Server is not supporting gzip-file-contents request^M Server is not supporting gzip-file-contents request^M 2005-10-07 19:56:38,863 ERROR [com.atlassian.velocity.DefaultVelocityManager] Exception getting message body from Velocity: java.lang.NullPointerException^M java.lang.NullPointerException^M at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:831)^M at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:440)^M at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:76)^M at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:60)^M at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:55)^M at com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getHtml(JiraResourcedModuleDescriptor.java:80)^M at com.atlassian.jira.portal.PortletImpl.getViewHtml(PortletImpl.java:65)^M at com.atlassian.jira.portal.portlets.AbstractRequiresUserPortlet.getViewHtml(AbstractRequiresUserPortlet.java:25)^M at org.apache.jsp.dashboard_jsp._jspService(dashboard_jsp.java:1044)^M {noformat}

    Atlassian JIRA | 1 decade ago | Jeff Turner
    java.lang.NullPointerException
  2. 0

    JIRA NPEs on a portlet after an apparently normal startup: {noformat} 2005-10-07 19:55:44,472 INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] Starting JIRA Enterprise Edition, Version: 3.3.2-#98^M 2005-10-07 19:55:44,472 INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] Configured to use database: mysql^M 07-oct.-2005 19:55:44 org.quartz.core.QuartzScheduler start^M INFO: Scheduler JiraQuartzScheduler_$_NON_CLUSTERED started.^M [Filter: profiling] Using parameter [jira_profile]^M [Filter: profiling] defaulting to off [autostart=false]^M [Filter: profiling] Turning filter off [jira_profile=off]^M 07-oct.-2005 19:55:46 com.atlassian.jira.web.dispatcher.JiraServletDispatcher init^M ATTENTION: Unable to find 'webwork.multipart.saveDir' property setting. Defaulting to javax.servlet.context.tempdir^M 07-oct.-2005 19:55:46 com.atlassian.jira.web.dispatcher.JiraServletDispatcher init^M INFO: Action dispatcher initialized^M 07-oct.-2005 19:55:46 org.apache.coyote.http11.Http11Protocol start^M INFO: Démarrage de Coyote HTTP/1.1 sur http-80^M 07-oct.-2005 19:55:46 org.apache.coyote.http11.Http11Protocol start^M INFO: Démarrage de Coyote HTTP/1.1 sur http-443^M 07-oct.-2005 19:55:46 org.apache.jk.common.ChannelSocket init^M INFO: JK2: ajp13 listening on /0.0.0.0:8009^M 07-oct.-2005 19:55:46 org.apache.jk.server.JkMain start^M INFO: Jk running ID=0 time=0/47 config=C:\tools\tomcat-4.1\conf\jk2.properties^M Server is not supporting gzip-file-contents request^M Server is not supporting gzip-file-contents request^M Server is not supporting gzip-file-contents request^M 2005-10-07 19:56:38,863 ERROR [com.atlassian.velocity.DefaultVelocityManager] Exception getting message body from Velocity: java.lang.NullPointerException^M java.lang.NullPointerException^M at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:831)^M at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:440)^M at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:76)^M at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:60)^M at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:55)^M at com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getHtml(JiraResourcedModuleDescriptor.java:80)^M at com.atlassian.jira.portal.PortletImpl.getViewHtml(PortletImpl.java:65)^M at com.atlassian.jira.portal.portlets.AbstractRequiresUserPortlet.getViewHtml(AbstractRequiresUserPortlet.java:25)^M at org.apache.jsp.dashboard_jsp._jspService(dashboard_jsp.java:1044)^M {noformat}

    Atlassian JIRA | 1 decade ago | Jeff Turner
    java.lang.NullPointerException
  3. 0

    I have recently updated from jira 3.3 to 3.4.2 (both standalone) by xml-export/import in clean directories. After that the following Exception occures: {noformat} 2006-01-06 17:36:38,601 ERROR [com.atlassian.velocity.DefaultVelocityManager] Exception getting message body from Velocity: java.lang.NullPointerException java.lang.NullPointerException at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:831) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:440) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:76) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:60) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:55) at com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getHtml(JiraResourcedModuleDescriptor.java:88) at com.atlassian.jira.plugin.renderer.JiraRendererModuleDescriptor.getCss(JiraRendererModuleDescriptor.java:63) at org.apache.jsp.styles.global_005fcss_jsp._jspService(org.apache.jsp.styles.global_005fcss_jsp:90) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:182) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.seraph.filter.LoginFilter.doFilter(LoginFilter.java:177) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.ActionCleanupDelayFilter.doFilter(ActionCleanupDelayFilter.java:37) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:37) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:534) {noformat} I read about same problems in JRA-8589 and JRA-8517 but they occur in a different scenario (i think). Can you give me a hint what to do? I faced similar problems at confluence update (1.3.5 to 2.1.1). I solved those problems by deleting the (obviuosly) imported (old) velocity templates. Unfortunately i couldn't find such templates in JIRA (*.vmd). Kind regards from Germany Thomas Eichstädt-Engelen

    Atlassian JIRA | 1 decade ago | Thomas Eichstädt-Engelen
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    A simple Webwork plugin of mine is breaking with some upgraded data: {noformat} 2006-03-27 17:43:36,168 ERROR [webwork.view.velocity.VelocityHelper] No such view mapping:jira.install.oldlicense.confirmed.timestamp java.lang.IllegalArgumentException: No such view mapping:jira.install.oldlicense.confirmed.timestamp at webwork.config.XMLActionConfiguration.getImpl(XMLActionConfiguration.java:214) at webwork.config.DelegatingConfiguration.getImpl(DelegatingConfiguration.java:43) at webwork.config.DefaultConfiguration.getImpl(DefaultConfiguration.java:140) at webwork.config.Configuration.get(Configuration.java:45) at webwork.config.Configuration.getString(Configuration.java:55) at webwork.view.velocity.VelocityHelper$1.getProperty(VelocityHelper.java:61) at java.util.Properties.getProperty(Properties.java:776) at org.apache.commons.collections.ExtendedProperties.convertProperties(ExtendedProperties.java:1626) at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:460) at org.apache.velocity.runtime.RuntimeSingleton.init(RuntimeSingleton.java:208) at org.apache.velocity.app.Velocity.init(Velocity.java:106) at webwork.view.velocity.VelocityHelper.initVelocity(VelocityHelper.java:128) at webwork.view.velocity.VelocityHelper.getContext(VelocityHelper.java:159) at com.atlassian.jira.plugin.webwork.JiraPluginWebworkVelocityServlet.service(JiraPluginWebworkVelocityServlet.java:45) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:35) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55) at com.atlassian.jira.web.filters.SitemeshExcludePathFilter.doFilter(SitemeshExcludePathFilter.java:38) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:182) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.seraph.filter.LoginFilter.doFilter(LoginFilter.java:177) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:122) at com.atlassian.jira.web.filters.ProfilingAndErrorFilter.doFilter(ProfilingAndErrorFilter.java:25) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.ActionCleanupDelayFilter.doFilter(ActionCleanupDelayFilter.java:39) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.johnson.filters.JohnsonFilter.doFilter(JohnsonFilter.java:91) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.gzip.GzipFilter.doFilter(GzipFilter.java:72) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:37) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) 2006-03-27 17:43:36,169 ERROR [com.atlassian.velocity.DefaultVelocityManager] Exception getting message body from Velocity: java.lang.NullPointerException java.lang.NullPointerException at org.apache.velocity.context.InternalContextAdapterImpl.get(InternalContextAdapterImpl.java:162) at org.apache.velocity.runtime.parser.node.ASTReference.getVariableValue(ASTReference.java:623) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:151) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.Template.merge(Template.java:256) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:76) at com.atlassian.jira.plugin.webwork.JiraPluginWebworkVelocityServlet.service(JiraPluginWebworkVelocityServlet.java:50) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.Ap {noformat}

    Atlassian JIRA | 1 decade ago | Jeff Turner
    java.lang.NullPointerException
  6. 0

    It looks like we have a bug where Velocity isn't initialized correctly. This is from a customer's logs: {noformat} 2006-01-17 22:12:17,028 INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] Starting JIRA Professional Edition, Version: 3.4.2-#108^M 2006-01-17 22:12:17,028 INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] Configured to use database: mssql^M 2006-01-17 22:12:17,121 INFO [atlassian.jira.upgrade.ConsistencyCheckImpl] ^M ^M *******************************************************************************************************^M JIRA 3.4.2 build: 108 (Professional Edition) started. You can now access JIRA through your web browser.^M *******************************************************************************************************^M ^M [Filter: profiling] Using parameter [jira_profile]^M [Filter: profiling] defaulting to off [autostart=false]^M [Filter: profiling] Turning filter off [jira_profile=off]^M 2006-01-17 22:12:19,215 [webwork.dispatcher.ServletDispatcher] Unable to find 'webwork.multipart.saveDir' property setting. Defaulting to javax.servlet.context.tempdir^M Jan 17, 2006 10:12:19 PM org.apache.coyote.http11.Http11Protocol start^M INFO: Starting Coyote HTTP/1.1 on http-9090^M Jan 17, 2006 10:12:19 PM org.apache.catalina.storeconfig.StoreLoader load^M INFO: Find registry server-registry.xml at classpath resource^M Jan 17, 2006 10:12:20 PM org.apache.catalina.startup.Catalina start^M INFO: Server startup in 15140 ms^M 2006-01-17 22:12:27,590 ERROR [com.atlassian.velocity.DefaultVelocityManager] Exception getting message body from Velocity: java.lang.NullPointerException^M java.lang.NullPointerException^M at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:294)^M at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:831)^M at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:440)^M at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:76)^M at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:60)^M at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:55)^M at com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getHtml(JiraResourcedModuleDescriptor.java:88)^M at com.atlassian.jira.plugin.renderer.JiraRendererModuleDescriptor.getCss(JiraRendererModuleDescriptor.java:63)^M at org.apache.jsp.styles.global_005fprintable_005fcss_jsp._jspService(org.apache.jsp.styles.global_005fprintable_005fcss_jsp:2036)^M at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)^M at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)^M at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)^M {noformat} The correct version of Velocity (1.4) can be checked out with {{svn co http://svn.apache.org/repos/asf/jakarta/velocity/engine/tags/VEL_1_4 velocity}}. At {{ResourceManagerImpl.java:294}} we find: {code} Resource resource = globalCache.get(resourceName);{code} Where {{globalCache}} would have been set when initialize() is called. Apparently it isn't called when Velocity is used from a plugin.

    Atlassian JIRA | 1 decade ago | Jeff Turner
    java.lang.NullPointerException

    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. java.lang.NullPointerException

      No message provided

      at org.apache.velocity.runtime.RuntimeInstance.getTemplate()
    2. Apache Velocity
      VelocityEngine.mergeTemplate
      1. org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:831)
      2. org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:440)
      2 frames
    3. com.atlassian.velocity
      DefaultVelocityManager.getEncodedBody
      1. com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:76)
      2. com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:60)
      3. com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:55)
      3 frames
    4. com.atlassian.jira
      AbstractRequiresUserPortlet.getViewHtml
      1. com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getHtml(JiraResourcedModuleDescriptor.java:80)
      2. com.atlassian.jira.portal.PortletImpl.getViewHtml(PortletImpl.java:65)
      3. com.atlassian.jira.portal.portlets.AbstractRequiresUserPortlet.getViewHtml(AbstractRequiresUserPortlet.java:25)
      3 frames
    5. org.apache.jsp
      dashboard_jsp._jspService
      1. org.apache.jsp.dashboard_jsp._jspService(dashboard_jsp.java:1044)
      1 frame