By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,953 Members | 1,574 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,953 IT Pros & Developers. It's quick & easy.

java.lang.NullPointerException

P: 25
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.NullPointerException
at com.signup.BaseServlet.doGet
at javax.servlet.http.HttpServlet.service
at org.apache.catalina.servlets.InvokerServlet.doGet
at filters.ExampleFilter.doFilter
at org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext

Any one help me,

thanks in advance.
Sep 17 '07 #1
Share this Question
Share on Google+
2 Replies


10K+
P: 13,264
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.NullPointerException
at com.signup.BaseServlet.doGet
at javax.servlet.http.HttpServlet.service
at org.apache.catalina.servlets.InvokerServlet.doGet
at filters.ExampleFilter.doFilter
at org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext

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.
Sep 17 '07 #2

Nepomuk
Expert 2.5K+
P: 3,112
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.NullPointerException
at com.signup.BaseServlet.doGet
at javax.servlet.http.HttpServlet.service
at org.apache.catalina.servlets.InvokerServlet.doGet
at filters.ExampleFilter.doFilter
at org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext

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
Sep 17 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.