-->
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: java.lang.AbstractMethodError
PostPosted: Tue Feb 03, 2009 8:27 am 
Newbie

Joined: Tue Feb 03, 2009 8:18 am
Posts: 2
I am trying to connect to Oracle 8i using hibernate

my hibernate.cfg.xml file is as below and i have kept classes111.zip in classpath

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
      "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
      "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
   <session-factory>
      <property name="transaction.factory.class">org.hibernate.transaction.JDBCTransactionFactory</property>
      <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
      <property name="hibernate.connection.url">jdbc:oracle:thin:@127.0.0.1:1521:MyOra</property>
      <property name="hibernate.connection.username">SYSTEM</property>
      <property name="hibernate.connection.password">MANAGER</property>
      <property name="hibernate.connection.pool_size">10</property>
      <property name="show_sql">true</property>
      <property name="dialect">org.hibernate.dialect.Oracle8iDialect</property>

      <mapping resource="hibernate/Cat.hbm.xml" />
   </session-factory>
</hibernate-configuration>



But when i execute i get following error.

Code:
890 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC driver: Oracle JDBC driver, version: 8.1.5.0.0
java.lang.AbstractMethodError: oracle.jdbc.driver.OracleDatabaseMetaData.supportsResultSetType(I)Z
   at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:119)
   at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101)
   at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325)


Please advice


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 03, 2009 9:15 am 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
The JDBC driver (classes111.zip) you are using is too old. See http://www.oracle.com/technology/softwa ... index.html for more information.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 03, 2009 9:52 am 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
Or maybe this will make Hibernate work with an older driver: http://www.hibernate.org/120.html#A5


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 03, 2009 12:24 pm 
Newbie

Joined: Tue Feb 03, 2009 8:18 am
Posts: 2
nordborg wrote:
The JDBC driver (classes111.zip) you are using is too old. See http://www.oracle.com/technology/softwa ... index.html for more information.


thanks nordborg your were right, i used the latest classes12.jar and it worked fine on the first go :)


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.