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

!!! SonarQube crashes during starting !!! #17

Closed
dedece35 opened this issue Jan 10, 2024 · 0 comments · Fixed by #18
Closed

!!! SonarQube crashes during starting !!! #17

dedece35 opened this issue Jan 10, 2024 · 0 comments · Fixed by #18
Labels
🔰 good first issue Good for newcomers 💉 bug Something isn't working

Comments

@dedece35
Copy link
Member

dedece35 commented Jan 10, 2024

Describe the bug
Sonarqube 10.3 crashes if plugin PHP 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-php 1.4.1

Additional context
No problem with ecoCode-php 1.4.0

@dedece35 dedece35 added 🔰 good first issue Good for newcomers 💉 bug Something isn't working labels Jan 10, 2024
@dedece35 dedece35 changed the title !!! SonarQube crash during starting !!! !!! SonarQube crashes during starting !!! Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔰 good first issue Good for newcomers 💉 bug Something isn't working
Projects
None yet
1 participant