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]