You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christoph Kukulies <ku...@gilberto.physik.rwth-aachen.de> on 2001/04/04 17:38:23 UTC

debugging servlets

What was again the magic modification one has to make to
allow a more descriptive line in backtrace rather than '(compiled code)'
when one gets for example:

java.lang.NullPointerException
        at java.util.Arrays.sort(Compiled Code)
        at Some.doGet(Compiled Code)
        at Some.doPost(Compiled Code)
        at javax.servlet.http.HttpServlet.service(Compiled Code)
        at javax.servlet.http.HttpServlet.service(Compiled Code)
        at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
        at org.apac....

-- 
Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de

RE: debugging servlets

Posted by Benoît Jacquemont <be...@smile.fr>.
You have to use the -Djava.compiler=NONE command line option in your java
command line in the tomcat.bat/tomcat.sh

Benoît

> -----Message d'origine-----
> De : Christoph Kukulies [mailto:kuku@gilberto.physik.rwth-aachen.de]
> Envoyé : mercredi 4 avril 2001 17:38
> À : tomcat-user@jakarta.apache.org
> Objet : debugging servlets
>
>
> What was again the magic modification one has to make to
> allow a more descriptive line in backtrace rather than
> '(compiled code)'
> when one gets for example:
>
> java.lang.NullPointerException
>         at java.util.Arrays.sort(Compiled Code)
>         at Some.doGet(Compiled Code)
>         at Some.doPost(Compiled Code)
>         at javax.servlet.http.HttpServlet.service(Compiled Code)
>         at javax.servlet.http.HttpServlet.service(Compiled Code)
>         at
> org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
>         at org.apac....
>
> --
> Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de