Method org/sqlite/RS.isClosed()Z is abstract

简介: Method org/sqlite/RS.isClosed()Z is abstract

使用SQLite和MyBatis查询数据报错

Method org/sqlite/RS.isClosed()Z is abstract

原因是驱动版本太低,去maven查看一下最新版本号,更换一下驱动版本就好了

<dependency>
    <groupId>org.xerial</groupId>
    <artifactId>sqlite-jdbc</artifactId>
    <!--<version>3.7.2</version>-->
    <version>3.32.3</version>
</dependency>
<dependency>
    <groupId>org.mybatis</groupId>
    <artifactId>mybatis</artifactId>
    <version>3.5.5</version>
</dependency>

参考

java.lang.AbstractMethodError: Method com/mysql/jdbc/PreparedStatement.isClosed()Z is abstract

相关文章
|
8月前
|
Java Spring
java.lang.Exception: Method a() should be public
java.lang.Exception: Method a() should be public
82 0
Can not set final java.lang.Class field org.apache.ibatis.binding.MapperProxy.mapperInterface to com
Can not set final java.lang.Class field org.apache.ibatis.binding.MapperProxy.mapperInterface to com
164 0
|
Java 关系型数据库 MySQL
15. 成功解决:java: Can't generate mapping method with primitive return type.
今天启动 SpringBoot 项目时,报了如下错误:`java: Can't generate mapping method with primitive return type.`
1072 0
|
SQL Java 数据库连接
org.apache.ibatis.binding.BindingException: Mapper method 'attempted to return null from a method wi...
org.apache.ibatis.binding.BindingException: Mapper method 'attempted to return null from a method wi...
231 0
【Junit 报错】Test class should have exactly one public zero-argument constructor和Test class can only have one constructor
错误1: 1 java.lang.Exception: Test class should have exactly one public zero-argument constructor 2 at org.
6173 0
|
Java 数据库连接
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update at org.hi
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update at org.hi
163 0
|
Java 数据库连接 Maven
Method org/sqlite/RS.isClosed()Z is abstract
Method org/sqlite/RS.isClosed()Z is abstract
|
Java C++
详解java中overload、override、overwrite的区别
今天刷博客的时候看到一个面试题就是java中overload、override、overwrite的区别。然后看到那个人的博客写的好像跟自己想的不一样,难道是自己都忘了?然后又百度了下,发现看了三个人,三个人的答案还是有差别的。后来自己就参考一些权威的资料,加上自己Demo实验,总结了一下,现在记录下来。
762 0
详解java中overload、override、overwrite的区别
Java中访问修饰符public、private、protect、default范围
Java中访问修饰符public、private、protect、default范围
|
XML JSON 数据格式
No converter found for return value of type: class java.util.ArrayList错误问题
No converter found for return value of type: class java.util.ArrayList错误问题
No converter found for return value of type: class java.util.ArrayList错误问题