From: <leg...@at...> - 2003-11-21 01:50:24
|
The following comment has been added to this issue: Author: Gavin King Created: Thu, 20 Nov 2003 7:48 PM Body: Are you certain that you are not calling Hibernate.initialize() on a collection that belongs to a disconnected session? --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-482 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-482 Summary: NPE in net.sf.hibernate.impl.SessionImpl Type: Bug Status: Unassigned Priority: Major Project: Hibernate2 Versions: 2.1 beta 4 Assignee: Reporter: Michail Jekimov Created: Thu, 20 Nov 2003 8:50 AM Updated: Thu, 20 Nov 2003 7:48 PM Environment: WinXP Professional, JDK 1.4, Tomcat 4.1.24 Description: I get a NPE in the following method in if (!ce.initialized) It happens sporadically but rather often. /** * called by a collection that wants to initialize itself */ public void initialize(PersistentCollection collection, boolean writing) throws HibernateException { CollectionEntry ce = getCollectionEntry(collection); if ( !ce.initialized ) { if ( log.isTraceEnabled() ) log.trace( "initializing collection " + MessageHelper.infoString(ce.loadedPersister, ce.loadedKey) ); try { ce.loadedPersister.getInitializer().initialize(ce.loadedKey, this); } catch (SQLException sqle) { throw new JDBCException("SQLException initializing collection", sqle); } } } --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |