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

Scala 2.12 raises an InvalidObjectException on Java 17 #18

Closed
skylee03 opened this issue Oct 19, 2023 · 3 comments · Fixed by #27
Closed

Scala 2.12 raises an InvalidObjectException on Java 17 #18

skylee03 opened this issue Oct 19, 2023 · 3 comments · Fixed by #27
Assignees
Labels
bug Something isn't working
Milestone

Comments

@skylee03
Copy link
Collaborator

java.io.InvalidObjectException: ReflectiveOperationException during deserialization

Can be solved by upgrading Scala to 2.13, but doing so will cause another error:

Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:445).
scala.collection.convert.Wrappers$IteratorWrapper

In geni/arrow.clj, (scala.collection.convert Wrappers$IteratorWrapper) is imported, but it is removed in Scala 2.13.

@skylee03 skylee03 self-assigned this Oct 19, 2023
@skylee03 skylee03 added the bug Something isn't working label Oct 20, 2023
@skylee03 skylee03 added this to the v1.0.0 milestone Oct 20, 2023
@skylee03
Copy link
Collaborator Author

Newer versions of Scala 2.12 solved this problem.

@skylee03
Copy link
Collaborator Author

Solved by upgrading Spark version to 3.3.3, whose default Scala target is 2.12.15.

@skylee03
Copy link
Collaborator Author

Now can be fixed by upgrading Geni to v0.0.41 (to be released soon).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant