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

Stop using old Java 8 time classes #387

Closed
ryanrdoherty opened this issue Mar 6, 2025 · 1 comment
Closed

Stop using old Java 8 time classes #387

ryanrdoherty opened this issue Mar 6, 2025 · 1 comment

Comments

@ryanrdoherty
Copy link
Member

A recent Jackson upgrade (2.18.3) resulted in the following runtime exception when visiting the vdi-datasets endpoint:

Java 8 date/time type `java.time.OffsetDateTime` not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling (through reference chain: java.util.ArrayList[0]->org.veupathdb.service.vdi.generated.model.DatasetListEntryImpl["created"])

As requested, I added "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" as a dependency and it resolved the issue, but we should probably find the modern alternative to java.time.OffsetDateTime and use it instead, then remove the additional dependency.

@ryanrdoherty
Copy link
Member Author

This was fixed with removal of Jersey's Jackson filter, in #389

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

2 participants