How to debug this "Unsupported type of symbolic value" error, job became 3 times slower

Hello, could you please help me understand how to debug this issue? The job became waaay slower at a certain point, and the changes made just before this error started appearing are not related to the method and class returned by the error stacktrace in the job logs :thinking:
Note: The method and class names were modified for this topic submission but are reflective of an actual method in our repository.

  • ALM used: GitHub
  • CI system used: Circle CI
  • Scanner command used when applicable:
./mvnw -Dsonar.organization="${CIRCLE_PROJECT_USERNAME}" -Dsonar.projectKey="${CIRCLE_PROJECT_USERNAME}_${CIRCLE_PROJECT_REPONAME}" -Dsonar.host.url=https://sonarcloud.io -Dsonar.coverage.jacoco.xmlReportPaths=${SONAR_REPORT_PATHS} sonar:sonar
  • Languages of the repository: Java 11
  • Error observed:
01:02:57 [INFO] Analyzing 30794 functions to detect bugs.
01:03:25 [ERROR] Failed to analyze my.company.DummyJavaClass01#update(Ldomain/dummy/Class02;Ljava/util/Set;)V due to an exception; skipping.
java.lang.IllegalArgumentException: Unsupported type of symbolic value: com.sonarsource.A.A.A.I@716d324b
        at com.sonarsource.A.A.D.D.B(na:2795)
        at com.sonarsource.A.A.D.D.B(na:947)
        at com.sonarsource.A.A.D.D.A(na:2515)
        at com.sonarsource.A.A.D.D.G(na:2689)
        at com.sonarsource.A.A.D.D.A(na:1372)
        at com.sonarsource.A.A.Z.A(na:440)
        at com.sonarsource.A.A.Z.A(na:394)
        at com.sonarsource.A.A.Z.A(na:2180)
        at com.sonarsource.A.F.executeChecksOnFunction(na:2917)
        at com.sonarsource.A.F.executeChecks(na:2409)
        at com.sonarsource.A.F.executeSensor(na:1978)
        at com.sonarsource.A.F.execute(na:1202)
        at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:62)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:75)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:51)
        at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:64)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
        at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:180)
        at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:176)
        at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:147)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
        at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:399)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
        at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:127)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
        at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:57)
        at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:51)
        at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
        at com.sun.proxy.$Proxy37.execute(Unknown Source)
        at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
        at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
        at org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute(ScannerBootstrapper.java:64)
        at org.sonarsource.scanner.maven.SonarQubeMojo.execute(SonarQubeMojo.java:108)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:126)
        at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2(MojoExecutor.java:342)
        at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute(MojoExecutor.java:330)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:175)
        at org.apache.maven.lifecycle.internal.MojoExecutor.access$000(MojoExecutor.java:76)
        at org.apache.maven.lifecycle.internal.MojoExecutor$1.run(MojoExecutor.java:163)
        at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute(DefaultMojosExecutionStrategy.java:39)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:160)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:105)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:73)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:53)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:118)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:261)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:173)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:101)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:827)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:272)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:195)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.apache.maven.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:52)
        at org.apache.maven.wrapper.WrapperExecutor.execute(WrapperExecutor.java:161)
        at org.apache.maven.wrapper.MavenWrapperMain.main(MavenWrapperMain.java:73)
  • Steps to reproduce: Not applicable, the scanner command is launched on our CircleCI pipeline
  • Potential workaround: Extend the timeout duration. However, please note that this doesn’t resolve the error; it simply enables the job to complete without prematurely exiting due to extended waiting times.
1 Like

Could it be related to this release? Release 7.30.0.34429 · SonarSource/sonar-java · GitHub

@ganncamp @ilia @Colin @thomas.serre Hi :slight_smile: :wave: Just wanted to check in and see if my question makes sense. Any thoughts on how I can make it clearer or if there’s anything missing? Appreciate your input! :blush:

Hello everyone, could you please at least tell me if there is a way to understand which check is taking so much time?

Hey folks, any chance you could help me figure out which check is slowing down my CircleCI job? I’m getting this error, and it coincides with the job taking way longer than usual (from 5 minutes to over 15 minutes). It’s messing with our delivery speed, so any assistance would be awesome. Let me know if there’s any other info I can provide to help narrow down the issue.

