-->
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.  [ 23 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: 3.2.0 CR2 released
PostPosted: Sat May 06, 2006 2:05 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Hibernate 3.2.0.CR2 has been released.

Changes mainly represent further alignments with the latest EJB3 specifications. Two important ones to note in particular are
(1) the ability to perform bulk operations via native-sql queries, avoiding the need to grab JDBC connections
(2) alignment with the specification required return types for aggregation queries; this specifically required changes for COUNT, AVG, and SUM; see HHH-1538 for the details.


Top
 Profile  
 
 Post subject: XA
PostPosted: Mon May 08, 2006 10:51 am 
Newbie

Joined: Thu Jul 21, 2005 10:17 am
Posts: 17
The version 3.2 supports XA ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 08, 2006 3:30 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yes, like all other previous versions of Hibernate.

XA has nothing to do with hibernate; it is Connection/Driver issue.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: XA Feature
PostPosted: Tue May 09, 2006 7:46 am 
Newbie

Joined: Thu Jul 21, 2005 10:17 am
Posts: 17
max wrote:
yes, like all other previous versions of Hibernate.

XA has nothing to do with hibernate; it is Connection/Driver issue.


If my driver supports XA and if i use JTA (with session beans), i can run ON E transaction including TWO session factorys ? ( two diferents .ear )


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 09, 2006 8:54 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
sure of course.

It is *just* a driver issue.

It is just jdbc.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Hibernate 3.2.c0 cr2 java.lang.NoSuchMethodError
PostPosted: Thu May 11, 2006 12:52 pm 
Newbie

Joined: Thu May 11, 2006 12:46 pm
Posts: 1
Location: Argentina
Hello, I setup my app with the last version of hibernate (3.2.0 cr2) and hibernate-annotations (3.1.0 Beta 10) and when my app start I have this error:

Exception in thread "main" java.lang.NoSuchMethodError: org.hibernate.cfg.NamingStrategy.foreignKeyColumnName(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
at org.hibernate.cfg.Ejb3JoinColumn.linkValueUsingDefaultColumnNaming(Ejb3JoinColumn.java:266)
at org.hibernate.cfg.annotations.TableBinder.linkJoinColumnWithValueOverridingNameIfImplicit(TableBinder.java:311)
at org.hibernate.cfg.annotations.TableBinder.bindFk(TableBinder.java:253)
at org.hibernate.cfg.FkSecondPass.doSecondPass(FkSecondPass.java:45)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:261)
at org.hibernate.cfg.Configuration.generateSchemaUpdateScript(Configuration.java:861)
at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:140)
at DatabaseUpdate.initialization(DatabaseUpdate.java:25)
at DatabaseUpdate.main(DatabaseUpdate.java:9)

Any suggestion?

Thanks


Top
 Profile  
 
 Post subject: Hibernate 3.2.c0 cr2 java.lang.NoSuchMethodError
PostPosted: Fri May 12, 2006 12:23 pm 
Newbie

Joined: Sat Apr 01, 2006 5:45 pm
Posts: 2
Hi, I have the same errors with the same versions as amoedox


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 12, 2006 1:31 pm 
Newbie

Joined: Fri May 12, 2006 12:18 pm
Posts: 4
Location: Karlsruhe, Germany
Hi there,

I have this problems also and just posted it here...


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 15, 2006 8:56 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Use Hibernate Annotations 3.2.0.CR1 and Hibernate EntityManager 3.2.0.CR1

_________________
Emmanuel


Top
 Profile  
 
 Post subject: CR# mismatch
PostPosted: Sun May 28, 2006 1:14 pm 
Newbie

Joined: Sun May 28, 2006 11:24 am
Posts: 13
emmanuel wrote:
Use Hibernate Annotations 3.2.0.CR1 and Hibernate EntityManager 3.2.0.CR1


I see the following (there is a mismatch between CR#'s):
hibernate-3.2.0.cr2.tar.gz
hibernate-annotations-3.2.0.CR1.tar.gz
hibernate-entitymanager-3.2.0.CR1.tar.gz


Top
 Profile  
 
 Post subject: Re: CR# mismatch
PostPosted: Sun May 28, 2006 2:22 pm 
Beginner
Beginner

Joined: Sat Dec 17, 2005 1:24 pm
Posts: 42
Location: Berlin, Germany
Quote:
hibernate-3.2.0.cr2.tar.gz
hibernate-annotations-3.2.0.CR1.tar.gz


I use these two and they work fine together.

Cheers,

René


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 15, 2006 9:27 pm 
Newbie

Joined: Sun May 28, 2006 11:24 am
Posts: 13
Running my test with Hibernate3.2cr2 and annotations and em cr1 results in the below error.

java.lang.NoClassDefFoundError: org/hibernate/proxy/EntityNotFoundDelegate
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:113)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:27)
at com.empathicsolutions.ejb3.HibernateEJB3Util.<init>(HibernateEJB3Util.java:31)
at com.test.HibernateEJB3TestSuite.testOne(HibernateEJB3TestSuite.java:44)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 05, 2006 6:23 am 
Newbie

Joined: Wed Feb 15, 2006 10:17 am
Posts: 13
Location: Rome, Italy
Hi,

my application is based on Spring (1.2.7) and uses maven2 to resolve dependencies and deploy itself. All the unit tests were running fine when depending on hibernate-3.2.0.cr1 and hibernate-annotations-3.1beta9 (from ibiblio maven2 repository).

Upgrading to hibernate-3.2.0.cr2 and hibernate-annotations-3.2.0.cr1 (still from ibiblio maven2 repository) when I launch the suite of all the unit tests I get:

