posted 21 years ago
Jyotsana ,
NullPointerEception is thrown whenever you use dot(.) with and variable which is object and contains null value.
say you have String s=null;
and you say s.substring(); this is same as null.substring(); which throws an nullpointer exception.
In your case I guess you are getting null pointer exception during creating connection.
just chek if your connection object is not null before createing statment like..stmt=con.createStatement();
Cheers
Praful
All desirable things in life are either illegal, banned, expensive or married to someone else !!!