[英]Exception while using closeOnCompletion()
Namaskaram, Namaskaram,
I am using H2 database for my Java based Desktop POS (Point of Sale) application. 我正在为基于Java的桌面POS(销售点)应用程序使用H2数据库。 I am getting the below exception, when I try to use the method closeOnCompletion() for my Statement and PreparedStatement objects.
当我尝试对Statement和PreparedStatement对象使用closeOnCompletion()方法时,出现以下异常。
Exception in thread "AWT-EventQueue-0" java.lang.AbstractMethodError: org.h2.jdbc.JdbcStatement.closeOnCompletion()V
线程“ AWT-EventQueue-0”中的异常java.lang.AbstractMethodError:org.h2.jdbc.JdbcStatement.closeOnCompletion()V
Please help. 请帮忙。
The default H2 jar file is currently not compiled for Java 7. Java 7 compatibility is disabled in the source code currently. 当前未为Java 7编译默认的H2 jar文件。目前,源代码中已禁用Java 7兼容性 。
You can enable it yourself by compiling H2 yourself (using ./build.sh jar
). 您可以自己编译H2来启用它(使用
./build.sh jar
)。
Please note the current implementation of closeOnCompletion
is a no-op. 请注意,
closeOnCompletion
的当前实现是closeOnCompletion
操作的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.