wood burning stoves 2.0*
The moose likes Servlets and the fly likes Raj(Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Raj(Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error)" Watch "Raj(Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error)" New topic
Author

Raj(Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error)

raj guntupalli
Greenhorn

Joined: Dec 16, 2002
Posts: 27
Please Help!!!I have a problem with tomcat4.0.I kept two files one LoginServlet and AccountServlet in classes folder.I kept the login.html in the servlets folder.The login page accepts username and password.It directs to LoginServlet which validates and directs to AccountServlet by the RequestDispatcher.
Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
at AccountServlet.doPost(AccountServlet.java:30)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)
at LoginServlet.doPost(LoginServlet.java:23)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Unknown Source)
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

java.lang.NullPointerException
at AccountServlet.doPost(AccountServlet.java:30)
Have you tried to fix this bug yet?
This line is throwing a NullPointerException, which is causing the 500 error code.
Dave
raj guntupalli
Greenhorn

Joined: Dec 16, 2002
Posts: 27
Thank you very much.The error is where you have said.I tried to find out the error by using a try /catch block.The mistake I have made is I have been using data.put("userid") instead of data.put(userid) and it happens I did not see it all day.Thanx.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Raj(Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error)
 
Similar Threads
server not found
deployment problem
Using CachedRowSet
Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error at time of jsp executio
Problem compiling JSPs on Tomcat