Hello,
it seems that some Oracle JDBC drivers lack of an implementation of
java.sql.DatabaseMetaData.getDatabaseMajorVersion(), resulting in java.lang.AbstractMethodError while calling this method from org.hibernate.cfg.SettingsFactory.buildSettings().
Looking into the CVS repository I've seen that this method was introduced from version 1.31 of org.hibernate.cfg.SettingsFactory, tag v304.
I have downloaded the latest driver from Oracle website, but the problem still occurs. I Think this is an Oracle bug, but if Hibernate doesn't use the major version number any more, we can safely hide this kind of error in a try/catch statement without breaking the behaviour of org.hibernate.cfg.SettingsFactory.buildSettings().
Regards
Pietro Pizzo
Hibernate version: 3.0.4
Full stack trace of any exception that occurs:
Code:
java.lang.AbstractMethodError: oracle.jdbc.driver.OracleDatabaseMetaData.getDatabaseMajorVersion()I
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:75)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1463)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1004)
at com.eds.domainstore.hibernate.HibernatePersistenceManagerFactory.<init>(HibernatePersistenceManagerFactory.java:173)
at com.eds.domainstore.PersistenceManagerFactory.<clinit>(PersistenceManagerFactory.java:161)
at com.eds.wind.ndbweb.to.test.TOTest.setUp(TOTest.java:48)
Name and version of the database you are using: Oracle9i Enterprise Edition Release 9.2.0.5.0