Fair enough! Let us know your solution (or if you don't find one)!

I usually find that something's requesting a variable that doesn't exist
or something is being used which isn't initialised properly.

Good Luck!

On Thu, 2004-07-29 at 08:49, Vamsee Kanakala wrote:
> 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]
-- 
Adam Buglass,  ><>
The Golden Freeway.

Unit 1,
Wear Valley Business Centre,
27 Longfield Road,
South Church Enterprise Park,
Bishop Auckland.
DL14 6XB

(01388) 776444

http://www.thegoldenfreeway.com
http://www.golduk.net


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

Reply via email to