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

Regarding spring boot project java 17 upgrade #2320

Open
venkatesh9894 opened this issue Aug 26, 2023 · 0 comments
Open

Regarding spring boot project java 17 upgrade #2320

venkatesh9894 opened this issue Aug 26, 2023 · 0 comments

Comments

@venkatesh9894
Copy link

venkatesh9894 commented Aug 26, 2023

I have upgrade my spring boot project java version 8 to 17.And after upgraded, the project was not started.


APPLICATION FAILED TO START


Description:

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

org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:157)

The following method did not exist:

'void org.springframework.boot.builder.SpringApplicationBuilder.<init>(java.lang.Object[])'

The calling method's class, org.springframework.cloud.bootstrap.BootstrapApplicationListener, was loaded from the following location:

jar:file:/home/venkatesh/.m2/repository/org/springframework/cloud/spring-cloud-context/1.2.4.RELEASE/spring-cloud-context-1.2.4.RELEASE.jar!/org/springframework/cloud/bootstrap/BootstrapApplicationListener.class

The called method's class, org.springframework.boot.builder.SpringApplicationBuilder, is available from the following locations:

jar:file:/home/venkatesh/.m2/repository/org/springframework/boot/spring-boot/3.1.4-SNAPSHOT/spring-boot-3.1.4-SNAPSHOT.jar!/org/springframework/boot/builder/SpringApplicationBuilder.class

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

org.springframework.boot.builder.SpringApplicationBuilder: file:/home/venkatesh/.m2/repository/org/springframework/boot/spring-boot/3.1.4-SNAPSHOT/spring-boot-3.1.4-SNAPSHOT.jar

Action:

Correct the classpath of your application so that it contains compatible versions of the classes org.springframework.cloud.bootstrap.BootstrapApplicationListener and org.springframework.boot.builder.SpringApplicationBuilder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant