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.

  • 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}
    via by Bogdan Dziedzic [Atlassian],
  • 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}
    via by Bogdan Dziedzic [Atlassian],
    • java.lang.NullPointerException at com.atlassian.jira.util.BrowserUtils.getModifierKey(BrowserUtils.java:43)
    No Bugmate found.