Error in SonarQube for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 21.0.6
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2025.1.1.1
  • SonarQube for IDE: 10.23.0.81344
java.lang.LinkageError: loader constraint violation: loader c.ij.ide.plugins.cl.PluginClassLoader @1242fab wants to load class c.ij.util.lang.JavaVersion. A different class with the same name was previously loaded by c.ij.util.lang.PathClassLoader @31befd9f. (c.ij.util.lang.JavaVersion is in unnamed module of loader c.ij.util.lang.PathClassLoader @31befd9f)
	at o.sl.ij.java.JavaAnalysisConfigurator.getLanguageLevelOption(JavaAnalysisConfigurator.java:118)
	at o.sl.ij.java.JavaAnalysisConfigurator.configureJavaSourceTarget(JavaAnalysisConfigurator.java:106)
	at o.sl.ij.java.JavaAnalysisConfigurator.configure(JavaAnalysisConfigurator.java:82)
	at o.sl.ij.analysis.SonarLintAnalyzer.lambda$getConfigurationFromConfiguratorEP$0(SonarLintAnalyzer.java:137)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:722)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575)
	at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616)
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622)
	at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627)
	at o.sl.ij.analysis.SonarLintAnalyzer.getConfigurationFromConfiguratorEP(SonarLintAnalyzer.java:139)
	at o.sl.ij.analysis.SonarLintAnalyzer.analyzeModule(SonarLintAnalyzer.java:65)
	at o.sl.ij.analysis.Analysis.analyzePerModule(Analysis.java:193)
	at o.sl.ij.analysis.Analysis.doRun(Analysis.java:131)
	at o.sl.ij.analysis.Analysis.run(Analysis.java:70)
	at o.sl.ij.tasks.TaskRunnerKt$runModalTaskWithResult$task$1.compute(TaskRunner.kt:31)
	at c.ij.oa.progress.Task$WithResult.run(Task.java:380)
	at c.ij.oa.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:497)
	at c.ij.oa.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:118)
	at c.ij.oa.progress.impl.CoreProgressManager.lambda$runProcessWithProgressSynchronously$10(CoreProgressManager.java:587)
	at c.ij.oa.progress.impl.ProgressRunner.lambda$new$0(ProgressRunner.java:88)
	at c.ij.oa.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:252)
	at c.ij.oa.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:98)
	at c.ij.oa.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:229)
	at c.ij.platform.diagnostic.telemetry.helpers.TraceKt.use(trace.kt:43)
	at c.ij.oa.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:228)
	at c.ij.oa.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$14(CoreProgressManager.java:680)
	at c.ij.oa.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:755)
	at c.ij.oa.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:711)
	at c.ij.oa.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:679)

Hi,

Welcome to the community and thanks for this report!

Can you share what you were doing when you got this error?

 
Thx,
Ann

Hi,

Thanks for looking into this.
What I did:

  1. Started Intellij
  2. Opened a project
  3. Saw the error at the bottom right corner where the notifications are:

I have SonarQube configured to do the checks on commit, which also doesn’t work (I guess because the plugin fails to load).

1 Like

Hi,

Thanks for that detail! I’ve flagged this for the team.

 
Ann

Hey @Aleksandr_F, could you please share all the non-bundled plugins you use in your IDE?

You can do that by going to Menu -> Help -> About, click the Copy and Close button and share the result here.

Thank you!

IntelliJ IDEA 2025.1.1.1 (Ultimate Edition)
Build #IU-251.25410.129, built on May 9, 2025
Source revision: b815cfdcaa594
Licensed to Aleksandr F*
Subscription is active until June 5, 2025.
Runtime version: 21.0.6+9-b895.109 aarch64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 15.4.1
Kotlin plugin: K2 mode
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 2048M
Cores: 12
Metal Rendering is ON
Registry:
ide.browser.jcef.gpu.disable=true
ide.experimental.ui=true
completion.cloud.enableTextCompletion=false
Non-Bundled Plugins:
com.jetbrains.space (251.23774.318)
org.jetbrains.plugins.go-template (251.23774.318)
com.jetbrains.kmm (0.9-251.25410-IJ-147)
dev.meanmail.plugin.nginx-intellij-plugin (2025.8)
org.jetbrains.amper (251.25410.28)
com.intellij.ml.llm (251.23774.42.28.7)
com.intellij.nativeDebug (251.25410.109)
org.jetbrains.plugins.gitlab (251.25410.159-IU)
org.jetbrains.plugins.github (251.25410.159-IU)
org.jetbrains.junie (251.105.47)
org.jetbrains.android (251.25410.131)
com.android.tools.design (251.25410.109)
androidx.compose.plugins.idea (251.23774.318)
io.k6.ide.plugin (1.3.0)
com.haulmont.rcb (251.25410.28)
com.jetbrains.writerside (2025.04.8412)
org.sonarlint.idea (10.23.0.81344)
com.intellij.wiremock (251.23774.435)
Kotlin: 251.25410.129-IJ

The error message indicates a classloading conflict: the SonarQube for IDE plugin is trying to access com.intellij.util.lang.JavaVersion, but this class has been loaded twice within your IDE’s environment (classloader).

When this happens in a class related to SonarQube for IDE, the cause often points to another plugin providing an identical class, usually because of a forked version of our extension.

In your case, I’m not exactly sure how this happens. I see that kotlin recently added JavaVersion with the same package to their extension, so it might conflict with IntelliJ IDEA. However, I don’t reproduce the issue on my side with the same version as you.

I suggest you disable your non-bundled plugins and see if the issue happens again. Then you could re-enable them one by one until you find the plugin that is causing the issue.

Thanks!

1 Like

The issue was caused by https://plugins.jetbrains.com/plugin/14936-kotlin-multiplatform

1 Like

Thanks for checking, I’m glad the issue is fixed.

If you enjoy SonarQube for IDE, feel free to leave a review on our marketplace page, this is always appreciated!