[hibernate-dev] Regression after upgrade to 4.1.7.Final

Steve Ebersole steve at hibernate.org
Mon Sep 10 10:53:21 EDT 2012


We are going to need a test (ideally without Search) reproducing this.

On 09/10/2012 03:28 AM, Guillaume Smet wrote:
> Hi,
>
> We just upgraded to Hibernate 4.1.7.Final (from 4.1.6.Final) and we
> have a pretty bad regression with 4.1.7 and Hibernate Search 4.1.1.
>
> We have the following stack trace when saving an object:
> Caused by: org.hibernate.HibernateException: Error while indexing in
> Hibernate Search (before transaction completion)
> 	at org.hibernate.search.backend.impl.EventSourceTransactionContext$DelegateToSynchronizationOnBeforeTx.doBeforeTransactionCompletion(EventSourceTransactionContext.java:186)
> 	at org.hibernate.engine.spi.ActionQueue$BeforeTransactionCompletionProcessQueue.beforeTransactionCompletion(ActionQueue.java:662)
> 	at org.hibernate.engine.spi.ActionQueue.beforeTransactionCompletion(ActionQueue.java:307)
> 	at org.hibernate.internal.SessionImpl.beforeTransactionCompletion(SessionImpl.java:607)
> 	at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:105)
> 	at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:175)
> 	at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:75)
> 	at org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:512)
> 	... 47 more
> Caused by: java.lang.NullPointerException
> 	at org.hibernate.engine.internal.StatefulPersistenceContext.getLoadedCollectionOwnerOrNull(StatefulPersistenceContext.java:851)
> 	at org.hibernate.event.spi.AbstractCollectionEvent.getLoadedOwnerOrNull(AbstractCollectionEvent.java:75)
> 	at org.hibernate.event.spi.InitializeCollectionEvent.<init>(InitializeCollectionEvent.java:36)
> 	at org.hibernate.internal.SessionImpl.initializeCollection(SessionImpl.java:1799)
> 	at org.hibernate.collection.internal.AbstractPersistentCollection$4.doWork(AbstractPersistentCollection.java:524)
> 	at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:212)
> 	at org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:520)
> 	at org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:125)
> 	at org.hibernate.collection.internal.PersistentBag.iterator(PersistentBag.java:266)
> 	at org.hibernate.search.engine.spi.AbstractDocumentBuilder.appendContainedInWorkForInstance(AbstractDocumentBuilder.java:296)
> 	at org.hibernate.search.engine.impl.WorkPlan$PerEntityWork.processContainedIn(WorkPlan.java:525)
> 	at org.hibernate.search.engine.impl.WorkPlan$PerClassWork.processContainedInAndPrepareExecution(WorkPlan.java:297)
> 	at org.hibernate.search.engine.impl.WorkPlan.processContainedInAndPrepareExecution(WorkPlan.java:144)
> 	at org.hibernate.search.backend.impl.WorkQueue.prepareWorkPlan(WorkQueue.java:135)
> 	at org.hibernate.search.backend.impl.BatchedQueueingProcessor.prepareWorks(BatchedQueueingProcessor.java:71)
> 	at org.hibernate.search.backend.impl.PostTransactionWorkQueueSynchronization.beforeCompletion(PostTransactionWorkQueueSynchronization.java:86)
> 	at org.hibernate.search.backend.impl.EventSourceTransactionContext$DelegateToSynchronizationOnBeforeTx.doBeforeTransactionCompletion(EventSourceTransactionContext.java:183)
> 	... 54 more
>
> I don't know if it's something obvious or if you need a self contained
> test case to reproduce it.
>
> I haven't created a JIRA because I don't know if it's an
> incompatibility between Hibernate Search 4.1.1 and Hibernate 4.1.7 or
> a real bug (either in HHH or HSEARCH).
>
> Feel free to ping me for more information or any further action.
>
> Thanks.
>


-- 
steve at hibernate.org
http://hibernate.org



More information about the hibernate-dev mailing list