Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Issues List »

[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3438) Could not
check JTA
transaction; nested exception is java.lang.StackOverflowError

Anupam M (JIRA)

2008-08-19

Replies: Find Java Web Hosting

Author LoginPost Reply
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

   
_______________________________________________
hibernate-issues mailing list
hibernate-issues@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-issues
©2008 gg3721.com - Jax Systems, LLC, U.S.A.