Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jmaurer1994 opened this issue Jun 27, 2023 · 1 comment · May be fixed by #482

Comments

@jmaurer1994
Copy link

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 jmaurer1994 linked a pull request Jun 27, 2023 that will close this issue
@julianhyde
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants