hi all,
have got a servlet which calls a utilities class to initialize db connection. inside the utilities class my method looks like this :
when i call this method from my servlet :
i get a null pointer returned. i can see that "dbUtil.establishDBConnection()" returns an object but for some reason it never gets assigned to 'con' object in my servlet !!
You are probably getting the DS on the first try and assigning the connection when the DS is not null on the second try. The second call probably does not return null, but we can only speculate since the code and the problem at hand do not match each other