RE: getting line numbers instead of (compiled code)
You are getting "Compiled Code" because the JIT engine has compiled your code into machine native format and it can't trace back to a line of .java code. I thought there was a command line option like -nojit, but checking just now I can't seem to remember how to figure it out. There are two common ways to find out where your problem is: 1. Add lots of println statements (you error is in the doGet method, so hopefully that method just calls lots of other methods and its code isn't to long) 2. Run Tomcat in a debugger (its Java so it can be done, but its very slow) Randy -Original Message- From: Christoph Kukulies [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 12:17 PM To: [EMAIL PROTECTED] Subject: getting line numbers instead of (compiled code) I dug out an old example I wrote some time ago and I'm wondering why I'm suddenly getting a Nullpointer Exception: /servlets/servlet/Auftr_Baustein Kuku's RMIJDBC Access Demo Error: 500 Location: /servlets/servlet/Auftr_Baustein Internal Servlet Error: java.lang.NullPointerException at Auftr_Baustein.doGet(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.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code) at org.apache.tomcat.servlets.InvokerServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code) at org.apache.tomcat.core.ContextManager.service(Compiled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro cessConnection(Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code) at java.lang.Thread.run(Compiled Code) I cannot remember when my example ran last time and whether it was before I introduced tomcat as the servlet executor. Anyone I gotta live with the current configuration and have to get my examples running again. Where should I look for? Could it be a security policy problem that I'm trying to open a socket via rmijdbc? Could a .jar file be missing? How can I traceback the error into my code? Help! -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
RE: getting line numbers instead of (compiled code)
set an environment variable to disable to compiler - I can never remember which one of these two it is, so I just set both (DOS example) : SET JAVA_COMP=NONE SET JAVA_COMPILER=NONE Then start tomcat from that dos window, and life is good. -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 12:31 PM To: [EMAIL PROTECTED] Subject: RE: getting line numbers instead of (compiled code) You are getting "Compiled Code" because the JIT engine has compiled your code into machine native format and it can't trace back to a line of .java code. I thought there was a command line option like -nojit, but checking just now I can't seem to remember how to figure it out. There are two common ways to find out where your problem is: 1. Add lots of println statements (you error is in the doGet method, so hopefully that method just calls lots of other methods and its code isn't to long) 2. Run Tomcat in a debugger (its Java so it can be done, but its very slow) Randy -Original Message- From: Christoph Kukulies [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 12:17 PM To: [EMAIL PROTECTED] Subject: getting line numbers instead of (compiled code) I dug out an old example I wrote some time ago and I'm wondering why I'm suddenly getting a Nullpointer Exception: /servlets/servlet/Auftr_Baustein Kuku's RMIJDBC Access Demo Error: 500 Location: /servlets/servlet/Auftr_Baustein Internal Servlet Error: java.lang.NullPointerException at Auftr_Baustein.doGet(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.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code) at org.apache.tomcat.servlets.InvokerServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code) at org.apache.tomcat.core.ContextManager.service(Compiled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro cessConnection(Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code) at java.lang.Thread.run(Compiled Code) I cannot remember when my example ran last time and whether it was before I introduced tomcat as the servlet executor. Anyone I gotta live with the current configuration and have to get my examples running again. Where should I look for? Could it be a security policy problem that I'm trying to open a socket via rmijdbc? Could a .jar file be missing? How can I traceback the error into my code? Help! -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
Re: getting line numbers instead of (compiled code)
On Wed, Apr 18, 2001 at 02:05:59PM -0400, CPC Livelink Admin wrote: set an environment variable to disable to compiler - I can never remember which one of these two it is, so I just set both (DOS example) : I looked in bin/tomcat.sh where java is started and tried with -nojit but my java engine (Sun) doesn't have this commandline option. I will try this stuff below (although I must say: There are other OSs than DOS window in this world, mine is FreeBSD :-) SET JAVA_COMP=NONE SET JAVA_COMPILER=NONE Then start tomcat from that dos window, and life is good. -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
Re: getting line numbers instead of (compiled code)
Set an environment variable called JAVA_COMPILER to NONE. SET JAVA_COMPILER=NONE This will turn off the jit compiler. --jeff - Original Message - From: "Christoph Kukulies" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 18, 2001 9:16 AM Subject: getting line numbers instead of (compiled code) I dug out an old example I wrote some time ago and I'm wondering why I'm suddenly getting a Nullpointer Exception: /servlets/servlet/Auftr_Baustein Kuku's RMIJDBC Access Demo Error: 500 Location: /servlets/servlet/Auftr_Baustein Internal Servlet Error: java.lang.NullPointerException at Auftr_Baustein.doGet(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.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code) at org.apache.tomcat.servlets.InvokerServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code) at org.apache.tomcat.core.ContextManager.service(Compiled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code) at java.lang.Thread.run(Compiled Code) I cannot remember when my example ran last time and whether it was before I introduced tomcat as the servlet executor. Anyone I gotta live with the current configuration and have to get my examples running again. Where should I look for? Could it be a security policy problem that I'm trying to open a socket via rmijdbc? Could a .jar file be missing? How can I traceback the error into my code? Help! -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
RE: getting line numbers instead of (compiled code)
But doesn't BSD stand for Basic Standard DOS ? smirk Darrell -Original Message- From: Christoph Kukulies [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 11:44 AM To: [EMAIL PROTECTED] Subject: Re: getting line numbers instead of (compiled code) On Wed, Apr 18, 2001 at 02:05:59PM -0400, CPC Livelink Admin wrote: set an environment variable to disable to compiler - I can never remember which one of these two it is, so I just set both (DOS example) : I looked in bin/tomcat.sh where java is started and tried with -nojit but my java engine (Sun) doesn't have this commandline option. I will try this stuff below (although I must say: There are other OSs than DOS window in this world, mine is FreeBSD :-) SET JAVA_COMP=NONE SET JAVA_COMPILER=NONE Then start tomcat from that dos window, and life is good. -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
Re: getting line numbers instead of (compiled code)
On Wed, Apr 18, 2001 at 02:05:59PM -0400, CPC Livelink Admin wrote: set an environment variable to disable to compiler - I can never remember which one of these two it is, so I just set both (DOS example) : SET JAVA_COMP=NONE SET JAVA_COMPILER=NONE Yep, this worked, Im getting now: java.lang.NullPointerException: at Auftr_Baustein.doGet(Auftr_Baustein.java:48) ^^ found the error. It was a late change I made when experimenting with something new. Many thanks for helping. Then start tomcat from that dos window, and life is good. -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 12:31 PM To: [EMAIL PROTECTED] Subject: RE: getting line numbers instead of (compiled code) You are getting "Compiled Code" because the JIT engine has compiled your code into machine native format and it can't trace back to a line of .java code. I thought there was a command line option like -nojit, but checking just now I can't seem to remember how to figure it out. There are two common ways to find out where your problem is: 1. Add lots of println statements (you error is in the doGet method, so hopefully that method just calls lots of other methods and its code isn't to long) 2. Run Tomcat in a debugger (its Java so it can be done, but its very slow) Randy -Original Message- From: Christoph Kukulies [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 12:17 PM To: [EMAIL PROTECTED] Subject: getting line numbers instead of (compiled code) I dug out an old example I wrote some time ago and I'm wondering why I'm suddenly getting a Nullpointer Exception: /servlets/servlet/Auftr_Baustein Kuku's RMIJDBC Access Demo Error: 500 Location: /servlets/servlet/Auftr_Baustein Internal Servlet Error: java.lang.NullPointerException at Auftr_Baustein.doGet(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.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code) at org.apache.tomcat.servlets.InvokerServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code) at org.apache.tomcat.core.ContextManager.service(Compiled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro cessConnection(Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code) at java.lang.Thread.run(Compiled Code) I cannot remember when my example ran last time and whether it was before I introduced tomcat as the servlet executor. Anyone I gotta live with the current configuration and have to get my examples running again. Where should I look for? Could it be a security policy problem that I'm trying to open a socket via rmijdbc? Could a .jar file be missing? How can I traceback the error into my code? Help! -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED] -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]