java.lang.NullPointerException

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sruthini
    New Member
    • Aug 2007
    • 25

    #1

    java.lang.NullPointerException

    Hi,

    I have jsp with servlet page,after run my servlet I
    got blank page with the following tomcat error while run my servlet page,
    java.lang.NullP ointerException
    at com.signup.Base Servlet.doGet
    at javax.servlet.h ttp.HttpServlet .service
    at org.apache.cata lina.servlets.I nvokerServlet.d oGet
    at filters.Example Filter.doFilter
    at org.apache.cata lina.core.Stand ardPipeline$Sta ndardPipelineVa lveContext.invo keNext

    Any one help me,

    thanks in advance.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by sruthini
    Hi,

    I have jsp with servlet page,after run my servlet I
    got blank page with the following tomcat error while run my servlet page,
    java.lang.NullP ointerException
    at com.signup.Base Servlet.doGet
    at javax.servlet.h ttp.HttpServlet .service
    at org.apache.cata lina.servlets.I nvokerServlet.d oGet
    at filters.Example Filter.doFilter
    at org.apache.cata lina.core.Stand ardPipeline$Sta ndardPipelineVa lveContext.invo keNext

    Any one help me,

    thanks in advance.
    Check the line number reprted for your exception to see if the exception is thrown in the servlet or on the JSP. Debug the code or use some simple println statements to pinopoint the exact line and variable that is causing the null pointer.

    Comment

    • Nepomuk
      Recognized Expert Specialist
      • Aug 2007
      • 3111

      #3
      Originally posted by sruthini
      Hi,

      I have jsp with servlet page,after run my servlet I
      got blank page with the following tomcat error while run my servlet page,
      java.lang.NullP ointerException
      at com.signup.Base Servlet.doGet
      at javax.servlet.h ttp.HttpServlet .service
      at org.apache.cata lina.servlets.I nvokerServlet.d oGet
      at filters.Example Filter.doFilter
      at org.apache.cata lina.core.Stand ardPipeline$Sta ndardPipelineVa lveContext.invo keNext

      Any one help me,

      thanks in advance.
      Probably at some point you try to use some Object, which you have declared but not yet defined, however without seeing the code, we won't be able to help you any further.

      Greetings,
      Nepomuk

      Comment

      Working...