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

Scott Marlow smarlow at redhat.com
Mon Sep 10 10:47:46 EDT 2012


Let us know the issue number, so we can link AS7-5511 (AS7 component 
upgrade to Hibernate 4.1.7.Final) to it.

On 09/10/2012 08:33 AM, Emmanuel Bernard wrote:
> That does not look good. Can you open an issue so we at least track the
> problem?
>
> Emmanuel
>
> On Lun 2012-09-10 10:28, 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.
>>
>> --
>> Guillaume
>> _______________________________________________
>> hibernate-dev mailing list
>> hibernate-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>



More information about the hibernate-dev mailing list