-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Migration issue: Hibernate 3.1 -> 3.1.3 StackoverflowErro
PostPosted: Sat May 20, 2006 9:08 pm 
Newbie

Joined: Mon Jun 20, 2005 2:51 pm
Posts: 13
Location: Brasil
I am trying to migrate my 3.1 app to 3.1.3 but encountered a strange migration issue (yes, I read the migration page).

When making some database queries, I get a StackOverflow:


Code:
Caused by: java.lang.StackOverflowError
        at java.lang.reflect.InvocationTargetException.<init>(InvocationTargetException.java:54)
        at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.hibernate.jdbc.BorrowedConnectionProxy.invoke(BorrowedConnectionProxy.java:40)
        at $Proxy0.getAutoCommit(Unknown Source)
....



I am clueless, please help!

Axel

_________________
Skype: 'axelberle'


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 28, 2006 9:45 am 
Newbie

Joined: Sun May 28, 2006 9:43 am
Posts: 6
Hi,

I am having the same problem occur intermittently. Did you find a solution for this?

Thanks,
Yair


Top
 Profile  
 
 Post subject: Servlet Filter
PostPosted: Sun May 28, 2006 10:26 am 
Newbie

Joined: Mon Jun 20, 2005 2:51 pm
Posts: 13
Location: Brasil
Hi,

the problem was related to the HibernateFilter which I used to implement long-running application transactions. When I switched to HibernateThreadExtendedFilter (and the new HibernateUtil) as shown in the CaveatEmptor example it works fine. Beware though for the missing synchronization issue. You should syncronize on the HttpSession object. The best solution is to synchronize on some object that you put into the session.

Hope this helps!

Axel

_________________
Skype: 'axelberle'


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.