Getting error during restart of SQ after custom plugin deployment

Hi Community,

Getting below error after deployment of custom plugin.

java.lang.IllegalStateException: org.springframework.context.annotation.AnnotationConfigApplicationContext@4dd95ab1 has been closed already
        at org.springframework.context.support.AbstractApplicationContext.assertBeanFactoryActive(AbstractApplicationContext.java:1256)
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1289)
        at org.sonar.core.platform.SpringComponentContainer.getOptionalComponentByType(SpringComponentContainer.java:180)
        at org.sonar.server.platform.platformlevel.PlatformLevel.getOptional(PlatformLevel.java:97)
        at org.sonar.server.platform.platformlevel.PlatformLevel.lambda$getWebServer$0(PlatformLevel.java:149)
        at java.base/java.util.Optional.flatMap(Optional.java:289)
        at org.sonar.server.platform.platformlevel.PlatformLevel.getWebServer(PlatformLevel.java:149)
        at org.sonar.server.platform.platformlevel.PlatformLevel.addIfStartupLeader(PlatformLevel.java:115)
        at org.sonar.server.platform.platformlevel.PlatformLevel4.configureLevel(PlatformLevel4.java:328)
        at org.sonar.server.platform.platformlevel.PlatformLevel.configure(PlatformLevel.java:70)
        at org.sonar.server.platform.PlatformImpl.start(PlatformImpl.java:214)
        at org.sonar.server.platform.PlatformImpl.startLevel34Containers(PlatformImpl.java:197)
        at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.runIfNotAborted(PlatformImpl.java:365)
        at org.sonar.server.platform.PlatformImpl$1.doRun(PlatformImpl.java:116)
        at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.run(PlatformImpl.java:349)
        at java.base/java.lang.Thread.run(Thread.java:1583)

Could you please help on this.

Thank you very much!

Hi,

This small part of the stack trace seems irrelevant. Please post the complete stack trace and some lines of log before the error.

1 Like

Hi Scott,

Thanks for the help.
Attaching web.log, logs are in trace mode.
web.log (110.3 KB)

The same was working fine with SQ 9.x , Facing issues in latest SQ 25.2.x

Hi,

A number of APIs changed during the 10-series. Did you update your plugin?

 
HTH,
Ann

Hi Ann,

Yes, i have updated the plugin.
I am able to start the server with custom plugin but i try to login with sso, its not working, coming back to same login page.

I guess redirect is not working. Is there any change in OAuth2IdentityProvider ?

Hi,

That’s a new question, and we try to keep it to one topic per thread. Otherwise it can get messy, fast.

However this is a quick answer: check the release notes.

If you have further questions on the topic, please create a new thread.

 
Ann

Hi,

Thanks Ann!

I will create new thread.

1 Like