cmcginty cmcginty - 1 year ago 173
Java Question

Why does Java HSQL throw an AbstractMethodError exception?

I'm getting an AbstractMethodError exception from a GIS library using HSQL. I image this is caused by a configuration issue on my machine, but I'm not sure if its related to the JRE, or some other system lib. Here is the error:

Exception in thread "main" java.lang.AbstractMethodError: org.hsqldb.jdbc.jdbcResultSet.isClosed()Z

Answer Source

Something was compiled against a version of JDBC which has the method void isClosed() in the ResultSet interface, but the version of HSQLDB available at runtime does not have that method. The most likely explanation is just that you need to update the HSQLDB lib you're using to run the app.

This method was added to the ResultSet interface in Java 6 (i.e., JDBC 4.0) so an older HSQLDB driver would not have it.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download