Skip to content

ClassNotFoundException on H2 v2.x #1141

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
alahaouas opened this issue Jan 25, 2022 · 3 comments
Closed

ClassNotFoundException on H2 v2.x #1141

alahaouas opened this issue Jan 25, 2022 · 3 comments

Comments

@alahaouas
Copy link

Hi,

I have the following ClassNotFoundException on unit tests ran with updated h2.
I upgraded to the latest version of spring-data-jdbc

Versions :
spring-data-jdbc version 2.3.1
and spring-boot-starter-parent version 2.6.3
and spring-jdbc version 5.3.15
and h2 version 2.1.210
and liquibase version 4.7.1

at org.springframework.data.convert.CustomConversions.collectPotentialConverterRegistrations(CustomConversions.java:202) ~[spring-data-commons-2.6.1.jar:2.6.1]
	at org.springframework.data.convert.CustomConversions.<init>(CustomConversions.java:114) ~[spring-data-commons-2.6.1.jar:2.6.1]
	at org.springframework.data.jdbc.core.convert.JdbcCustomConversions.<init>(JdbcCustomConversions.java:88) ~[spring-data-jdbc-2.3.1.jar:2.3.1]
	at org.springframework.data.jdbc.repository.config.AbstractJdbcConfiguration.jdbcCustomConversions(AbstractJdbcConfiguration.java:130) ~[spring-data-jdbc-2.3.1.jar:2.3.1]
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
	at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.3.15.jar:5.3.15]
	... 107 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.h2.api.TimestampWithTimeZone

Is there a plan to handle H2 v2.x ? A work-around ?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jan 25, 2022
@schauder
Copy link
Contributor

This is a duplicate of #1114.

The fix is/will be available with versions 3.0.0-M1, 2.4.0-M1, and 2.3.2

@schauder schauder added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged status: duplicate A duplicate of another issue labels Jan 26, 2022
@alahaouas
Copy link
Author

alahaouas commented Jan 26, 2022

@schauder Do you an idea when version 2.3.2 will be available ?

@schauder
Copy link
Contributor

Possibly in a month.

Not a promise.

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