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

BUG REPORT: NoClassDefFoundError: java/sql/Xxx #1537

Closed
DragonKnightOfBreeze opened this issue Jun 1, 2019 · 3 comments
Closed

BUG REPORT: NoClassDefFoundError: java/sql/Xxx #1537

DragonKnightOfBreeze opened this issue Jun 1, 2019 · 3 comments

Comments

@DragonKnightOfBreeze
Copy link

Please consider using try...catch exp with code in that relates to java.sql.Xxx,
like java.sql.Date,java.sql.Time.
Otherwise, it will show NoClassDefFoundError sometimes.
Eg: use Gson by a kotlin script

//line 265 in Gson.java
//The following code should surround with try catch.

factories.add(TimeTypeAdapter.FACTORY);
factories.add(SqlDateTypeAdapter.FACTORY);
@DragonKnightOfBreeze
Copy link
Author

requires java.sql in module-info.java seems do noting.

@Marcono1234
Copy link
Collaborator

Similar to / same as #1629

@Marcono1234
Copy link
Collaborator

Was probably fixed by #1707.

@eamonnmcmanus eamonnmcmanus closed this as not planned Won't fix, can't repro, duplicate, stale Jul 29, 2022
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

No branches or pull requests

3 participants