-->
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.  [ 2 posts ] 
Author Message
 Post subject: supportsResultSetType Abstract Method Error
PostPosted: Tue Apr 06, 2004 12:29 pm 
Newbie

Joined: Tue Apr 06, 2004 11:54 am
Posts: 2
I have seen an unanswered request pertaining to this error before.

Hibernate 2.1
DB2 7.2
Tomcat 5.0.19

I have set up a resource in the server.xml file and configured the Hibernate xml files as outlined in the user reference documentation "Quickstart with Tomcat." I have additionally set the hibernate.jdbc.batch_size = 0 as recommended for DB2. I am using the HibernateUtil class also outlined in the "Quckstart"

Here is my unique code in HibernateManager.executeQuery():
Session session = HibernateUtil.currentSession();
Transaction tx= session.beginTransaction();
Query query = session.createQuery(getQuery(userName));

for (Iterator it = query.iterate(); it.hasNext();) {
appUser = (AppUser) it.next();
System.out.println("AppUserId: " + appUser.getUserId() );
}

tx.commit();
HibernateUtil.closeSession();

private String getQuery(String userName) {
StringBuffer sb = new StringBuffer();
sb.append("from com.lat_inc.hibernate.pojo.AppUser appUser");
sb.append("where appUser.userId = " + userName);
return sb.toString();
}

The Error:

java.lang.AbstractMethodError: COM.ibm.db2.jdbc.net.DB2DatabaseMetaData.supportsResultSetType(I)Z
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:75)
at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1119)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:748)
at com.lat_inc.hibernate.HibernateUtil.<clinit>(HibernateUtil.java:26)
at com.lat_inc.hibernate.HibernateManager.executeQuery(HibernateManager.java:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) . . . (more)

I find nothing in the log files except the above error. If there is anywhere else I can look please let me know.

Thanks
Bryon Phinney


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 08, 2004 4:30 am 
Newbie

Joined: Mon Dec 06, 2004 4:52 am
Posts: 5
you have to use a JDBC 2.0 compatible driver, ist looks like you are using JDBC 1.2 compatible driver.
We use the driver from the DBConnect installation CD. There are to db2java.zip-files on the CD, use the one with the newer version of java in the pathname.


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