Hi Adam,
Yes, I did write the Servlet by hand :) Actually, it's an example from the book Web Development with JavaServer Pages, 2nd. ed (Manning). That example is for explaining Servlet-centric design.
I forgot to mention what I mean by 'accessing a function', where the code calls a function, say this.fetchAll() or this.fetchEmployee(), then this nullPointerException happens. It's happening for both the functions. And, I don't see the reason why, the control doesn't even go in to the functions. As soon as the function is called, it's giving this exception.
I guess Frans Flippo is right. I'll check it out with jpda.
TIA, Vamsee.
Because joy is one's fuel - Ayn Rand
Adam Buglass wrote:
Hmmm, I'm not so good at picking things out of the servlet! Have you got the original code (ie. JSP)? I'm assuming you didn't write the servlet by hand!
Thanks! Adam.
On Thu, 2004-07-29 at 06:32, Vamsee Kanakala wrote:
Hello list users,
Maybe this is not the best place to ask a general servlet doubt, but I'm hoping someone can point out the mistake I'm making. I'm attaching a servlet file (FetchEmployeeServlet.java), which for some strange reason, gives a Null-Pointer Exception when accessing a function. This tells me that the class is not instantiated or something, but I'm new to servlets, so I can't figure out why.
TIA,
Vamsee.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
