Hibernate Search 5.5.3.Final problem with Hibernate 5.2.0.Final

Description

After updating hibernate to 5.2.0 Version i have this error :
testSearchLucene(org.geosdi.geoplatform.persistence.search.demo.PersistenceJpaSearchTest) Time elapsed: 0.108 sec <<< ERROR!
java.lang.NoSuchMethodError: org.hibernate.event.spi.EventSource.getTransactionCoordinator()Lorg/hibernate/resource/transaction/TransactionCoordinator;
at org.hibernate.search.backend.impl.EventSourceTransactionContext.isLocalTransaction(EventSourceTransactionContext.java:117)
at org.hibernate.search.backend.impl.EventSourceTransactionContext.registerSynchronization(EventSourceTransactionContext.java:84)
at org.hibernate.search.backend.impl.PerTransactionWorker.performWork(PerTransactionWorker.java:73)
at org.hibernate.search.event.impl.FullTextIndexEventListener.processWork(FullTextIndexEventListener.java:237)
at org.hibernate.search.event.impl.FullTextIndexEventListener.onPostInsert(FullTextIndexEventListener.java:110)
at org.hibernate.action.internal.EntityInsertAction.postInsert(EntityInsertAction.java:164)
at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:131)
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:560)
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:434)
at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:337)
at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:39)
at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1396)
at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:472)
at org.hibernate.internal.SessionImpl.flushBeforeTransactionCompletion(SessionImpl.java:3132)
at org.hibernate.internal.SessionImpl.beforeTransactionCompletion(SessionImpl.java:2369)
at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.beforeTransactionCompletion(JdbcCoordinatorImpl.java:467)
at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl.beforeCompletionCallback(JdbcResourceLocalTransactionCoordinatorImpl.java:147)
at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl.access$100(JdbcResourceLocalTransactionCoordinatorImpl.java:38)
at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl$TransactionDriverControlImpl.commit(JdbcResourceLocalTransactionCoordinatorImpl.java:221)
at org.hibernate.engine.transaction.internal.TransactionImpl.commit(TransactionImpl.java:68)
at org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:517)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:761)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:730)
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:485)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:291)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
at com.sun.proxy.$Proxy57.persist(Unknown Source)
at org.geosdi.geoplatform.persistence.search.demo.PersistenceJpaSearchTest.insert(PersistenceJpaSearchTest.java:88)
at org.geosdi.geoplatform.persistence.search.demo.PersistenceJpaSearchTest.testSearchLucene(PersistenceJpaSearchTest.java:77)

Activity

Show:

Sanne GrinoveroJune 13, 2016 at 12:01 AM

Hi , I'm sorry but Hibernate Search version 5.5.x requires Hibernate ORM 5.0.x (as documented in the README file:

It happens to work fine with Hibernate ORM version 5.1, and also with the latest minor upgrades of Apache Lucene, but that was just luck. Generally speaking we can only guarantee (and we only test for) a specific minor version. Micro version updates should be safe, we work hard to make sure that patches in a micro branch don't break compatibility across libraries.

I've created to track the dependency update, closing this issue. Thanks for letting me know there's interest in a quick update! Please vote or watch the new issue.

Duplicate

Details

Assignee

Reporter

Priority

Created June 12, 2016 at 9:13 AM
Updated June 13, 2016 at 12:02 AM
Resolved June 13, 2016 at 12:01 AM