[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6936) EntityManagerImpl.close() and EntityManagerImpl.isOpen() should check if the session factory is closed

Scott Marlow (JIRA) noreply at atlassian.com
Wed Jan 4 12:07:13 EST 2012


EntityManagerImpl.close() and EntityManagerImpl.isOpen() should check if the session factory is closed
------------------------------------------------------------------------------------------------------

                 Key: HHH-6936
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6936
             Project: Hibernate Core
          Issue Type: Bug
          Components: entity-manager
    Affects Versions: 4.0.0.Final
            Reporter: Scott Marlow
             Fix For: 4.0.1


I'm getting a "UnknownServiceException: Unknown service requested [org.hibernate.stat.spi.StatisticsImplementor]" when I call EntityManagerImpl.close from the java finalizer.  I think this means that I already called sessionFactory.close().

http://pastie.org/3125387

I'm thinking that we need a test for this and can then fix it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list