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

TransactionManagerCustomizers.customize( not found #3444

Open
gombasp opened this issue Jan 13, 2025 · 1 comment
Open

TransactionManagerCustomizers.customize( not found #3444

gombasp opened this issue Jan 13, 2025 · 1 comment
Labels

Comments

@gombasp
Copy link

gombasp commented Jan 13, 2025

Hello,

we tried to upgrade a project from Spring Boot 3.2.5 to Spring Boot 3.4.1. The project uses Google Spanner. Further dependencies:

<spring-cloud.version>2024.0.0</spring-cloud.version>
<spring-cloud-gcp.version>5.8.0</spring-cloud-gcp.version>

Issue we see:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

com.google.cloud.spring.autoconfigure.spanner.SpannerTransactionManagerAutoConfiguration$DatabaseClientTransactionManagerConfiguration.spannerTransactionManager(SpannerTransactionManagerAutoConfiguration.java:68)

"The following method did not exist:

'void org.springframework.boot.autoconfigure.transaction.TransactionManagerCustomizers.customize(org.springframework.transaction.PlatformTransactionManager)'

The calling method's class, com.google.cloud.spring.autoconfigure.spanner.SpannerTransactionManagerAutoConfiguration$DatabaseClientTransactionManagerConfiguration, was loaded from the following location:

jar:file:/C:/Users/xxx/.m2/repository/com/google/cloud/spring-cloud-gcp-autoconfigure/5.8.0/spring-cloud-gcp-autoconfigure-5.8.0.jar!/com/google/cloud/spring/autoconfigure/spanner/SpannerTransactionManagerAutoConfiguration$DatabaseClientTransactionManagerConfiguration.class

The called method's class, org.springframework.boot.autoconfigure.transaction.TransactionManagerCustomizers, is available from the following locations:

jar:file:/C:/Users/xxx/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.4.1/spring-boot-autoconfigure-3.4.1.jar!/org/springframework/boot/autoconfigure/transaction/TransactionManagerCustomizers.class

The called method's class hierarchy was loaded from the following locations:

org.springframework.boot.autoconfigure.transaction.TransactionManagerCustomizers: file:/C:/Users/xxx/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.4.1/spring-boot-autoconfigure-3.4.1.jar

Action:

Correct the classpath of your application so that it contains compatible versions of the classes com.google.cloud.spring.autoconfigure.spanner.SpannerTransactionManagerAutoConfiguration$DatabaseClientTransactionManagerConfiguration and org.springframework.boot.autoconfigure.transaction.TransactionManagerCustomizers"

A short search shows others faced a similar issue:

snowdrop/narayana-spring-boot#172

Can you please advise?

Thx, Peter

@diegomarquezp
Copy link
Contributor

Hi @gombasp, thanks for reporting this.

We've been working on a new major version of Spring Cloud GCP that is compatible with Spring Cloud 2024 + Spring Boot 3.4 and will be released soon after the release of Spring Boot 3.4.2, which is targeted for Jan 23rd.

I would recommend to wait for this release and get back to us in case it persists.

@diegomarquezp diegomarquezp added type: question Further information is requested priority: p2 spanner labels Jan 15, 2025
@mpeddada1 mpeddada1 added type: enhancement New feature or request and removed type: question Further information is requested labels Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants