简体   繁体   English

为什么Java HSQL会抛出AbstractMethodError异常?

[英]Why does Java HSQL throw an AbstractMethodError exception?

I'm getting an AbstractMethodError exception from a GIS library using HSQL. 我使用HSQL从GIS库中获取AbstractMethodError异常。 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. 我猜这是由我的机器上的配置问题引起的,但我不确定它是否与JRE或其他系统库有关。 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. 某些东西是针对JDBC的一个版本编译的,它在ResultSet接口中有方法void isClosed() ,但在运行时可用的HSQLDB版本没有该方法。 The most likely explanation is just that you need to update the HSQLDB lib you're using to run the app. 最可能的解释是您需要更新用于运行应用程序的HSQLDB库。

This method was added to the ResultSet interface in Java 6 (ie, JDBC 4.0) so an older HSQLDB driver would not have it. 此方法已添加到Java 6中的ResultSet接口(即JDBC 4.0)中,因此较旧的HSQLDB驱动程序将无法使用它。

Pay extra attention to the fact that groupId has been changed after 1.8.0.10 release to 要特别注意groupId在1.8.0.10发布后更改为的事实

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

Check maven repository for details 检查maven 存储库以获取详细信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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