I have this piece of code:
try {
System.out.println("????????????????????????????????");
request.login(username, password);
System.out.println("FFFFFFFFFFFFFFFF");
} catch (Exception e) {
System.out.println("!!!!!!!!!!!!!!!!!!" + e.getMessage());
e.printStackTrace();
}
where request is HttpServletRequest
output is:
????????????????????????????????
12618 ERROR org.apache.wicket.DefaultExceptionMapper - Unexpected error occurred
how I can debug this piece of code and solve where is the problem ?
Your stacktrace will tell you what type of exception it is. In your IDE, set an Exception breakpoint to catch this type of exception (see links below). Now, debug again, and the execution will stop at the exact spot where the exception is thrown.