Skip to content

H2 2.0.202 removed org.h2.api.TimestampWithTimeZone but needed by spring-data-jdbc 2.3.0 (JdbcH2Dialect) #1114

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

Closed
kszymko opened this issue Dec 15, 2021 · 1 comment
Assignees
Labels
type: enhancement A general enhancement

Comments

@kszymko
Copy link

kszymko commented Dec 15, 2021

Failed to instantiate [org.springframework.data.jdbc.core.convert.JdbcCustomConversions]: Factory method 'jdbcCustomConversions' threw exception; - nested exception is java.lang.TypeNotPresentException: Type org.h2.api.TimestampWithTimeZone not present

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 15, 2021
@schauder schauder self-assigned this Dec 15, 2021
schauder added a commit that referenced this issue Dec 16, 2021
With older versions H2 returned a proprietary  instance from .
We used to support the conversion of that to an .

With the most recent versions  is no longer part of the H2 driver and we only register the converter when we encounter older versions of H2.

See #1114
@schauder
Copy link
Contributor

This seems to be related to h2database/h2database#1359 although that only mentions allowing not to use TimestampWithTimeZone, but I guess it was a first step to removing it.

schauder added a commit that referenced this issue Dec 16, 2021
With older versions H2 returned a proprietary  instance from .
We used to support the conversion of that to an .

With the most recent versions  is no longer part of the H2 driver and we only register the converter when we encounter older versions of H2.

Closes #1114
See h2database/h2database#1359
@schauder schauder added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 17, 2022
schauder added a commit that referenced this issue Jan 17, 2022
With older versions H2 returned a proprietary  instance of `TimestampWithTimeZone` from `ResultSet.getObject()`.
We used to support the conversion of that to an `OffsetDateTime`.

With the most recent versions `TimestampWithTimeZone` is no longer part of the H2 driver, and we only register the converter when we encounter older versions of H2.

Closes #1114
See h2database/h2database#1359
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants