This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes .getCurrentSession() returns a nullPointerException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark ".getCurrentSession() returns a nullPointerException" Watch ".getCurrentSession() returns a nullPointerException" New topic
Author

.getCurrentSession() returns a nullPointerException

Rodrigo Bela
Greenhorn

Joined: Feb 25, 2008
Posts: 2
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

Joined: Feb 25, 2008
Posts: 2
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: .getCurrentSession() returns a nullPointerException
 
Similar Threads
[Security:090398]Invalid Subject: weblogic :java.lang.SecurityException: [nested exception is java.l
webservice - spring -jws
Empty Ajax response with Spring 3 and jQuery
org.springframework.transaction.jta.WebLogicJtaTransactionManager Spring - WebLogic 11g - Webservice
Spring iBatis NullPointerException when accesing SQLMAP implemented class