posted 14 years ago
As you didn't post the code of your program, we cannot know whats in line 53. I think it is "session.close()" which is inside a finally block. Something went wrong opening the connection, a runtime exception occured which you re-throw. After that the finally-block is being processed where the NPE occurs because the session is null. But as you didn't post the stacktrace of the exception we cannot know, what happened exactly. There MUST be a stacktrace. You could print it right before re-throwing the RuntimeException.