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

Add small patch to Glue 4.0.0 libs JAR to fix ClassCastException #19

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

whummer
Copy link
Member

@whummer whummer commented Sep 29, 2023

Add small patch to Glue 4.0.0 libs JAR to fix ClassCastException

We have recently started seeing the following errors for Glue jobs running locally, when using Glue v4.0.0:

Caused by: java.lang.ClassCastException: class com.fasterxml.jackson.core.io.IOContext cannot be cast to class com.fasterxml.jackson.dataformat.csv.impl.CsvIOContext (com.fasterxml.jackson.core.io.IOContext and com.fasterxml.jackson.dataformat.csv.impl.CsvIOContext are in unnamed module of loader 'app')

The root cause is that the runtime type of this._context is IOContext and not CsvIOContext, which is required and expected by the GlueCsvParserBootstrapper class. This PR adds a small fix (see code between start of patch / end of patch ) using Java reflection to handle this case..

Copy link
Member

@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It feels like the root cause of the issue might be in another library, but this is looking good as a fix for the actual symptom for now! We can dig deeper in the next iteration. 🚀

@whummer whummer merged commit e198ea9 into master Oct 10, 2023
@whummer whummer deleted the glue-libs-patch branch October 10, 2023 17:15
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 this pull request may close these issues.

None yet

2 participants