Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error that prevented it from fulfilling this request.

exception

java.lang.NullPointerException
ups.BookslotServlet.doPost(BookslotServlet.java:66)
javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
note The full stack trace of the root cause is available in the Apache Tomcat/8.0.22 logs.

Apache Tomcat/8.0.22
Posted

1 solution

NullPointerxception is the most simple exception to track because it simply means you are trying to access member methods/properties of an object which is unfortunately turned to be NULL.

In order to track these errors/exceptions software engineering have established a mechanism which we call LOGGING. There are plenty of free tools available (Log4J for example) which can help you identify a problem in minutes if you have used that tool correctly.

If you really want to be a good developer, you must use LOGGING to track your code activity. This is the best advice one give you if this situation.
 
Share this answer
 
Comments
Member 11725186 29-May-15 6:44am    
how to use LOGGING
_Asif_ 29-May-15 6:49am    
Check this tutorial http://www.mkyong.com/logging/log4j-hello-world-example/

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900