-->
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.  [ 2 posts ] 
Author Message
 Post subject: Tests stopping after upgrading hibernate
PostPosted: Thu Feb 12, 2009 1:03 pm 
Newbie

Joined: Thu Feb 12, 2009 12:44 pm
Posts: 4
Hello,

I have a complicated problem.

My project is using JPA with a few hibernate annotations. Hibernate is used via spring and the DAOs extends HibernateDaoSupport.

I've written "unit" tests for my daos using hsql data base.

While everything works fine with the present configuration, if I upgrade hibernate the test stop when the firsts dao method is called. It doesn't crash, nor seem to loop, just stop. the program must be killed.

The dependencies are managed with maven. The spring version is 2.5.6.

With this versions of hibernate artifacts it works (from maven central) :

groupId : hibernate, artifactId : hibernate3, version : 3.2.3.GA
groupId : org.hibernate, artifactId : ejb3-persistence, version : 3.0
groupId : org.hibernate, artifactId : hibernate-annotations, version : 3.3.0.ga
groupId : org.hibernate, artifactId : hibernate-commons-annotations, version : 3.3.0.ga

And with those It doesn't :

groupId : org.hibernate, artifactId : hibernate-core, version : 3.3.1.GA
groupId : org.hibernate, artifactId : hibernate-annotations, version : 3.4.0.GA
groupId : org.hibernate, artifactId : ejb3-persistence, version : 3.0
groupId : org.hibernate, artifactId : hibernate-commons-annotations, version : 3.3.0.ga

I had to explicity include some transitive dependencies :

groupId : org.slf4j, artifactId : slf4j-api, version : 1.5.6
groupId : org.slf4j, artifactId : slf4j-log4j12, version : 1.5.6
groupId : javassist, artifactId : javassist, version : 3.9.0.GA

I don't post the spring configuration (yet) because it's complicated.

I ask if anyone knows of a change or issue that can cause this problem ? If you need more information, I can provide it.


Top
 Profile  
 
 Post subject: Re: Tests stopping after upgrading hibernate
PostPosted: Tue Jun 01, 2010 12:08 pm 
Newbie

Joined: Thu Feb 12, 2009 12:44 pm
Posts: 4
For any future search :

I ended up with this configuration in that project (which I left a few months ago) :

org.hibernate hibernate-core 3.3.2.GA
org.hibernate ejb3-persistence 1.0.2.GA
org.hibernate hibernate-annotations 3.4.0.GA
org.hibernate hibernate-commons-annotations 3.3.0.ga exclusions : org.hibernate hibernate et javax.persistence persistence-api
javassist javassist 3.9.0.GA

But the best method would be to use the hibernate compatibility matrix :

http://community.jboss.org/wiki/Hiberna ... lityMatrix


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.