arrayIndexOutOfBoundsException ERROR in sonarqube for ide: IDEA 2025.1.1.1 (Community Edition)

Environment:

  • Java: Oracle OpenJDK 1.8.0_451
  • OS: windows11 X86
  • IDE: IntelliJ IDEA 2025.1.1.1 (Community Edition)
  • SonarQube for IDE: 10.23.0.81344

binded sonarqube server, it works on local, the report has appeared in sonar report tab, but the report do not open in chrome, and the more important, the report do not finded on the sonarqube server.

sonarlint plugin tool window log tab output:

[sonarlint-analysis-scheduler] ERROR sonarlint - Cannot access blame info for xxx(project_name)
java.lang.ArrayIndexOutOfBoundsException

maybe it’s a git version compatibility problem in sonar inner??? I don’t know, just guess

Hey there.

Thanks for the report. Can you share the verbose logs?

no more effective log,the ERROR log just one line, no stack log, coming up is the log of sonar works

[2025-05-22T09:08:25.404] [sonarlint-analysis-scheduler] ERROR sonarlint - Cannot access blame info for xxx(project_name)
java.lang.ArrayIndexOutOfBoundsException

 [2025-05-22T09:08:25.434] [sonarlint-analysis-scheduler] INFO sonarlint - Index files
 [2025-05-22T09:08:25.449] [Report about progress of file indexation] INFO sonarlint - 544 files indexed
 [2025-05-22T09:08:25.525] [sonarlint-analysis-scheduler] WARN sonarlint - No workDir in SonarLint
 [2025-05-22T09:08:25.525] [sonarlint-analysis-scheduler] INFO org.sonar.plugins.java.JavaSensor - Configured Java source version (sonar.java.source): 8, preview features enabled (sonar.java.enablePreview): false
 [2025-05-22T09:08:25.534] [sonarlint-analysis-scheduler] WARN org.sonar.java.classpath.ClasspathForMain - sonar.java.binaries is empty, please double check your configuration
 [2025-05-22T09:08:25.546] [sonarlint-analysis-scheduler] INFO org.sonar.java.JavaFrontend - Server-side caching is not enabled. The Java analyzer will not try to leverage data from a previous analysis.
 [2025-05-22T09:08:25.547] [Report about progress of Java AST analyzer] INFO org.sonarsource.analyzer.commons.ProgressReport - 421 source files to be analyzed
 [2025-05-22T09:08:25.646] [sonarlint-analysis-scheduler] INFO org.sonar.java.SonarComponents - The Java analyzer cannot skip unchanged files in this context. A full analysis is performed for all files.
 [2025-05-22T09:08:35.561] [Report about progress of Java AST analyzer] INFO org.sonarsource.analyzer.commons.ProgressReport - 237/421 files analyzed, current file: [uri=file:///C:/Users/xxx/IdeaProjects/xxx(project_name)/src/main/java/com/xxx/xxx/service/XxxService.java]
 [2025-05-22T09:08:42.826] [Report about progress of Java AST analyzer] INFO org.sonarsource.analyzer.commons.ProgressReport - 421/421 source files have been analyzed
 [2025-05-22T09:08:42.826] [sonarlint-analysis-scheduler] INFO org.sonar.java.model.VisitorsBridge - Did not optimize analysis for any files, performed a full analysis for all 421 files.
 [2025-05-22T09:08:42.83] [sonarlint-analysis-scheduler] WARN org.sonar.java.SonarComponents - Unresolved imports/types have been detected during analysis. Enable DEBUG mode to see them.
 [2025-05-22T09:08:42.83] [sonarlint-analysis-scheduler] WARN org.sonar.java.SonarComponents - Use of preview features have been detected during analysis. Enable DEBUG mode to see them.
 [2025-05-22T09:08:42.83] [Report about progress of Java AST analyzer] INFO org.sonarsource.analyzer.commons.ProgressReport - 1 source file to be analyzed
 [2025-05-22T09:08:42.871] [Report about progress of Java AST analyzer] INFO org.sonarsource.analyzer.commons.ProgressReport - 1/1 source file has been analyzed
 [2025-05-22T09:08:42.871] [sonarlint-analysis-scheduler] INFO org.sonar.java.model.VisitorsBridge - Did not optimize analysis for any files, performed a full analysis for all 1 files.
 [2025-05-22T09:08:42.871] [sonarlint-analysis-scheduler] WARN org.sonar.java.SonarComponents - Unresolved imports/types have been detected during analysis. Enable DEBUG mode to see them.
 [2025-05-22T09:08:42.871] [sonarlint-analysis-scheduler] WARN org.sonar.java.SonarComponents - Use of preview features have been detected during analysis. Enable DEBUG mode to see them.
 [2025-05-22T09:08:42.871] [sonarlint-analysis-scheduler] INFO org.sonar.java.JavaFrontend - No "Generated" source files to scan.
 [2025-05-22T09:08:42.874] [Progress of the CloudFormation analysis] INFO org.sonarsource.analyzer.commons.ProgressReport - 0 source files to be analyzed
 [2025-05-22T09:08:42.874] [Progress of the CloudFormation analysis] INFO org.sonarsource.analyzer.commons.ProgressReport - 0/0 source files have been analyzed
 [2025-05-22T09:08:42.951] [Progress of the kubernetes  parsing] INFO org.sonarsource.analyzer.commons.ProgressReport - 0 source files to be parsed
 [2025-05-22T09:08:42.951] [Progress of the kubernetes  parsing] INFO org.sonarsource.analyzer.commons.ProgressReport - 0/0 source files have been parsed
 [2025-05-22T09:08:42.951] [Progress of the kubernetes  analysis] INFO org.sonarsource.analyzer.commons.ProgressReport - 0 source files to be analyzed
 [2025-05-22T09:08:42.951] [Progress of the kubernetes  analysis] INFO org.sonarsource.analyzer.commons.ProgressReport - 0/0 source files have been analyzed
 [2025-05-22T09:08:42.951] [Progress of the kubernetes  analysis] INFO org.sonarsource.analyzer.commons.ProgressReport - 0 source files to be checked
 [2025-05-22T09:08:42.951] [Progress of the kubernetes  analysis] INFO org.sonarsource.analyzer.commons.ProgressReport - 0/0 source files have been checked
 [2025-05-22T09:08:42.951] [sonarlint-analysis-scheduler] INFO org.sonar.iac.kubernetes.plugin.SonarLintFileListener - Finished building Kubernetes Project Context
 [2025-05-22T09:08:42.954] [Progress of the Kubernetes  parsing] INFO org.sonarsource.analyzer.commons.ProgressReport - 0 source files to be parsed
 [2025-05-22T09:08:42.954] [Progress of the Kubernetes  parsing] INFO org.sonarsource.analyzer.commons.ProgressReport - 0/0 source files have been parsed
 [2025-05-22T09:08:42.954] [Progress of the Kubernetes  analysis] INFO org.sonarsource.analyzer.commons.ProgressReport - 0 source files to be analyzed
 [2025-05-22T09:08:42.954] [Progress of the Kubernetes  analysis] INFO org.sonarsource.analyzer.commons.ProgressReport - 0/0 source files have been analyzed
 [2025-05-22T09:08:42.954] [Progress of the Kubernetes  analysis] INFO org.sonarsource.analyzer.commons.ProgressReport - 0 source files to be checked
 [2025-05-22T09:08:42.954] [Progress of the Kubernetes  analysis] INFO org.sonarsource.analyzer.commons.ProgressReport - 0/0 source files have been checked
 [2025-05-22T09:08:42.955] [Progress of the AzureResourceManager analysis] INFO org.sonarsource.analyzer.commons.ProgressReport - 0 source files to be analyzed
 [2025-05-22T09:08:42.955] [Progress of the AzureResourceManager analysis] INFO org.sonarsource.analyzer.commons.ProgressReport - 0/0 source files have been analyzed
 [2025-05-22T09:08:42.96] [Progress of the Java analysis] INFO org.sonarsource.analyzer.commons.ProgressReport - 14 source files to be analyzed
 [2025-05-22T09:08:42.974] [Progress of the Java analysis] INFO org.sonarsource.analyzer.commons.ProgressReport - 14/14 source files have been analyzed
 [2025-05-22T09:08:42.977] [sonarlint-analysis-scheduler] INFO org.sonar.plugins.javascript.analysis.AbstractBridgeSensor - No input files found for analysis
 [2025-05-22T09:08:42.977] [sonarlint-analysis-scheduler] INFO org.sonar.plugins.javascript.analysis.cache.CacheReporter - Hit the cache for 0 out of 0
 [2025-05-22T09:08:42.977] [sonarlint-analysis-scheduler] INFO org.sonar.plugins.javascript.analysis.cache.CacheReporter - Miss the cache for 0 out of 0
 [2025-05-22T09:08:42.978] [sonarlint-analysis-scheduler] INFO org.sonar.plugins.javascript.analysis.CssRuleSensor - No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
 [2025-05-22T09:08:42.98] [Report about progress of XML Analyzer] INFO org.sonarsource.analyzer.commons.ProgressReport - 24 source files to be analyzed
 [2025-05-22T09:08:43.061] [Report about progress of XML Analyzer] INFO org.sonarsource.analyzer.commons.ProgressReport - 24/24 source files have been analyzed
 [2025-05-22T09:08:43.075] [Progress of the Docker analysis] INFO org.sonarsource.analyzer.commons.ProgressReport - 0 source files to be analyzed
 [2025-05-22T09:08:43.075] [Progress of the Docker analysis] INFO org.sonarsource.analyzer.commons.ProgressReport - 0/0 source files have been analyzed
 [2025-05-22T09:08:43.075] [sonarlint-analysis-scheduler] INFO org.sonar.plugins.common.TextAndSecretsSensor - Available processors: 20
 [2025-05-22T09:08:43.075] [sonarlint-analysis-scheduler] INFO org.sonar.plugins.common.TextAndSecretsSensor - Using 20 threads for analysis.
 [2025-05-22T09:08:43.085] [sonarlint-analysis-scheduler] INFO org.sonar.plugins.common.TextAndSecretsSensor - Analyzing all except non binary files
 [2025-05-22T09:08:43.153] [Progress of the text and secrets analysis] INFO org.sonar.plugins.common.MultiFileProgressReport - 544 source files to be analyzed
 [2025-05-22T09:08:43.225] [Progress of the text and secrets analysis] INFO org.sonar.plugins.common.MultiFileProgressReport - 544/544 source files have been analyzed
 [2025-05-22T09:08:43.227] [sonarlint-analysis-scheduler] INFO sonarlint - Analysis detected x issues and x Security Hotspots in 33065ms

I experience an [sonarlint-analysis-scheduler] ERROR sonarlint - Cannot access blame info for dokument-lager-service.testcaused by a java.lang.ArrayIndexOutOfBoundsException when generating a report in SonarCube IDE.

Please find environment and full stacktrace below.

Let me know if you need further details.

Environment

  • OS: Ubuntu 22.04.5 LTS
  • Java: OpenJDK Runtime Environment JBR-21.0.4+8-569.1-jcef (build 21.0.4+8-b569.1)
  • IDE: IntelliJ IDEA 2025.1 (Ultimate Edition)
  • Programming languages: Java, Groovy
  • SonarQube
    • SonarQube for IDE (IntelliJ): version 10.25.0.81504
    • Using connected mode: SonarQube Server, Enterprise Edition v2025.1.1 (104738)

Stacktrace

 [2025-06-12T10:43:01.317] [sonarlint-analysis-scheduler] ERROR sonarlint - Cannot access blame info for [redacted]-service.test
java.lang.ArrayIndexOutOfBoundsException: Index 367 out of bounds for length 367
	at org.sonarsource.sonarlint.core.commons.util.git.BlameParser.parseBlameOutput(BlameParser.java:63)
	at org.sonarsource.sonarlint.core.commons.util.git.NativeGitWrapper.lambda$blameFromNativeCommand$0(NativeGitWrapper.java:67)
	at java.base/java.util.Optional.ifPresent(Optional.java:178)
	at org.sonarsource.sonarlint.core.commons.util.git.NativeGitWrapper.lambda$blameFromNativeCommand$1(NativeGitWrapper.java:67)
	at java.base/java.util.Optional.ifPresent(Optional.java:178)
	at org.sonarsource.sonarlint.core.commons.util.git.NativeGitWrapper.blameFromNativeCommand(NativeGitWrapper.java:58)
	at org.sonarsource.sonarlint.core.commons.util.git.GitService.getBlameResult(GitService.java:235)
	at org.sonarsource.sonarlint.core.commons.util.git.GitService.getBlameResult(GitService.java:228)
	at org.sonarsource.sonarlint.core.tracking.TrackingService.getIntroductionDateProvider(TrackingService.java:288)
	at org.sonarsource.sonarlint.core.tracking.TrackingService.startMatchingSession(TrackingService.java:275)
	at org.sonarsource.sonarlint.core.tracking.TrackingService.onAnalysisStarted(TrackingService.java:110)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:382)
	at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:254)
	at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:173)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:185)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:171)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:156)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:454)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:400)
	at org.sonarsource.sonarlint.core.analysis.AnalysisService.analysisStarted(AnalysisService.java:736)
	at org.sonarsource.sonarlint.core.analysis.AnalysisService.lambda$scheduleAnalysis$29(AnalysisService.java:715)
	at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.doRunAnalysis(AnalyzeCommand.java:162)
	at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.doExecute(AnalyzeCommand.java:146)
	at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.execute(AnalyzeCommand.java:132)
	at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.lambda$execute$0(AnalyzeCommand.java:124)
	at org.sonarsource.sonarlint.core.commons.progress.TaskManager.runTask(TaskManager.java:36)
	at org.sonarsource.sonarlint.core.analysis.command.AnalyzeCommand.execute(AnalyzeCommand.java:123)
	at org.sonarsource.sonarlint.core.analysis.AnalysisScheduler.executeQueuedCommands(AnalysisScheduler.java:75)
	at java.base/java.lang.Thread.run(Thread.java:1583)