java.lang.NullPointerException

Google Groups | dchicks | 7 years ago
  1. 0

    Servlet init method not called - NPE error

    Stack Overflow | 2 years ago | user1050619
    java.lang.NullPointerException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    getServletContext() gives NullPointerException

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

    2 unregistered visitors
    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 javax.servlet.GenericServlet.getServletContext()
    2. JavaServlet
      GenericServlet.getServletContext
      1. javax.servlet.GenericServlet.getServletContext(GenericServlet.java:160)
      1 frame
    3. gwt.spring.serverlibrary
      GreetingServiceImpl.greetServer
      1. gwt.spring.serverlibrary.server.GreetingServiceImpl.greetServer(GreetingServiceImpl.java:14)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    5. SL for GWT
      GWTRPCServiceExporter.processCall
      1. org.gwtwidgets.server.spring.GWTRPCServiceExporter.invokeMethodOnService(GWTRPCServiceExporter.java:169)
      2. org.gwtwidgets.server.spring.GWTRPCServiceExporter.processCall(GWTRPCServiceExporter.java:338)
      2 frames
    6. Jetty Contrib :: jetty-gwt RemoteServiceServlet
      AbstractRemoteServiceServlet.doPost
      1. com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:224)
      2. com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
      2 frames
    7. SL for GWT
      GWTRPCServiceExporter.handleRequest
      1. org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleRequest(GWTRPCServiceExporter.java:407)
      1 frame
    8. Spring MVC
      FrameworkServlet.doPost
      1. org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:49)
      2. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771)
      3. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
      4. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
      5. org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:563)
      5 frames
    9. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      2 frames
    10. Jetty Server
      SelectChannelEndPoint.run
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      7. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      8. org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
      9. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      10. org.mortbay.jetty.Server.handle(Server.java:324)
      11. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
      12. org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
      13. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
      14. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
      15. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
      16. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
      16 frames
    11. Jetty Util
      QueuedThreadPool$PoolThread.run
      1. org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
      1 frame