Kristof
Originally posted by Kristof Camelbeke:
When I refer to this method I'll get back a nullPointerException.
When? or do you mean you
do get a NullPointerException when you call the method? If you getting an actual error what is the error message?
I dont see anything in there that could cause that Exception what do the method calls look like that call it. How do you open the connection? Is this an app or a
servlet?
If it's a servlet just open it in init and close it in destroy, in an app you could create a static variable to represent the connection then close it in finalize.
sorry if this doesn't help too much but some info is needed. - I think.