java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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}
    via by Jeff Turner,
  • 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}
    via by Jeff Turner,
  • 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
    via by Thomas Eichstädt-Engelen,
  • 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}
    via by Jeff Turner,
  • 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.
    via by Jeff Turner,
  • Click on Administration --> Click Project --> Select a Project ---> Project Role: View Members --> Edit a Role. This is when there is a null pointer exception, I will attach the screen in later comments. It seems that the application is trying to write to root /velocity.log file, which is not the case. Someone in support gave me a classpath.jsp to find out which velocity.properties was being used. This was of no help since I think it produced wrong output, and also provides misleading information about the actual velocity.properties being used. We have tried everything from moving around velocity.properties to put in explicitly in classpath. Nothing works. This is a bug Below is the stack trace --------------------------------- PANIC : Error configuring AvalonLogSystem : java.io.FileNotFoundException: /velocity.log (Permission denied) PANIC : Error configuring AvalonLogSystem : java.io.FileNotFoundException: /velocity.log (Permission denied) 2007-04-11 10:41:22,188 [ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)' ERROR [webwork.view.velocity.VelocityHelper] Unable to configure AvalonLogSystem : java.io.FileNotFoundException: /velocity.log (Permission denied) java.lang.Exception: Unable to configure AvalonLogSystem : java.io.FileNotFoundException: /velocity.log (Permission denied) at org.apache.velocity.runtime.log.AvalonLogSystem.init(AvalonLogSystem.java:92) at org.apache.velocity.runtime.log.LogManager.createLogSystem(LogManager.java:127) at org.apache.velocity.runtime.RuntimeInstance.initializeLogger(RuntimeInstance.java:553) at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:226) at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:461) 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:43) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:223) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:51) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:83) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.atlassian.seraph.filter.LoginFilter.doFilter(LoginFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.atlassian.jira.web.filters.ActionCleanupDelayFilter.doFilter(ActionCleanupDelayFilter.java:31) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.atlassian.jira.web.filters.RequestCleanupFilter.doFilter(RequestCleanupFilter.java:31) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:37) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.atlassian.jira.appconsistency.db.DatabaseCompatibilityEnforcerFilter.doFilter(DatabaseCompatibilityEnforcerFilter.java:39) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:501) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:245) 2007-04-11 10:41:22,188 [ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)' 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.evaluate(ASTReference.java:307) at org.apache.velocity.runtime.parser.node.ASTExpression.evaluate(ASTExpression.java:45) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:68) 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:48) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:223) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:51) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:83) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.atlassian.seraph.filter.LoginFilter.doFilter(LoginFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.atlassian.jira.web.filters.ActionCleanupDelayFilter.doFilter(ActionCleanupDelayFilter.java:31) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.atlassian.jira.web.filters.RequestCleanupFilter.doFilter(RequestCleanupFilter.java:31) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:37) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.atlassian.jira.appconsistency.db.DatabaseCompatibilityEnforcerFilter.doFilter(DatabaseCompatibilityEnforcerFilter.java:39) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:501)
    via by Saurabh Gupta,
  • when clicking in the "web markup help" beside a text field (which points to /secure/WikiRendererHelpAction.jspa) shows a NullPointerException. The full message shown in page is: {noformat} An error occurred whilst rendering this message. Please contact the administrators, and inform them of this bug. Details: ------- 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:249) 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.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:132) 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:64) 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.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) {noformat} and in the atlassian-jira.log we have: {noformat} 2006-04-26 10:03:26,202 ERROR [webwork.view.velocity.VelocityHelper] No such view mapping:jira.trackback.exclude.pattern java.lang.IllegalArgumentException: No such view mapping:jira.trackback.exclude.pattern 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) {noformat} This isn't the full error message. if needed, I can post it here, too.
    via by Mauro Faccenda,
  • 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}
    via by Jeff Turner,
  • 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.
    via by Jeff Turner,
  • GitHub comment 94#287166837
    via GitHub by ly2ly
    ,
    • 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:80) at com.atlassian.jira.portal.PortletImpl.getViewHtml(PortletImpl.java:65) at com.atlassian.jira.portal.portlets.AbstractRequiresUserPortlet.getViewHtml(AbstractRequiresUserPortlet.java:25) at org.apache.jsp.dashboard_jsp._jspService(dashboard_jsp.java:1044)
    No Bugmate found.