[
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-540?pag...
]
Tom Waterhouse commented on HSEARCH-540:
----------------------------------------
The 3.3.0-SNAPSHOT build does resolve the sealed queue issue (testMuffins). It looks like
another issue exists (testDoughnuts):
javax.persistence.PersistenceException: java.lang.UnsupportedOperationException
at
org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:1071)
at
bitronix.tm.BitronixTransaction.fireBeforeCompletionEvent(BitronixTransaction.java:430)
at bitronix.tm.BitronixTransaction.commit(BitronixTransaction.java:173)
at bitronix.tm.BitronixTransactionManager.commit(BitronixTransactionManager.java:104)
at
org.springframework.transaction.jta.JtaTransactionManager.doCommit(JtaTransactionManager.java:1009)
at
org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:754)
at
org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723)
at
org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:375)
at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:120)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:625)
at org.foobar.BoxDAO$$EnhancerByCGLIB$$9d21c0d7.merge(<generated>)
at org.foobar.BoxTest.testDoughnuts(BoxTest.java:47)
.
.
.
Caused by: java.lang.UnsupportedOperationException
at java.util.AbstractList.add(AbstractList.java:131)
at java.util.AbstractList.add(AbstractList.java:91)
at org.hibernate.search.backend.WorkQueue.add(WorkQueue.java:59)
at
org.hibernate.search.backend.impl.BatchedQueueingProcessor.add(BatchedQueueingProcessor.java:130)
at
org.hibernate.search.backend.impl.PostTransactionWorkQueueSynchronization.add(PostTransactionWorkQueueSynchronization.java:68)
at
org.hibernate.search.backend.impl.TransactionalWorker.performWork(TransactionalWorker.java:82)
at
org.hibernate.search.event.FullTextIndexEventListener.processWork(FullTextIndexEventListener.java:181)
at
org.hibernate.search.event.FullTextIndexEventListener.processCollectionEvent(FullTextIndexEventListener.java:228)
at
org.hibernate.search.event.FullTextIndexEventListener.onPostRemoveCollection(FullTextIndexEventListener.java:202)
at
org.hibernate.action.CollectionRemoveAction.postRemove(CollectionRemoveAction.java:146)
at org.hibernate.action.CollectionRemoveAction.execute(CollectionRemoveAction.java:119)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:268)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:260)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:181)
at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1206)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:375)
at
org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:1057)
... 42 more
JTA transaction commit causes AssertionFailure: Access a Sealed
WorkQueue which has not been sealed
---------------------------------------------------------------------------------------------------
Key: HSEARCH-540
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-540
Project: Hibernate Search
Issue Type: Bug
Affects Versions: 3.2.0.Final
Environment: Hibernate 3.5.2-Final, Spring 3.0.2.RELEASE, MySQL 5.1.34, Atomikos
3.5.13
Reporter: Tom Waterhouse
Attachments: hibernate-search-jta-bug.log, jta-btm-h2.zip, jta-btm-hibernate.zip,
jta-btm.zip
When we switched our application to use JTA a number of exceptions are generated on
transaction commit. Spring is used by the application; the transactions are managed via
the Spring class JtaTransactionManager. The Web app and Hibernate Search worked perfectly
using JpaTransactionManager.
Exception examples:
[2010-06-04 09:04:34.391, 49026]ERROR[http-8080-1](AssertionFailure.java:46) - an
assertion failure occured (this may indicate a bug in Hibernate)
org.hibernate.annotations.common.AssertionFailure: Access a Sealed WorkQueue which has
not been sealed
[2010-06-04 09:04:34.395, 49030]ERROR[http-8080-1](AssertionFailure.java:50) - an
assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to
unsafe use of the session)
org.hibernate.HibernateException: Error while indexing in Hibernate Search (ater
transaction completion)
The full log file has been attached
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira