You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Failed to load ApplicationContext for MergedContextConfiguration #1530
I'm running tests on a simple Maven/Spring project.
If I run the tests with maven, they are Ok.
If I click on the individual tests, they are Ok.
But, if I click on Run Tests, a test fails with the error: java.lang.IllegalStateException: Failed to load ApplicationContext for MergedContextConfiguration ...
What is the difference? Can anything be configured to solve the Run Tests case?
changed the title [-]java.lang.IllegalStateException: Failed to load ApplicationContext for MergedContextConfiguration[/-][+]Failed to load ApplicationContext for MergedContextConfiguration[/+]on Feb 15, 2023
Looking into the exception details, there are other reported causes:
...
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springApplicationAdminRegistrar' defined in class path resource [org/springframework/boot/autoconfigure/admin/SpringApplicationAdminJmxAutoConfiguration.class]: org.springframework.boot:type=Admin,name=SpringApplication
....
Caused by: javax.management.InstanceAlreadyExistsException: org.springframework.boot:type=Admin,name=SpringApplication
...
This previous issue and workaround solved the issue: #1420 (comment)
Hi Kevin Anidjar (@kanidjar), Is it possible to provide a sample project? I hope to check if there is any regression happens at the spring boot extension.
Activity
[-]java.lang.IllegalStateException: Failed to load ApplicationContext for MergedContextConfiguration[/-][+]Failed to load ApplicationContext for MergedContextConfiguration[/+]jdneo commentedon Feb 16, 2023
Could you share a sample project?
anibalsanchez commentedon Feb 16, 2023
Sure, pls, give me a day to clean it up a little bit.
anibalsanchez commentedon Feb 17, 2023
Looking into the exception details, there are other reported causes:
This previous issue and workaround solved the issue: #1420 (comment)
Case closed.
Best Regards
jdneo commentedon Feb 20, 2023
Anibal Sanchez (@anibalsanchez) This surprises me if the issue is caused by Spring Boot Tools extension, cuz the issue should be fixed several months ago: #1435 (comment)
What's the version of your extension?
anibalsanchez commentedon Feb 20, 2023
I'm using the latest versions available. JDK17
jdneo commentedon Feb 21, 2023
Is it possible to provide a sample project? Thanks.
kanidjar commentedon Mar 9, 2023
hi Sheng Chen (@jdneo), having the same issue as Anibal Sanchez (@anibalsanchez).
fixed the issue on my side.
jdneo commentedon Mar 10, 2023
Hi Kevin Anidjar (@kanidjar), Is it possible to provide a sample project? I hope to check if there is any regression happens at the spring boot extension.