简体   繁体   中英

Why does Java HSQL throw an AbstractMethodError exception?

I'm getting an AbstractMethodError exception from a GIS library using HSQL. I'm guessing 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

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 (ie, JDBC 4.0) so an older HSQLDB driver would not have it.

Pay extra attention to the fact that groupId has been changed after 1.8.0.10 release to

<groupId>org.hsqldb</groupId>
  <artifactId>hsqldb</artifactId>

Check maven repository for details

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM