The phrase "Compiled Code" in your stack trace indicates that your java
bytecode has been compiled by the JIT or Hotspot, so it has no reference
to line numbers anymore. You can prevent your code from being natively
compiled by setting an environment variable: JAVA_COMPILER=NONE Then,
java will just execute your bytecode and have full knowledge of where
it's at. Of course it will run a bit slower too, so just use this for
testing.
I think you might also have to make sure that your code was compiled by
javac/fastjavac with the "-g" option, but I'm not sure about that.
Chris
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
On 2/4/01, 9:21:19 AM, Angus M <[EMAIL PROTECTED]> wrote regarding
Can't see line numbers in exceptions:
> When I dump a stack trace the the brower or to the tomcat log I can seem
> to see the line numbers in the trace. How do I turn this on?
> build.xml snippet:
> <target name="compile" depends="prepare">
> <javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes"
> classpath="${deploy.home}/WEB-INF/classes"
> debug="on" optimize="off" deprecation="off"/>
> <copy todir="${deploy.home}/WEB-INF/classes">
> <fileset dir="src" includes="**/*.properties"/>
> </copy>
> </target>
> Stack Trace:
> java.lang.NullPointerException
> at org.phoenix.bugbase.Frame.doGet(Frame.java, Compiled Code)
> at org.phoenix.bugbase.Frame.doPost(Frame.java, Compiled Code)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled
> Code)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled
> Code)
> at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
> Compiled Code)
> at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
Code)
> at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
> Compiled Code)
> at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
> Compiled Code)
> at
org.apache.tomcat.core.ContextManager.service(ContextManager.java,
> Compiled Code)
> at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
pConnectionHandler.java,
> Compiled Code)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
> Compiled Code)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
> Compiled Code)
> at java.lang.Thread.run(Thread.java, Compiled Code)
> Thanks,
> --Angus
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]