Duke Fast Deduplication: java.lang.UnsupportedOperationException: Operation not yet supported?

北慕城南 提交于 2019-12-02 06:27:55

As mbonaci says, the problem is that the JDBC driver's isClosed() method is not implemented. This even though implementing it would be no harder than simply writing "return closed".

I added an ugly workaround for this issue now. Please do an "hg pull" and try again.

Which Java version are you using?
sun.jdbc.odbc.JdbcOdbcResultSet.isClosed first appeared in Java 1.6. and it still looks like this in v1.7 (I haven't checked in Java 8):

public boolean isClosed() throws SQLException {
    throw new UnsupportedOperationException("Operation not yet supported");
}

So simply don't call that method. Use some other way of checking whether resultset is closed.

Or if you cannot change the code ask the project's authors for help (I see there was an effort to solve exception when closing RS).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!