JTA transaction commit: Access a Sealed WorkQueue which has not been sealed

Description

I'm facing a problem using hibernate search as https://hibernate.atlassian.net/browse/HSEARCH-540#icft=HSEARCH-540 bug, after an entity has been persisted hibernate tries to index it but I got:

org.hibernate.annotations.common.AssertionFailure: Access a Sealed WorkQueue which has not been sealed

I'm not using annotations to handle POJO's and transactions, I use Spring's HibernateTemplate to persist objects and Aspects to transaction management. (Config files attached)

example:

@Override public void add(Item item) { getHibernateTemplate().save(item); }

Attachments

3
  • 19 Aug 2010, 01:02 AM
  • 19 Aug 2010, 01:02 AM
  • 19 Aug 2010, 01:02 AM

Activity

Show:

pouet pouetMay 3, 2011 at 4:32 PM

there is maybe something that HibernateTransactionManager is doing that the others don't

pouet pouetMay 3, 2011 at 4:17 PM

I solved my problem, the solution is here https://forum.hibernate.org/viewtopic.php?f=9&t=1010772

the problem was that I used a

<bean id="transactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource" />
</bean>

instead of using a
<bean id="transactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property>
</bean>

I don't know if hibernate search can know it, must maybe there is a way to warn it won't work with some specific transaction manager.

Sanne GrinoveroMay 3, 2011 at 2:53 PM

hi pouet, thank you for the warning, but I still need a testcase 😉

pouet pouetMay 3, 2011 at 11:31 AM

I have the same issue with Hibernate 3.6Final, Hibernate Search 3.4Final, Spring 3.0.5, tomcat 3.5.21

Sanne GrinoveroDecember 9, 2010 at 11:03 PM

Hi Fabián, we need more information to be able to fix this. Could you provide a testcase or at least a model that when stored is able to reproduce this?

Out of Date

Details

Assignee

Reporter

Original estimate

Time tracking

No time logged168h remaining

Affects versions

Priority

Created August 19, 2010 at 1:02 AM
Updated October 13, 2011 at 1:19 PM
Resolved October 13, 2011 at 1:19 PM

Flag notifications