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.

  • verifyForward test not working
    via strutstestcase by nobody
    ,
  • Getting servletcontext in a RemoteServiceServlet
    via by Steven De Groote,
  • Getting servletcontext in a RemoteServiceServlet
    via by Steven De Groote,
  • Web Services API Call Exception | WSO2 Inc
    via by Unknown author,
  • 2007-08-20 14:53:01,296: INFO [org.jahia.bin.Jahia] - Processed [/jahia/Jahia/engineName/updatecontainer/op/edit/home/pid/55] user=[root] ip=[127.0.0.1] in [125ms] 2007-08-20 14:53:01,781: INFO [org.jahia.bin.Jahia] - Processed [/jahia/Jahia/op/edit/lang/en/home/pid/55] user=[root] ip=[127.0.0.1] in [203ms] 2007-08-20 14:53:13,109: ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/jahia].[JahiaAdministration]] - "Servlet.service()" pour la servlet JahiaAdministration a gΘnΘrΘ une exception java.lang.NullPointerException at javax.servlet.GenericServlet.getServletContext(GenericServlet.java:159) at org.jahia.bin.JahiaAdministration.service(JahiaAdministration.java:275) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jahia.bin.filters.esi.ESIFilter.doFilter(ESIFilter.java:110) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:619) 2007-08-20 14:53:25,171: ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/jahia].[JahiaAdministration]] - "Servlet.service()" pour la servlet JahiaAdministration a gΘnΘrΘ une exception java.lang.NullPointerException at javax.servlet.GenericServlet.getServletContext(GenericServlet.java:159) at org.jahia.bin.JahiaAdministration.service(JahiaAdministration.java:275) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jahia.bin.filters.esi.ESIFilter.doFilter(ESIFilter.java:110) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:619) 2007-08-20 14:53:35,578: INFO [org.jahia.bin.Jahia] - Processed [/jahia/Jahia/] user=[root] ip=[127.0.0.1] in [203ms] 2007-08-20 14:53:35,812: INFO [org.apache.slide.webdav.JahiaWebdavServlet] - Webdav request [GET /site/demo/shared/banner_home.gif] user=[root] 2007-08-20 14:53:35,828: INFO [org.apache.slide.webdav.JahiaWebdavServlet] - Processed [GET /site/demo/shared/banner_home.gif] in 16ms 2007-08-20 14:53:39,125: INFO [org.jahia.bin.Jahia] - Processed [/jahia/Jahia/op/edit/lang/fr/home] user=[root] ip=[127.0.0.1] in [485ms]
    via by Stephane Croisier,
  • getServletContext NullPointerException
    via Stack Overflow by Threadid
    ,
    • java.lang.NullPointerException at javax.servlet.GenericServlet.getServletContext(GenericServlet.java:159) at servletunit.struts.CactusStrutsTestCase.getActualForward(CactusStrutsTestCase.java:559) at servletunit.struts.CactusStrutsTestCase.verifyForward(CactusStrutsTestCase.java:598)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,