-->
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.  [ 4 posts ] 
Author Message
 Post subject: AbstractMethodError ... AbstractEntityPersister.lock
PostPosted: Tue Sep 23, 2003 3:45 am 
Newbie

Joined: Tue Sep 23, 2003 2:52 am
Posts: 4
I would really appreciate some assistance with this problem. I have used Hibernate 1.2 in the past and this worked very well. I am trying out Hibernate 2 for the first time and having some problems.

I saw a very brief answer to this in the FAQ that mentioned something about Classic VM but didn't go into any detail.

Version: Hibernate 2.1 beta 3b, and 2.0.3
Java: Blackdown 1.3.1 02c FCS
Linux: Yellowdog 3.0 (PPC)
Database: Postgresql 7.2.3

----

When using Hibernate 1.2 beta3b I get the following error:

1) testLoadPage(ca.realtypages.engine.test.PersistenceTest)java.lang.AbstractMethodError: net/sf/hibernate/persister/AbstractEntityPersister.getTableName
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:148)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:660)
at ca.realtypages.engine.db.HibernateDatasource.initialize(HibernateDatasource.java:37)
at ca.realtypages.engine.db.HibernateDatasource.<init>(HibernateDatasource.java:21)
at ca.realtypages.engine.test.PersistenceTest.testLoadPage(PersistenceTest.java:58)
at ca.realtypages.engine.test.PersistenceTest.main(PersistenceTest.java:81)

---

With hibernate 2.0.3 I get this error:

1) testLoadPage(ca.realtypages.engine.test.PersistenceTest)java.lang.AbstractMethodError: net/sf/hibernate/persister/AbstractEntityPersister.lock
at net.sf.hibernate.loader.Loader.getPropertyAliases(Loader.java:655)
at net.sf.hibernate.loader.Loader.postInstantiate(Loader.java:639)
at net.sf.hibernate.loader.EntityLoader.<init>(EntityLoader.java:37)
at net.sf.hibernate.persister.EntityPersister.postInstantiate(EntityPersister.java:153)
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:223)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:627)
at ca.realtypages.engine.db.HibernateDatasource.initialize(HibernateDatasource.java:37)
at ca.realtypages.engine.db.HibernateDatasource.<init>(HibernateDatasource.java:21)
at ca.realtypages.engine.test.PersistenceTest.testLoadPage(PersistenceTest.java:58)
at ca.realtypages.engine.test.PersistenceTest.main(PersistenceTest.java:81)


---

Both errors seem to be occuring when I initialize Hiberante with the buildSessionFactory call. Here is my initialization code:

Iterator persistentclasses = props.getVector("hibernate.persist").iterator();
net.sf.hibernate.cfg.Configuration hibconfig = new net.sf.hibernate.cfg.Configuration();
try {
while (persistentclasses.hasNext()) {
String classname = (String)persistentclasses.next();
Class c = Class.forName(classname);
hibconfig.addClass(c);
}
sessions = hibconfig.buildSessionFactory();
} catch (Exception e) {
log.error("Error",e);
throw new DatasourceException(e.getMessage());
}


------

Thanks in advance!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 23, 2003 8:38 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Did you build hibernate, or use the pre-built jar from the dist?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 23, 2003 12:28 pm 
Newbie

Joined: Tue Sep 23, 2003 2:52 am
Posts: 4
I used the pre-built jar from the dist.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 23, 2003 12:48 pm 
Newbie

Joined: Tue Sep 23, 2003 2:52 am
Posts: 4
Thanks for the quick reply to my post!

I rebuild the Hibernate 2.0.3 jar and that solved my problem.

Thanks!


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