-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: HSEARCH000025 Warning with MassIndexer (4.5.0.CR1)
PostPosted: Wed Jan 29, 2014 9:53 am 
Beginner
Beginner

Joined: Mon Jul 05, 2004 9:29 am
Posts: 38
Hi,

I always get the following warning when closing my EntityManagerFactory after having used MassIndexer:

Code:
HSEARCH000025: Service provider has been used but not released: class org.hibernate.search.hcore.impl.MassIndexerFactoryProvider


I can even reproduce it within a simple junit testcase:

Code:
@Test
public void test() throws Exception {
   EntityManagerFactory factory = Persistence.createEntityManagerFactory("test");
   FullTextEntityManager manager = Search.getFullTextEntityManager(factory.createEntityManager());
   manager.createIndexer().startAndWait();
   manager.close();
   factory.close();
}


persistence.xml

Code:
<persistence>
   <persistence-unit name="test" transaction-type="RESOURCE_LOCAL">
      <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
      <properties>
         <property name="javax.persistence.jdbc.driver" value="org.h2.Driver" />
         <property name="javax.persistence.jdbc.user" value="sa" />
         <property name="javax.persistence.jdbc.password" value="" />
         <property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:test" />
         <property name="hibernate.search.default.directory_provider" value="ram" />
         <property name="hibernate.hbm2ddl.auto" value="create" />
         <property name="hibernate.search.lucene_version" value="LUCENE_35" />
      </properties>
   </persistence-unit>
</persistence>


log:

Code:
14:48:29.194 [main@default] WARN  o.h.e.j.c.i.DriverManagerConnectionProviderImpl - HHH000402: Using Hibernate built-in connection pool (not for production use!)
14:48:30.335 [main@default] WARN  o.h.s.e.impl.StandardServiceManager - HSEARCH000025: Service provider has been used but not released: class org.hibernate.search.hcore.impl.MassIndexerFactoryProvider


Does anybody know where this warning is coming from and what to do to make it go away?

Thanks,

Xavier


Top
 Profile  
 
 Post subject: Re: HSEARCH000025 Warning with MassIndexer (4.5.0.CR1)
PostPosted: Wed Jan 29, 2014 6:13 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,

I've created https://hibernate.atlassian.net/browse/HSEARCH-1495 . It turns out you have nothing to worry about, there isn't actually any resource being leaked.

We released 4.5.0.Final today: sorry it was too late to include a fix for this, a fix will be included in the next iteration.

thanks for reporting it!

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.