I'm executing a hibernate code inside a servlet, but it throws a null pointer exception. What is usually the error with this?
Nullpointer happens to you,if you call any method on object that is null
thats the best answer any one can give,with kind of information you have provided
-P