-->
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: mistach of libs for 3.2 CR 1 and 2 - lava.lang.NoSuchM
PostPosted: Sat Jun 10, 2006 2:33 pm 
Newbie

Joined: Sun May 28, 2006 11:24 am
Posts: 13
hibernate-annotations-3.2.0.CR1.tar.gz
hibernate-entitymanager-3.2.0.CR1.tar.gz
hibernate-3.2.0.cr2.tar.gz

Guess the method is missing because some are CR1 and some CR2? Those are the only files on sourceforge to download.... Thoughts?

Error:
1) testOne(com.test.HibernateEJB3TestSuite)java.lang.NoSuchMethodError:
org.hibernate.cfg.AnnotationConfiguration.setEntityNotFoundDelegate(Lorg/hibernate/proxy/EntityNotFoundDelegate;)V
at
org.hibernate.ejb.Ejb3Configuration.<init>(Ejb3Configuration.java:94)
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:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


Top
 Profile  
 
 Post subject: missing methods in CR2
PostPosted: Sun Jun 11, 2006 12:26 pm 
Newbie

Joined: Sun May 28, 2006 11:24 am
Posts: 13
Wrote a small test case that does:
EntityManagerFactory emf =
Persistence.createEntityManagerFactory(mgrName);

Using hibernate annotations and entity manager CR1 - there is no CR2 to download.

Run with Hibernate 3.2 core CR2:
org.hibernate.cfg.AnnotationConfiguration.setEntityNotFoundDelegate(Lorg/hibernate/proxy/EntityNotFoundDelegate;)V
java.lang.NoSuchMethodError: org.hibernate.cfg.AnnotationConfiguration.setEntityNotFoundDelegate(Lorg/hibernate/proxy/EntityNotFoundDelegate;)V

Run with Hibernate 3.2 core CR1 - ie: matching hibernate em / annotations CR1:
org/hibernate/proxy/EntityNotFoundDelegate
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: Anybody got a solution to this mismatch problem?
PostPosted: Wed Jun 21, 2006 8:07 am 
Newbie

Joined: Wed Jun 21, 2006 7:55 am
Posts: 1
I am having the same problem as hanasaki.

Anybody got a solution ye? it is blocking me to use jpa with hibernate.

Geert


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.