Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

.getCurrentSession() returns a nullPointerException

 
Rodrigo Bela
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gentleman,

I have a web application that uses hibernate 3.0.3 withi this properties:


and, sometimes a need to recover the current session doing this:



The problem:

This code stop working for some reason that I don't understand.
I tried to debug the code and I realize that: the first calls of this method works with no problem. But For some reason the session is closed and them the .getCurrentSession(); returns a nullPointer exception.

My Log file says these:


Can someone help-me please?
 
Rodrigo Bela
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In fact, this problem is caused by another problem on weblogic server.

If you have any similar problem try to debug your application line-by-line.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic