java.lang.NullPointerException

Atlassian JIRA | Pier Fumagalli | 1 decade ago
  1. 0

    {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}

    Atlassian JIRA | 1 decade ago | Pier Fumagalli
    java.lang.NullPointerException
  2. 0

    {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}

    Atlassian JIRA | 1 decade ago | Pier Fumagalli
    java.lang.NullPointerException
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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.web.util.CookieUtils.getSingleSessionId()
    2. com.atlassian.jira
      CookieUtils.getSingleSessionId
      1. com.atlassian.jira.web.util.CookieUtils.getSingleSessionId(CookieUtils.java:33)
      1 frame
    3. org.apache.jsp
      operations_jsp._jspService
      1. org.apache.jsp.includes.panels.issue.operations_jsp._jspService(operations_jsp.java:269)
      1 frame
    4. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
      1 frame
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(Unknown Source)
      1 frame
    6. GWT dev
      JspServlet.service
      1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
      2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
      3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
      3 frames
    7. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(Unknown Source)
      1 frame
    8. Jetty Server
      Dispatcher.include
      1. org.mortbay.jetty.servlet.ServletHolder.handle(Unknown Source)
      2. org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(Unknown Source)
      3. org.mortbay.jetty.servlet.Dispatcher.dispatch(Unknown Source)
      4. org.mortbay.jetty.servlet.Dispatcher.include(Unknown Source)
      4 frames
    9. GWT dev
      JspRuntimeLibrary.include
      1. org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
      1 frame
    10. org.apache.jsp
      summary_jsp._jspService
      1. org.apache.jsp.includes.panels.issue.summary_jsp._jspService(summary_jsp.java:225)
      1 frame
    11. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
      1 frame
    12. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(Unknown Source)
      1 frame
    13. GWT dev
      JspServlet.service
      1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
      2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
      3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
      3 frames
    14. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(Unknown Source)
      1 frame
    15. Jetty Server
      ServletHolder.handle
      1. org.mortbay.jetty.servlet.ServletHolder.handle(Unknown Source)
      1 frame