[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3438) Could not check JTA transaction; nested exception is java.lang.StackOverflowError
Jara Cesnek (JIRA)
noreply at atlassian.com
Tue Aug 19 12:30:38 EDT 2008
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_30938 ]
Jara Cesnek commented on HHH-3438:
----------------------------------
I am a little confused.
What is the right configuration spring, JOTM and hibernate 3.3.0 ? (With hibernate 3.2.5 all works fine)
Should I
1) Set JOTMTransactionManagerLookup into hibernate properties ?
hibernate.transaction.manager_lookup_class=org.hibernate.transaction.JOTMTransactionManagerLookup
Seem to not working since JTATransactionFactory.getUserTransaction() dont count with this class.
2) Override JTATransactionFactory myself and set hibernate properties to
hibernate.transaction.factory_class=org.hibernate.transaction.JOTMJTATransactionFactory
3) Leave all to spring. Spring 2.5.5 claims that support hibernate 3.3.0. Spring knowns that I am using JOTM and Hibernate. Maybe spring do this for me.
Which one is the right one ?
Thanks for help.
> Could not check JTA transaction; nested exception is java.lang.StackOverflowError
> ---------------------------------------------------------------------------------
>
> Key: HHH-3438
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3438
> Project: Hibernate3
> Issue Type: Bug
> Components: core
> Affects Versions: 3.3.0.GA
> Reporter: Jara Cesnek
>
> This code cause infinite loop. Moreover still dont work with JOTM. HHH-3358
> protected UserTransaction *getUserTransaction*() {
> log.trace( "Attempting to locate UserTransaction via JNDI [{}]", getUserTransactionName() );
> try {
> UserTransaction ut = ( UserTransaction ) getInitialContext().lookup( getUserTransactionName() );
> if ( ut == null ) {
> throw new TransactionException( "Naming service lookup for UserTransaction returned null [" + getUserTransactionName() +"]" );
> }
> log.trace( "Obtained UserTransaction" );
> return ut;
> }
> catch ( NamingException ne ) {
> throw new TransactionException( "Could not find UserTransaction in JNDI [" + *getUserTransaction()* + "]", ne );
> }
> }
--
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