From: <no...@at...> - 2006-05-19 15:03:28
|
NullPointerException when try to session after commit ----------------------------------------------------- Key: HHH-1769 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH= -1769 Project: Hibernate3 Type: Bug Versions: 3.1 rc3 =20 Environment: postgresql8, jboss4.0.3SP1, unix (linux, os x) Reporter: C=C3=A9dric Chantepie When trying to get entity by "load" on hibernate session, just after having= commit underlying transaction, and before closing session, a NullPointerEx= ception is thrown from Batcher (AbstractBatcher, BatchingBatcher) as connec= tionManager return a null connection so method "prepareQueryStatement" in t= his batcher cannot work. It seems ok that it should not work after commit but I think a more explici= t exception should be provided in order to make debug more easy. --- hsession.saveOrUpdate(test); tx.commit(); Test tsaved =3D hsession.load(Test.class, "pk"); // NullPointerException ra= ises here hsession.close(); --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators= .jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |