[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-578) JTA transaction commit: Access a Sealed WorkQueue which has not been sealed

pouet pouet (JIRA) noreply at atlassian.com
Tue May 3 10:19:59 EDT 2011


    [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42187#action_42187 ] 

pouet pouet commented on HSEARCH-578:
-------------------------------------

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.


> JTA transaction commit: Access a Sealed WorkQueue which has not been sealed
> ---------------------------------------------------------------------------
>
>                 Key: HSEARCH-578
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-578
>             Project: Hibernate Search
>          Issue Type: Bug
>    Affects Versions: 3.2.1
>         Environment: JDK 1.8.0_18 + Glassfish 2.1.1 + Spring 3.0.3 + Hibernate 3.5.3 + Hibernate Search 3.2.1 + MySQL 5.1.48 + Windows XP SP3
>            Reporter: Fabián Guerra
>            Priority: Blocker
>         Attachments: application-context.xml, hibernate.log, search-context.xml
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> I'm facing a problem using hibernate search as HSEARCH-540 bug, after an entity has been persited 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);
> 	}

-- 
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the hibernate-issues mailing list