SQLException and NullPointerException

hi,experts,i have one problem,in exception handling i am throughing SQLException from one method of class which is returning int data but it will give the NullPointerException, when i am calling this method in another class.please give some hints.,
[283 byte] By [Java_Jaguara] at [2007-10-3 5:25:31]
# 1
You may not initialized that object. NullPointerException will come only if the Object is null and calling any function on that.
RajKumara at 2007-7-14 23:32:43 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
If you can post your code, we can probably look into it and point out where your objects are null.
hnhegdea at 2007-7-14 23:32:43 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...