[hibernate-issues] [Hibernate-JIRA] Commented: (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:39:16 EST 2012
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44934#comment-44934 ]
Scott Marlow commented on HHH-6936:
-----------------------------------
I was able to recreate with a unit test http://pastie.org/3126072
> 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
> Assignee: 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