I donβt know why I never tried to use the debugger to go through my program and see what happens, probably because I'm used to using interpreted languages ββsuch as PHP, where it is very easy to add debugging code ( print_r) and view the changes in real time.
However, with this new Java project, it seems to me that I should learn the right ways to debug.
So, this program, which I did not write, runs on Tomcat and uses basic JSPs. The problem is that when I try to access a specific JSP page, it throws an exception and gives me a stack from what happened:
org.apache.jasper.JasperException: java.lang.NullPointerException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:503)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:433)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:363)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:306)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.sgrp.singer.filters.SingerLoginFilter.doFilter(SingerLoginFilter.java:128)
How do I get through my program with a tool like JDB? I cannot go through a specific class because I need to imitate what my JSP does ... I would like to do this through the command line without using an IDE.
source
share