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.

  • {code} [2006/06/06 16:32:39.835] WARN [Atlassian JIRA Web Application] /bugs/browse/INF-44?os_username=***&os_password=***: java.lang.NullPointerException at com.atlassian.jira.web.util.CookieUtils.getSingleSessionId(CookieUtils.java:33) at org.apache.jsp.includes.panels.issue.operations_jsp._jspService(operations_jsp.java:269) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(Unknown Source) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(Unknown Source) at org.mortbay.jetty.servlet.ServletHolder.handle(Unknown Source) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(Unknown Source) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Unknown Source) at org.mortbay.jetty.servlet.Dispatcher.include(Unknown Source) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) at org.apache.jsp.includes.panels.issue.summary_jsp._jspService(summary_jsp.java:225) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(Unknown Source) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(Unknown Source) at org.mortbay.jetty.servlet.ServletHolder.handle(Unknown Source) ... {code} Easy fix should be to add the following at the beginning of the {{getSingleSessionId(Cookie[] cookies)}} method: {code} public static String getSingleSessionId(Cookie[] cookies) { if (cookies == null) return null; String sessionId = null; boolean foundOnlyOneSessionId = false; for (int i = 0; i < cookies.length; i++) .... {code}
    via by Pier Fumagalli,
  • {code} [2006/06/06 16:32:39.835] WARN [Atlassian JIRA Web Application] /bugs/browse/INF-44?os_username=***&os_password=***: java.lang.NullPointerException at com.atlassian.jira.web.util.CookieUtils.getSingleSessionId(CookieUtils.java:33) at org.apache.jsp.includes.panels.issue.operations_jsp._jspService(operations_jsp.java:269) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(Unknown Source) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(Unknown Source) at org.mortbay.jetty.servlet.ServletHolder.handle(Unknown Source) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(Unknown Source) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Unknown Source) at org.mortbay.jetty.servlet.Dispatcher.include(Unknown Source) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) at org.apache.jsp.includes.panels.issue.summary_jsp._jspService(summary_jsp.java:225) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(Unknown Source) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(Unknown Source) at org.mortbay.jetty.servlet.ServletHolder.handle(Unknown Source) ... {code} Easy fix should be to add the following at the beginning of the {{getSingleSessionId(Cookie[] cookies)}} method: {code} public static String getSingleSessionId(Cookie[] cookies) { if (cookies == null) return null; String sessionId = null; boolean foundOnlyOneSessionId = false; for (int i = 0; i < cookies.length; i++) .... {code}
    via by Pier Fumagalli,
    • java.lang.NullPointerException at com.atlassian.jira.web.util.CookieUtils.getSingleSessionId(CookieUtils.java:33) at org.apache.jsp.includes.panels.issue.operations_jsp._jspService(operations_jsp.java:269) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(Unknown Source) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(Unknown Source) at org.mortbay.jetty.servlet.ServletHolder.handle(Unknown Source) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(Unknown Source) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Unknown Source) at org.mortbay.jetty.servlet.Dispatcher.include(Unknown Source) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) at org.apache.jsp.includes.panels.issue.summary_jsp._jspService(summary_jsp.java:225) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(Unknown Source) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(Unknown Source) at org.mortbay.jetty.servlet.ServletHolder.handle(Unknown Source)
    No Bugmate found.