wood burning stoves*
The moose likes JDBC and the fly likes NullPointerException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "NullPointerException" Watch "NullPointerException" New topic
Author

NullPointerException

Satyajeet Kadam
Ranch Hand

Joined: Oct 19, 2006
Posts: 215
When i execute this query by giving email explicity it executes fine but from application i receive Null poibter exception
please help



Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Whatever admin is must be null.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Satyajeet Kadam
Ranch Hand

Joined: Oct 19, 2006
Posts: 215
thanks for your reply, i have already done that
see my entire code,

my entire code




console

Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Whatever you are doing on line 66 of AdminManager must be refering to a null object. I can't say for sure - since I don't know what is happening on that line - but my guess is you have not assigned a value to admin. Looking though your code this does seem to be the case. You seem to have a variable called cadmin which you use to refer to a Statement instance. I don't see anywhere that you do the same for your variable admin.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NullPointerException
 
Similar Threads
Same old song, same old dance, Lazy Hibernate
Use mailto in jsp
How can i pass valid email address as a prarameter value in sql query
update error
Why Sun lowered the passing score for SCJP Platform 1.4