Code:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [springapp-servlet.xml]: Initialization of bean failed; nested exception is org.hibernate.cache.CacheException: Attempt to restart an already started EhCacheProvider. Use sessionFactory.close()  between repeated calls to buildSessionFactory. Consider using net.sf.ehcache.hibernate.SingletonEhCacheProvider. Error from  ehcache was: Cannot parseConfiguration CacheManager. Attempt to create a new instance of CacheManager using the diskStorePath "/tmp" which is already used by an existing CacheManager. The source of the configuration was classpath.
org.hibernate.cache.CacheException: Attempt to restart an already started EhCacheProvider. Use sessionFactory.close()  between repeated calls to buildSessionFactory. Consider using net.sf.ehcache.hibernate.SingletonEhCacheProvider. Error from  ehcache was: Cannot parseConfiguration CacheManager. Attempt to create a new instance of CacheManager using the diskStorePath "/tmp" which is already used by an existing CacheManager. The source of the configuration was classpath.
   at org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:133)
   at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:180)
   at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1213)
   at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:825)
   at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:751)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1091)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:87)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:72)
......... [cut snippet]


If I launch one test case per time, it works.

And strangely enough, I don't use EhCache at all!
Here it is my hibernate configuration is:

Code:
driverClassName=org.hsqldb.jdbcDriver
url=jdbc:hsqldb:mem:testdb
username=sa
password=
hibernate.dialect=org.hibernate.dialect.HSQLDialect
hibernate.current_session_context_class=thread
hibernate.hbm2ddl.auto=create
cache.provider_class=org.hibernate.cache.NoCacheProvider
hibernate.show_sql=false
hibernate.jdbc.batch_size=0
hibernate.connection.pool_size=1
hibernate.lucene.index_dir=/tmp/lucene_tmp_index


As I said, it was all working before I just updated the dependencies.

Thanks in advance, let me know if you need some more infos,

Alessio Pace.
http://www.jroller.com/page/alessiopace


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 05, 2006 7:37 am 
Regular
Regular

Joined: Fri Jan 20, 2006 9:38 am
Posts: 61
Location: Notts, UK
I updated to the latest versions:

hibernate-entitymanager-3.2.0.CR1
hibernate-annotations-3.2.0.CR1
hibernate-3.2.0.cr2

and now I get this:

Code:
11:34:11,812 ERROR [STDERR] java.lang.NoClassDefFoundError: javax/persistence/SqlResultSetMappings
11:34:11,812 ERROR [STDERR]     at org.hibernate.reflection.java.EJB3OverridenAnnotationReader.<clinit>(EJB3OverridenAnnotationReade
r.java:135)
11:34:11,812 ERROR [STDERR]     at org.hibernate.reflection.java.JavaXAnnotatedElement.<init>(JavaXAnnotatedElement.java:22)
11:34:11,812 ERROR [STDERR]     at org.hibernate.reflection.java.JavaXClass.<init>(JavaXClass.java:24)
11:34:11,812 ERROR [STDERR]     at org.hibernate.reflection.java.JavaXFactory$1.caseClass(JavaXFactory.java:179)
11:34:11,812 ERROR [STDERR]     at org.hibernate.reflection.java.JavaXFactory$1.caseClass(JavaXFactory.java:188)
11:34:11,812 ERROR [STDERR]     at org.hibernate.reflection.java.generics.TypeSwitch.doSwitch(TypeSwitch.java:19)
11:34:11,812 ERROR [STDERR]     at org.hibernate.reflection.java.JavaXFactory.toXClass(JavaXFactory.java:173)
11:34:11,812 ERROR [STDERR]     at org.hibernate.reflection.java.JavaXFactory.toXClass(JavaXFactory.java:83)
11:34:11,812 ERROR [STDERR]     at org.hibernate.cfg.AnnotationConfiguration.addAnnotatedClass(AnnotationConfiguration.java:133)
11:34:11,812 ERROR [STDERR]     at org.hibernate.ejb.Ejb3Configuration.addAnnotatedClass(Ejb3Configuration.java:985)
11:34:11,812 ERROR [STDERR]     at com.fcl.ejb.EntityMgrBean.startPersistence(EntityMgrBean.java:413)


Top
 Profile  
 
 Post subject: Re: XA Feature
PostPosted: Tue Jul 25, 2006 3:34 pm 
Newbie

Joined: Tue Jul 25, 2006 3:22 pm
Posts: 2
Location: Cedar Park, TX
chun wrote:
max wrote:
yes, like all other previous versions of Hibernate.

XA has nothing to do with hibernate; it is Connection/Driver issue.


If my driver supports XA and if i use JTA (with session beans), i can run ONE transaction including TWO session factorys ? ( two diferents .ear )


I am confused about your XA support as well. XA isn't just a different driver; it's a driver that supports two-phase commits (i.e. commiting in two different Data Sources within a single transaction, treating the two commits as a single atomic operation). I'm new to Hibernate, and I'm having trouble seeing how you could do a two-phase commit with the Hibernate APIs.

If you need a different SessionFactory (hence a different Session) for each Data Source, how can you take advantage of XA? Can you create a Transaction that spans two Sessions?

When you say that Hibernate supports XA are you just saying that because use of the Hibernate APIs is optional you're not breaking XA, or are you claiming that the Hibernate APIs provide mechanisms for supporting XA tranasctions? If you're claming the latter, would you mind pointing me at the appropriate APIs? Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 23 posts ]  Go to page 1, 2  Next

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.