Bugs item #1055176, was opened at 2004-10-27 02:40
Message generated for change (Comment added) made by starksm
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1055176&group_id=22866
Category: Hibernate
Group: v4.0
>Status: Closed
Resolution: None
Priority: 3
Submitted By: Heiko W.Rupp (pilhuhn)
Assigned to: Nobody/Anonymous (nobody)
Summary: NPE in HibernateContext.prepareSession
Initial Comment:
Hi,
this might be a pilot error ...
When I try to obtain a session like this:
Session =
HibernateContext.getSession("java:/hibernate/SessionFactory");
I get a NPE
Caused by: java.lang.NullPointerException
at
org.jboss.hibernate.session.HibernateContext.prepareSession(HibernateContext.java:171)
at
org.jboss.hibernate.session.HibernateContext.getSession(HibernateContext.java:99)
at
de.bsd.adb_hibernate.server.ServerFacade.beispiel(ServerFacade.java:22)
If I do it the classical way
InitialContext ic = new InitialContext();
Object o = ic.lookup("java:/hibernate/SessionFactory");
sf = (SessionFactory)o;
Session sess = sf.openSession()
it works as intended.
----------------------------------------------------------------------
Comment By: Scott M Stark (starksm)
Date: 2004-12-29 12:51
Message:
Logged In: YES
user_id=175228
All issues have been moved to http://jira.jboss.com. Existing
issues have been moved. New issues will be closed with this
canned reponse.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1055176&group_id=22866
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development