java.lang.NullPointerException

Atlassian JIRA | Graham Lea | 10 years ago
  1. 0

    Stack overflow occurs when starting JIRA. Here's my reproduction: {code} 2007-02-02 12:56:17,672 Main Thread FATAL [atlassian.jira.upgrade.ConsistencyLauncher] Not initializing JIRA, the database has been locked. 2007-02-02 12:56:17,672 Main Thread FATAL [atlassian.jira.upgrade.UpgradeLauncher] Skipping, database is locked. 2007-02-02 12:56:17,672 Main Thread FATAL [atlassian.jira.scheduler.JiraSchedulerLauncher] Skipping scheduler initialisation, database is locked. [Filter: profiling] Using parameter [jira_profile] [Filter: profiling] defaulting to off [autostart=false] [Filter: profiling] Turning filter off [jira_profile=off] 2007-02-02 12:56:18,750 Main Thread WARN [jira.config.properties.ApplicationPropertiesImpl] unable to get a PropertiesManager! 2007-02-02 12:56:18,766 Main Thread [webwork.dispatcher.ServletDispatcher] ****************************************************** JIRA is unable to start, the database has been locked. ****************************************************** <2/02/2007 12:56:19 PM EST> <Warning> <WebLogicServer> <BEA-000372> <HostName: 0.0.0.0, maps to multiple IP addresses:192.168.0.168,192.168.133.1,192. 168.118.1> <2/02/2007 12:56:19 PM EST> <Notice> <WebLogicServer> <BEA-000355> <Thread "ListenThread.Default" listening on port 7001, ip address *.*> <2/02/2007 12:56:19 PM EST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "jira" for domain "mydomain" running in Development Mode> <2/02/2007 12:56:19 PM EST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode> <2/02/2007 12:57:16 PM EST> <Error> <HTTP> <BEA-101020> <[ServletContext(id=4935587,name=atlassian-jira-3.7.2-oracle-weblogic,context-path=/jira)] Ser vlet failed with Exception java.lang.StackOverflowError at java.lang.String.<init>([CII)V(Unknown Source) at weblogic.utils.io.FilenameEncoder.resolveRelativePath(FilenameEncoder.java:306) at weblogic.utils.io.FilenameEncoder.resolveRelativeURIPath(FilenameEncoder.java:244) at weblogic.servlet.internal.ServletRequestImpl.getRequestDispatcher(ServletRequestImpl.java:1107) at com.atlassian.jira.appconsistency.db.DatabaseCompatibilityEnforcerFilter.doFilter(DatabaseCompatibilityEnforcerFilter.java:33) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:652) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:431) at com.atlassian.jira.appconsistency.db.DatabaseCompatibilityEnforcerFilter.doFilter(DatabaseCompatibilityEnforcerFilter.java:33) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:652) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:431) at com.atlassian.jira.appconsistency.db.DatabaseCompatibilityEnforcerFilter.doFilter(DatabaseCompatibilityEnforcerFilter.java:33) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:652) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:431) at com.atlassian.jira.appconsistency.db.DatabaseCompatibilityEnforcerFilter.doFilter(DatabaseCompatibilityEnforcerFilter.java:33) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:652) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:431) at com.atlassian.jira.appconsistency.db.DatabaseCompatibilityEnforcerFilter.doFilter(DatabaseCompatibilityEnforcerFilter.java:33) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:652) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:431) at com.atlassian.jira.appconsistency.db.DatabaseCompatibilityEnforcerFilter.doFilter(DatabaseCompatibilityEnforcerFilter.java:33) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:652) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:431) at com.atlassian.jira.appconsistency.db.DatabaseCompatibilityEnforcerFilter.doFilter(DatabaseCompatibilityEnforcerFilter.java:33) > <2/02/2007 12:57:23 PM EST> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed java.lang.NullPointerException. java.lang.NullPointerException at com.atlassian.jira.plugin.webresource.JiraWebResourceIntegration.getBaseUrl(JiraWebResourceIntegration.java:42) at com.atlassian.plugin.webresource.WebResourceManagerImpl.getStaticResourcePrefix(WebResourceManagerImpl.java:182) at jsp_servlet.__500page._jspService(__500page.java:534) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:526) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:330) at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:548) at weblogic.servlet.internal.WebAppServletContext.handleException(WebAppServletContext.java:4203) at weblogic.servlet.internal.WebAppServletContext.handleThrowableFromInvocation(WebAppServletContext.java:3981) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3918) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183) > {code} Here's one customer's ([JSP-9844|https://support.atlassian.com/browse/JSP-9844]): {code} ####<Jan 29, 2007 3:36:31 PM PST> <Error> <HTTP> <usto-dapp-lnx02.amgen.com> <bisLWST7315> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-101020> <[ServletContext(id=28798305,name=lwst-jira,context-path=/lwst-jira)] Servlet failed with Exception java.lang.StackOverflowError at weblogic.servlet.utils.URLMatchMap.hashPath(URLMatchMap.java:398) at weblogic.servlet.utils.URLMatchMap.getByPath(URLMatchMap.java:282) at weblogic.servlet.utils.URLMatchMap.get(URLMatchMap.java:271) at weblogic.servlet.internal.WebAppServletContext.resolveRequest(WebAppServletContext.java:4276) at weblogic.servlet.internal.WebAppServletContext.resolveIncludedRequest(WebAppServletContext.java:4206) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:615) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:423) at com.atlassian.jira.appconsistency.db.DatabaseCompatibilityEnforcerFilter.doFilter(DatabaseCompatibilityEnforcerFilter.java:33) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:644) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:423) at com.atlassian.jira.appconsistency.db.DatabaseCompatibilityEnforcerFilter.doFilter(DatabaseCompatibilityEnforcerFilter.java:33) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:644) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:423) at com.atlassian.jira.appconsistency.db.DatabaseCompatibilityEnforcerFilter.doFilter(DatabaseCompatibilityEnforcerFilter.java:33) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:644) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:423) at com.atlassian.jira.appconsistency.db.DatabaseCompatibilityEnforcerFilter.doFilter(DatabaseCompatibilityEnforcerFilter.java:33) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:644) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:423) at com.atlassian.jira.appconsistency.db.DatabaseCompatibilityEnforcerFilter.doFilter(DatabaseCompatibilityEnforcerFilter.java:33) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) ... {code} And another ([JSP-9914|https://support.atlassian.com/browse/JSP-9914]): {code} ####<31-Jan-2007 16:48:01 o'clock CET> <Error> <HTTP> <itux06-1> <wlsd_JRCD_03> <[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1170258481444> <BEA-101020> <[weblogic.servlet.internal.WebAppServletContext@121c5df - appName: 'atlassian-jira-3', name: 'atlassian-jira-3.7.2.war', context-path: '/jira'] Servlet failed with Exception java.lang.StackOverflowError at java.lang.Character.toUpperCase(Character.java:4307) at java.lang.Character.toUpperCase(Character.java:4274) at java.lang.String.regionMatches(String.java:1214) at java.lang.String.equalsIgnoreCase(String.java:950) at weblogic.utils.http.BytesToString.is8BitUnicodeSubset(BytesToString.java:23) at weblogic.servlet.internal.ResponseHeaders.setEncoding(ResponseHeaders.java:417) at weblogic.servlet.internal.ResponseHeaders.<init>(ResponseHeaders.java:124) at weblogic.servlet.internal.ServletResponseImpl.<init>(ServletResponseImpl.java:120) at weblogic.servlet.internal.NestedServletResponse.<init>(NestedServletResponse.java:21) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:421) at com.atlassian.jira.appconsistency.db.DatabaseCompatibilityEnforcerFilter.doFilter(DatabaseCompatibilityEnforcerFilter.java:33) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)* {code}

    Atlassian JIRA | 10 years ago | Tim Pettersen [Atlassian]
    java.lang.NullPointerException
  2. 0

    When attempting to attach a file on s.a.c I experienced a delay, then the error below. Trying the same attachment again a few seconds later worked. 500 Servlet Exception java.lang.NullPointerException at com.atlassian.jira.plugin.webresource.JiraWebResourceIntegration.getBaseUrl(JiraWebResourceIntegration.java:42) at com.atlassian.plugin.webresource.WebResourceManagerImpl.getStaticResourcePrefix(WebResourceManagerImpl.java:182) at _jsp._500page__jsp._jspService(includes/decorators/stylesheettag.jsp:12) at com.caucho.jsp.JavaPage.service(JavaPage.java:60) at com.caucho.jsp.Page.pageservice(Page.java:570) at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:175) at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:115) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229) at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:277) at com.caucho.server.webapp.RequestDispatcherImpl.error(RequestDispatcherImpl.java:113) at com.caucho.server.webapp.ErrorPageManager.sendServletError(ErrorPageManager.java:363) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:180) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229) at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:419) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:389) at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:507) at com.caucho.util.ThreadPool.run(ThreadPool.java:433) at java.lang.Thread.run(Thread.java:595)

    Atlassian JIRA | 10 years ago | Tom Davies [Atlassian]
    java.lang.NullPointerException
  3. 0

    Got a NullPointerException while trying to create a new issue in the Surefire-Report project on the Codehaus JIRA. Critical because I can't create an issue. 500 Servlet Exception java.lang.NullPointerException at com.atlassian.jira.plugin.webresource.JiraWebResourceIntegration.getBaseUrl(JiraWebResourceIntegration.java:42) at com.atlassian.plugin.webresource.WebResourceManagerImpl.getStaticResourcePrefix(WebResourceManagerImpl.java:182) at _jsp._500page__jsp._jspService(includes/decorators/stylesheettag.jsp:12) at com.caucho.jsp.JavaPage.service(JavaPage.java:60) at com.caucho.jsp.Page.pageservice(Page.java:570) at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:159) at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:115) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:208) at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:132) at com.caucho.server.webapp.RequestDispatcherImpl.error(RequestDispatcherImpl.java:113) at com.caucho.server.webapp.ErrorPageManager.sendServletError(ErrorPageManager.java:354) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:165) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:208) at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:396) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:363) at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:490) at com.caucho.util.ThreadPool.run(ThreadPool.java:423) at java.lang.Thread.run()V(Unknown Source) Resin Professional 3.0.14 (built Tue, 05 Jul 2005 11:05:36 PDT)

    Atlassian JIRA | 10 years ago | Graham Lea
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When attempting to attach a file on s.a.c I experienced a delay, then the error below. Trying the same attachment again a few seconds later worked. 500 Servlet Exception java.lang.NullPointerException at com.atlassian.jira.plugin.webresource.JiraWebResourceIntegration.getBaseUrl(JiraWebResourceIntegration.java:42) at com.atlassian.plugin.webresource.WebResourceManagerImpl.getStaticResourcePrefix(WebResourceManagerImpl.java:182) at _jsp._500page__jsp._jspService(includes/decorators/stylesheettag.jsp:12) at com.caucho.jsp.JavaPage.service(JavaPage.java:60) at com.caucho.jsp.Page.pageservice(Page.java:570) at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:175) at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:115) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229) at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:277) at com.caucho.server.webapp.RequestDispatcherImpl.error(RequestDispatcherImpl.java:113) at com.caucho.server.webapp.ErrorPageManager.sendServletError(ErrorPageManager.java:363) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:180) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229) at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:419) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:389) at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:507) at com.caucho.util.ThreadPool.run(ThreadPool.java:433) at java.lang.Thread.run(Thread.java:595)

    Atlassian JIRA | 10 years ago | Tom Davies [Atlassian]
    java.lang.NullPointerException
  6. 0

    Got a NullPointerException while trying to create a new issue in the Surefire-Report project on the Codehaus JIRA. Critical because I can't create an issue. 500 Servlet Exception java.lang.NullPointerException at com.atlassian.jira.plugin.webresource.JiraWebResourceIntegration.getBaseUrl(JiraWebResourceIntegration.java:42) at com.atlassian.plugin.webresource.WebResourceManagerImpl.getStaticResourcePrefix(WebResourceManagerImpl.java:182) at _jsp._500page__jsp._jspService(includes/decorators/stylesheettag.jsp:12) at com.caucho.jsp.JavaPage.service(JavaPage.java:60) at com.caucho.jsp.Page.pageservice(Page.java:570) at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:159) at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:115) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:208) at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:132) at com.caucho.server.webapp.RequestDispatcherImpl.error(RequestDispatcherImpl.java:113) at com.caucho.server.webapp.ErrorPageManager.sendServletError(ErrorPageManager.java:354) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:165) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:208) at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:396) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:363) at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:490) at com.caucho.util.ThreadPool.run(ThreadPool.java:423) at java.lang.Thread.run()V(Unknown Source) Resin Professional 3.0.14 (built Tue, 05 Jul 2005 11:05:36 PDT)

    Atlassian JIRA | 10 years ago | Graham Lea
    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 com.atlassian.jira.plugin.webresource.JiraWebResourceIntegration.getBaseUrl()
    2. com.atlassian.jira
      JiraWebResourceIntegration.getBaseUrl
      1. com.atlassian.jira.plugin.webresource.JiraWebResourceIntegration.getBaseUrl(JiraWebResourceIntegration.java:42)
      1 frame
    3. com.atlassian.plugin
      WebResourceManagerImpl.getStaticResourcePrefix
      1. com.atlassian.plugin.webresource.WebResourceManagerImpl.getStaticResourcePrefix(WebResourceManagerImpl.java:182)
      1 frame