Thank you in advance!

  • ALM used: GitHub
  • CI system used: Circle CI
  • Scanner command used when applicable:
./mvnw -Dsonar.organization="${CIRCLE_PROJECT_USERNAME}" -Dsonar.projectKey="${CIRCLE_PROJECT_USERNAME}_${CIRCLE_PROJECT_REPONAME}" -Dsonar.host.url=https://sonarcloud.io -Dsonar.coverage.jacoco.xmlReportPaths=${SONAR_REPORT_PATHS} sonar:sonar
  • Languages of the repository: Java 11
  • Error observed:
01:02:57 [INFO] Analyzing 30794 functions to detect bugs.
01:03:25 [ERROR] Failed to analyze my.company.DummyJavaClass01#update(Ldomain/dummy/Class02;Ljava/util/Set;)V due to an exception; skipping.
java.lang.IllegalArgumentException: Unsupported type of symbolic value: com.sonarsource.A.A.A.I@716d324b
        at com.sonarsource.A.A.D.D.B(na:2795)
        at com.sonarsource.A.A.D.D.B(na:947)
        at com.sonarsource.A.A.D.D.A(na:2515)
        at com.sonarsource.A.A.D.D.G(na:2689)
        at com.sonarsource.A.A.D.D.A(na:1372)
        at com.sonarsource.A.A.Z.A(na:440)
        at com.sonarsource.A.A.Z.A(na:394)
        at com.sonarsource.A.A.Z.A(na:2180)
        at com.sonarsource.A.F.executeChecksOnFunction(na:2917)
        at com.sonarsource.A.F.executeChecks(na:2409)
        at com.sonarsource.A.F.executeSensor(na:1978)
        at com.sonarsource.A.F.execute(na:1202)
        at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:62)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:75)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:51)
        at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:64)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
        at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:180)
        at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:176)
        at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:147)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
        at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:399)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
        at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:127)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
        at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:57)
        at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:51)
        at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
        at com.sun.proxy.$Proxy37.execute(Unknown Source)
        at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
        at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
        at org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute(ScannerBootstrapper.java:64)
        at org.sonarsource.scanner.maven.SonarQubeMojo.execute(SonarQubeMojo.java:108)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:126)
        at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2(MojoExecutor.java:342)
        at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute(MojoExecutor.java:330)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:175)
        at org.apache.maven.lifecycle.internal.MojoExecutor.access$000(MojoExecutor.java:76)
        at org.apache.maven.lifecycle.internal.MojoExecutor$1.run(MojoExecutor.java:163)
        at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute(DefaultMojosExecutionStrategy.java:39)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:160)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:105)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:73)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:53)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:118)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:261)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:173)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:101)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:827)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:272)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:195)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.apache.maven.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:52)
        at org.apache.maven.wrapper.WrapperExecutor.execute(WrapperExecutor.java:161)
        at org.apache.maven.wrapper.MavenWrapperMain.main(MavenWrapperMain.java:73)
  • Steps to reproduce: Not applicable, the scanner command is launched on our CircleCI pipeline
  • Potential workaround: Extend the timeout duration. However, please note that this doesn’t resolve the error; it simply enables the job to complete without prematurely exiting due to extended waiting times.

Hey @M_Delli_Rocioli_LS ,

Thanks for reporting your issue here. Looking at your error, it seems that the issue is similar to the one in this post (even though it is on SonarCloud instead of SonarQube). I have posted steps you can take to mitigate and help us resolve the issue. Please continue the conversation there.

Cheers

On second thought, because your issue appears on SonarCloud you might not be able to follow those steps. I will see what can be done for SonarCloud users and come back to you.

1 Like

Thank you for the quick response :slight_smile:

Hey @M_Delli_Rocioli_LS,

I checked: even on SonarCloud, you should be able to follow these steps to mitigate and help us resolve the issue. I will open a private conversation so you can share the files with me if you want.

Conclusion (for those who might find this thread in the future).

  1. About the exception
    We have identified a bug and will update this thread when it is fixed. In the meantime, you should know that its impact on the analysis is fairly minimal.

  2. About the long analysis time
    We have found and fixed the problem. Analysis time should be improved on SonarCloud and SonarQube >10.4. Please open a new thread if you are still experiencing performance issues.

2 Likes