Error in SonarLint for IntelliJ SonarLint: 7.2.1.58118

Environment:

  • Java: JetBrains s.r.o. 17.0.5
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2022.2.4
  • SonarLint: 7.2.1.58118

Application run failed

java.lang.NoClassDefFoundError: groovy/lang/GroovyObject
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
	at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
	at java.base/java.net.URLClassLoader.defineClass(URLClassLoader.java:524)
	at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:427)
	at java.base/java.net.URLClassLoader$1.run(URLClassLoader.java:421)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:712)
	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:420)
	at org.sonar.classloader.ClassRealm.loadClassFromSelf(ClassRealm.java:125)
	at org.sonar.classloader.ParentFirstStrategy.loadClass(ParentFirstStrategy.java:37)
	at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:87)
	at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:76)
	at org.springframework.boot.BeanDefinitionLoader.<init>(BeanDefinitionLoader.java:90)
	at org.springframework.boot.SpringApplication.createBeanDefinitionLoader(SpringApplication.java:746)
	at org.springframework.boot.SpringApplication.load(SpringApplication.java:689)
	at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:426)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:337)
	at com.github._1c_syntax.bsl.languageserver.BSLLSBinding.createContext(BSLLSBinding.java:91)

Hi,

The error is caused by a third party plugin that you may have installed on your SonarQube instance:

I have already submitted a patch to them, so you might want to update this BSL plugin on your SonarQube server.