java.lang.NullPointerException

Atlassian JIRA | Bogdan Dziedzic [Atlassian] | 7 years ago
  1. 0

    We seem to be failing to recognise correctly the major version of Firefox. Customer reported the following stacktrace in the Setup page in Firefox 3.0.14 on Windows. {noformat} Cause: javax.servlet.ServletException: javax.servlet.jsp.JspException: Exception in JSP: /decorators/panels/jiraform.jsp:29 26: <% 27: // Set some defaults 28: String columns = (p.isPropertySet("columns")) ? p.getProperty("columns") : "2"; 29: request.setAttribute("modifierKey", BrowserUtils.getModifierKey()); 30: %> 31: 32: <% if (StringUtils.isNotBlank(p.getProperty("labelWidth"))) { %> Stacktrace: Stack Trace: [hide] javax.servlet.ServletException: javax.servlet.jsp.JspException: Exception in JSP: /decorators/panels/jiraform.jsp:29 26: <% 27: // Set some defaults 28: String columns = (p.isPropertySet("columns")) ? p.getProperty("columns") : "2"; 29: request.setAttribute("modifierKey", BrowserUtils.getModifierKey()); 30: %> 31: 32: <% if (StringUtils.isNotBlank(p.getProperty("labelWidth"))) { %> Stacktrace: at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:837) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774) at org.apache.jsp.views.setup_jsp._jspService(setup_jsp.java:512) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) {noformat} In the same time in the log file the following NPE is logged: {noformat} 2009-10-15 11:51:21,039 http-80-Processor25 ERROR anonymous 42680x2x1 1ntyvzv http://192.168.42.72/secure/Setup!input.jspa [[Catalina].[localhost].[/].[jsp]] Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at com.atlassian.jira.util.BrowserUtils.getModifierKey(BrowserUtils.java:43) at org.apache.jsp.decorators.panels.jiraform_jsp._jspService(jiraform_jsp.java:126) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:584) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:965) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:600) at com.opensymphony.module.sitemesh.taglib.page.ApplyDecoratorTag.doEndTag(ApplyDecoratorTag.java:254) at org.apache.jsp.views.setup_jsp._jspx_meth_page_005fapplyDecorator_005f0(setup_jsp.java:659) {noformat}

    Atlassian JIRA | 7 years ago | Bogdan Dziedzic [Atlassian]
    java.lang.NullPointerException
  2. 0

    We seem to be failing to recognise correctly the major version of Firefox. Customer reported the following stacktrace in the Setup page in Firefox 3.0.14 on Windows. {noformat} Cause: javax.servlet.ServletException: javax.servlet.jsp.JspException: Exception in JSP: /decorators/panels/jiraform.jsp:29 26: <% 27: // Set some defaults 28: String columns = (p.isPropertySet("columns")) ? p.getProperty("columns") : "2"; 29: request.setAttribute("modifierKey", BrowserUtils.getModifierKey()); 30: %> 31: 32: <% if (StringUtils.isNotBlank(p.getProperty("labelWidth"))) { %> Stacktrace: Stack Trace: [hide] javax.servlet.ServletException: javax.servlet.jsp.JspException: Exception in JSP: /decorators/panels/jiraform.jsp:29 26: <% 27: // Set some defaults 28: String columns = (p.isPropertySet("columns")) ? p.getProperty("columns") : "2"; 29: request.setAttribute("modifierKey", BrowserUtils.getModifierKey()); 30: %> 31: 32: <% if (StringUtils.isNotBlank(p.getProperty("labelWidth"))) { %> Stacktrace: at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:837) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774) at org.apache.jsp.views.setup_jsp._jspService(setup_jsp.java:512) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) {noformat} In the same time in the log file the following NPE is logged: {noformat} 2009-10-15 11:51:21,039 http-80-Processor25 ERROR anonymous 42680x2x1 1ntyvzv http://192.168.42.72/secure/Setup!input.jspa [[Catalina].[localhost].[/].[jsp]] Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at com.atlassian.jira.util.BrowserUtils.getModifierKey(BrowserUtils.java:43) at org.apache.jsp.decorators.panels.jiraform_jsp._jspService(jiraform_jsp.java:126) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:584) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:965) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:600) at com.opensymphony.module.sitemesh.taglib.page.ApplyDecoratorTag.doEndTag(ApplyDecoratorTag.java:254) at org.apache.jsp.views.setup_jsp._jspx_meth_page_005fapplyDecorator_005f0(setup_jsp.java:659) {noformat}

    Atlassian JIRA | 7 years ago | Bogdan Dziedzic [Atlassian]
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: 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.util.BrowserUtils.getModifierKey()
    2. com.atlassian.jira
      BrowserUtils.getModifierKey
      1. com.atlassian.jira.util.BrowserUtils.getModifierKey(BrowserUtils.java:43)
      1 frame
    3. org.apache.jsp
      jiraform_jsp._jspService
      1. org.apache.jsp.decorators.panels.jiraform_jsp._jspService(jiraform_jsp.java:126)
      1 frame
    4. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
      1 frame
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      1 frame
    6. GWT dev
      JspServlet.service
      1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
      2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
      3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
      3 frames
    7. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      1 frame
    8. Glassfish Core
      ApplicationDispatcher.include
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
      4. org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:584)
      5. org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
      5 frames
    9. GWT dev
      PageContextImpl.include
      1. org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:965)
      2. org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:600)
      2 frames
    10. Sitemesh
      ApplyDecoratorTag.doEndTag
      1. com.opensymphony.module.sitemesh.taglib.page.ApplyDecoratorTag.doEndTag(ApplyDecoratorTag.java:254)
      1 frame
    11. org.apache.jsp
      setup_jsp._jspx_meth_page_005fapplyDecorator_005f0
      1. org.apache.jsp.views.setup_jsp._jspx_meth_page_005fapplyDecorator_005f0(setup_jsp.java:659)
      1 frame