Hi Sam,
I brought in the source code of torque, and included the utils package
in my code bundle, and surprisingly the bug vanished.
Regards,
Somik
----- Original Message -----
From: "Sam Joseph" <[EMAIL PROTECTED]>
To: "Turbine Torque Users List" <[EMAIL PROTECTED]>
Sent: Saturday, June 01, 2002 1:43 PM
Subject: Re: Torque in Tomcat giving null pointer exceptions
> Hi Somik
>
> Somik Raha wrote:
>
> >Hi,
> > I am taking my first steps with torque, created a schema, generated
the
> >code, and tested from an application. Everything seemed to work fine.
Then I
> >put the same code into a servlet - but everytime I try to save data from
the
> >servlet, I get null pointer exceptions like :
> >
> >Saving..
> >BaseProjects.save(), ProjectsPeer.getMapBuilder() = null
> >java.lang.NullPointerException
> > at com.kizna.usen.BaseProjects.save(Unknown Source)
> > at com.kizna.usen.auth.CommandServlet.addProject(Unknown Source)
> > at com.kizna.usen.auth.CommandServlet.doPost(Unknown Source)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >
> >
> I think it might help us if you could get around this Unknown Source
> problem which is preventing us from seeing where the failure is actually
> taking place.
>
> The Unknown Source sections of the trace are coming from your own code.
> You should be able to get more information through an optional setting
> for the JVM that can affect whether source is displayed.
>
> Check this out:
>
> http://www.scheck.nist.gov/manual/servlets/e-rembug.htm
>
> it will describe various settings to make sure you can avoid "Unknown
> Source" reports.
>
> CHEERS> SAM
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>