开发者

Issues with h2 upgrade to 1.2.147 - getNString exception

开发者 https://www.devze.com 2023-03-03 23:21 出处:网络
I have recently upgraded to h2 1.2.147. My code throws an exception - Caused by: java.lang.AbstractMethodError: org.h2.jdbc.JdbcResultSet.getNString(Ljava/lang/String;)Ljava/lang/String;

I have recently upgraded to h2 1.2.147. My code throws an exception - Caused by: java.lang.AbstractMethodError: org.h2.jdbc.JdbcResultSet.getNString(Ljava/lang/String;)Ljava/lang/String;

Any idea?

Thanks,开发者_如何学Python Anuprit


Sounds like your .jar file was not compiled with support for Java6 (i.e. JDBC4)

There is a pre-processor directive in the source code that only compiles that method when you compile it with Java6

Try re-building it with Java6, then the method should be there

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号