Describe the bug
Sonarqube 10.3 crashes if plugin PYTHON 1.4.1 is installed (no problem if version 1.4.0)
Here are logs :
2024.01.10 13:38:59 INFO web[][o.s.s.r.r.RulesRegistrant] Register rules 2024.01.10 13:39:06 WARN web[][o.s.c.a.AnnotationConfigApplicationContext] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@75d0911a-org.sonar.server.rule.registration.RulesRegistrant': Initialization of bean failed; nested exception is java.lang.IllegalStateException: An incorrect state of deprecated rule keys has been detected.\n The deprecated rule key [gci-python:S34] was previously deprecated by [ecocode-python:EC34]. [ecocode-python:EC34] should be a deprecated key of [ecocode-python:EC35],\nThe deprecated rule key [gci-php:S34] was previously deprecated by [ecocode-php:EC34]. [ecocode-php:EC34] should be a deprecated key of [ecocode-php:EC35],2024.01.10 13:39:06 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@75d0911a-org.sonar.server.rule.registration.RulesRegistrant': Initialization of bean failed; nested exception is java.lang.IllegalStateException: An incorrect state of deprecated rule keys has been detected. The deprecated rule key [gci-python:S34] was previously deprecated by [ecocode-python:EC34]. [ecocode-python:EC34] should be a deprecated key of [ecocode-python:EC35], The deprecated rule key [gci-php:S34] was previously deprecated by [ecocode-php:EC34]. [ecocode-php:EC34] should be a deprecated key of [ecocode-php:EC35], at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:628) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:920) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:200) at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:80) at org.sonar.server.platform.platformlevel.PlatformLevelStartup.access$001(PlatformLevelStartup.java:58) at org.sonar.server.platform.platformlevel.PlatformLevelStartup$1.doPrivileged(PlatformLevelStartup.java:134) at org.sonar.server.user.DoPrivileged.execute(DoPrivileged.java:46) at org.sonar.server.platform.platformlevel.PlatformLevelStartup.start(PlatformLevelStartup.java:131) at org.sonar.server.platform.PlatformImpl.executeStartupTasks(PlatformImpl.java:201) at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.runIfNotAborted(PlatformImpl.java:362) at org.sonar.server.platform.PlatformImpl$1.doRun(PlatformImpl.java:116) at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.run(PlatformImpl.java:346) at java.base/java.lang.Thread.run(Unknown Source) Caused by: java.lang.IllegalStateException: An incorrect state of deprecated rule keys has been detected. The deprecated rule key [gci-python:S34] was previously deprecated by [ecocode-python:EC34]. [ecocode-python:EC34] should be a deprecated key of [ecocode-python:EC35], The deprecated rule key [gci-php:S34] was previously deprecated by [ecocode-php:EC34]. [ecocode-php:EC34] should be a deprecated key of [ecocode-php:EC35], at com.google.common.base.Preconditions.checkState(Preconditions.java:601) at org.sonar.server.rule.registration.RulesKeyVerifier.verifyRuleKeyConsistency(RulesKeyVerifier.java:70) at org.sonar.server.rule.registration.RulesRegistrant.start(RulesRegistrant.java:110) at org.sonar.core.platform.StartableBeanPostProcessor.postProcessBeforeInitialization(StartableBeanPostProcessor.java:33) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:440) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) ... 19 common frames omitted 2024.01.10 13:39:06 INFO web[][o.s.p.ProcessEntryPoint] Hard stopping process 2024.01.10 13:39:06 INFO web[][o.s.s.n.NotificationDaemon] Notification service stopped 2024.01.10 13:39:06 INFO web[][c.z.h.HikariDataSource] HikariPool-1 - Shutdown initiated... 2024.01.10 13:39:06 INFO web[][c.z.h.HikariDataSource] HikariPool-1 - Shutdown completed. 2024.01.10 13:39:06 INFO app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped 2024.01.10 13:39:06 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143 2024.01.10 13:39:06 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped 2024.01.10 13:39:06 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
Software Versions
SonarQube Version: 10.3
Plugin Version: ecoCode-python 1.4.1
Additional context
No problem with ecoCode-python 1.4.0
Describe the bug Sonarqube 10.3 crashes if plugin PYTHON 1.4.1 is installed (no problem if version 1.4.0) Here are logs :
2024.01.10 13:38:59 INFO web[][o.s.s.r.r.RulesRegistrant] Register rules 2024.01.10 13:39:06 WARN web[][o.s.c.a.AnnotationConfigApplicationContext] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@75d0911a-org.sonar.server.rule.registration.RulesRegistrant': Initialization of bean failed; nested exception is java.lang.IllegalStateException: An incorrect state of deprecated rule keys has been detected.\n The deprecated rule key [gci-python:S34] was previously deprecated by [ecocode-python:EC34]. [ecocode-python:EC34] should be a deprecated key of [ecocode-python:EC35],\nThe deprecated rule key [gci-php:S34] was previously deprecated by [ecocode-php:EC34]. [ecocode-php:EC34] should be a deprecated key of [ecocode-php:EC35],2024.01.10 13:39:06 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@75d0911a-org.sonar.server.rule.registration.RulesRegistrant': Initialization of bean failed; nested exception is java.lang.IllegalStateException: An incorrect state of deprecated rule keys has been detected. The deprecated rule key [gci-python:S34] was previously deprecated by [ecocode-python:EC34]. [ecocode-python:EC34] should be a deprecated key of [ecocode-python:EC35], The deprecated rule key [gci-php:S34] was previously deprecated by [ecocode-php:EC34]. [ecocode-php:EC34] should be a deprecated key of [ecocode-php:EC35], at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:628) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:920) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:200) at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:80) at org.sonar.server.platform.platformlevel.PlatformLevelStartup.access$001(PlatformLevelStartup.java:58) at org.sonar.server.platform.platformlevel.PlatformLevelStartup$1.doPrivileged(PlatformLevelStartup.java:134) at org.sonar.server.user.DoPrivileged.execute(DoPrivileged.java:46) at org.sonar.server.platform.platformlevel.PlatformLevelStartup.start(PlatformLevelStartup.java:131) at org.sonar.server.platform.PlatformImpl.executeStartupTasks(PlatformImpl.java:201) at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.runIfNotAborted(PlatformImpl.java:362) at org.sonar.server.platform.PlatformImpl$1.doRun(PlatformImpl.java:116) at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.run(PlatformImpl.java:346) at java.base/java.lang.Thread.run(Unknown Source) Caused by: java.lang.IllegalStateException: An incorrect state of deprecated rule keys has been detected. The deprecated rule key [gci-python:S34] was previously deprecated by [ecocode-python:EC34]. [ecocode-python:EC34] should be a deprecated key of [ecocode-python:EC35], The deprecated rule key [gci-php:S34] was previously deprecated by [ecocode-php:EC34]. [ecocode-php:EC34] should be a deprecated key of [ecocode-php:EC35], at com.google.common.base.Preconditions.checkState(Preconditions.java:601) at org.sonar.server.rule.registration.RulesKeyVerifier.verifyRuleKeyConsistency(RulesKeyVerifier.java:70) at org.sonar.server.rule.registration.RulesRegistrant.start(RulesRegistrant.java:110) at org.sonar.core.platform.StartableBeanPostProcessor.postProcessBeforeInitialization(StartableBeanPostProcessor.java:33) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:440) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) ... 19 common frames omitted 2024.01.10 13:39:06 INFO web[][o.s.p.ProcessEntryPoint] Hard stopping process 2024.01.10 13:39:06 INFO web[][o.s.s.n.NotificationDaemon] Notification service stopped 2024.01.10 13:39:06 INFO web[][c.z.h.HikariDataSource] HikariPool-1 - Shutdown initiated... 2024.01.10 13:39:06 INFO web[][c.z.h.HikariDataSource] HikariPool-1 - Shutdown completed. 2024.01.10 13:39:06 INFO app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped 2024.01.10 13:39:06 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 143 2024.01.10 13:39:06 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped 2024.01.10 13:39:06 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
Software Versions
Additional context No problem with ecoCode-python 1.4.0