[hibernate-issues] [Hibernate-JIRA] Created: (HSEARCH-802) IndexControlMBeanTest fails with NPE because Hibernate Core closes the JNDI context

Emmanuel Bernard (JIRA) noreply at atlassian.com
Thu Jul 7 20:02:54 EDT 2011


IndexControlMBeanTest fails with NPE because Hibernate Core closes the JNDI context
-----------------------------------------------------------------------------------

                 Key: HSEARCH-802
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-802
             Project: Hibernate Search
          Issue Type: Bug
            Reporter: Emmanuel Bernard


(first analysis)

The library used to simulate JNDI seems to be purely in memory and do not have the notion of singleton.
Therefore, the SessionFactory is bound to the JNDI context but the context is discarded. 

When later the IndexController tries to reach the SessionFActory via JNDI, it creates a new context instead of sharing one with Hibernate Core.

=> investigate further and fix

-- 
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

        


More information about the hibernate-issues mailing list