0

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 ?

4

1 に答える 1

3

スタックトレースは、それがどのタイプの例外であるかを示します。IDE で、例外ブレークポイントを設定して、このタイプの例外をキャッチします (以下のリンクを参照)。ここで再度デバッグすると、例外がスローされた正確な場所で実行が停止します。

于 2012-08-13T07:54:20.760 に答える