sqlline icon indicating copy to clipboard operation
sqlline copied to clipboard

java.lang.AbstractMethodError: Receiver class does not define or inherit an implementation of the resolved method 'abstract boolean isClosed()' of interface java.sql.ResultSet.

Open jmaurer1994 opened this issue 1 year ago • 1 comments

Hello!

I was trying to use sqlline with an older system/driver and encountered the below error: image

It seems like this happens if the driver was built with an older version of java (different driver, same issue): https://www.ibm.com/support/pages/why-does-isclosed-throw-exception-when-used-resultset

Joe

jmaurer1994 avatar Jun 27 '23 16:06 jmaurer1994

Can you give more details:

  • What JDK was the driver built on?
  • What JDK are you running on?
  • When was the isClosed() method introduced?

i saw your proposed fix #482 but I don't think that catching errors is a good idea. If a driver doesn't have the required methods to run on a particular JDK I don't think that sqlline should be trying to apply duck tape.

julianhyde avatar Jun 27 '23 16:06 julianhyde