java.lang.NullPointerException

Coderanch | Tuna Töre | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    getServletContext() gives NullPointerException

    Coderanch | 8 years ago | Tuna Töre
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.tt.serlvlets.TestingServlet.doGet()
    2. com.tt.serlvlets
      TestingServlet.doGet
      1. com.tt.serlvlets.TestingServlet.doGet(TestingServlet.java:42)
      1 frame
    3. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      2 frames