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)

Yet, the same code works fine from an application. The surprising part is,
if I use the application to populate the database, and then view it from the
servlet, that works fine. Its only addition of data from the servlet which
is causing problems.
I would appreciate any pointers in this regard.

Bytway, my apologies for the earlier mail, it went accidentally before I
completed it.

Regards,
Somik




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to