IllegalArgumentException: 402 is not a valid line for pointer

Template for a good bug report, formatted with Markdown:

  • versions used (SonarQube, Scanner, Plugin, and any relevant extension)
  • error observed (wrap logs/code around triple quote ``` for proper formatting)
  • steps to reproduce
  • potential workaround

P.S.: use the #bug:fault sub-category if you’re hitting a specific crash/error , or the #bug:fp sub-category for rules-related behaviour

SonarQube server 8.9.6

SonarScanner 4.6.2.2472

Windows 10

Cfamily

Hi, we are intermittently getting “IllegalArgumentException: 402 is not a valid line for pointer” when we run sonar-scanner.bat. We have sonar cache enabled and it seems to complain about a file in the cache folder. When we re-run the build the error goes away. Any ideas what could be happening?

[2022-03-18T19:22:09.359Z]      [exec] C:\packages\SonarScanner\4.6.2.2472\bin\sonar-scanner.bat  
[2022-03-18T19:22:09.359Z] Picked up JAVA_TOOL_OPTIONS: -Dlog4j.formatMsgNoLookups=true
[2022-03-18T19:22:09.359Z] INFO: Scanner configuration file: C:\packages\SonarScanner\4.6.2.2472\bin\..\conf\sonar-scanner.properties
[2022-03-18T19:22:09.359Z] INFO: Project root configuration file: C:\jenkins\workspace\dev\sonar-analysis\sonar-project.properties
[2022-03-18T19:22:09.359Z] INFO: SonarScanner 4.6.2.2472
[2022-03-18T19:22:09.359Z] INFO: Java 11.0.11 AdoptOpenJDK (64-bit)
[2022-03-18T19:22:09.359Z] INFO: Windows 10 10.0 amd64
[2022-03-18T19:22:09.359Z] INFO: SONAR_SCANNER_OPTS=-Xmx2048m -XX:ReservedCodeCacheSize=512m
[2022-03-18T19:22:09.359Z] INFO: User cache: C:\Users\originautomation\.sonar\cache
[2022-03-18T19:22:09.359Z] INFO: Scanner configuration file: C:\packages\SonarScanner\4.6.2.2472\bin\..\conf\sonar-scanner.properties
[2022-03-18T19:22:09.359Z] INFO: Project root configuration file: C:\jenkins\workspace\dev\sonar-analysis\sonar-project.properties
[2022-03-18T19:22:09.359Z] INFO: Analyzing on SonarQube server 8.9.6
[2022-03-18T19:22:09.359Z] INFO: Default locale: "en_US", source code encoding: "UTF-8"
[2022-03-18T19:22:09.359Z] INFO: Load global settings
[2022-03-18T19:22:09.359Z] INFO: Load global settings (done) | time=157ms
[2022-03-18T19:22:09.359Z] INFO: Server id: 7B8A090E-13ace4bcb709950
[2022-03-18T19:22:09.359Z] INFO: User cache: C:\Users\originautomation\.sonar\cache
[2022-03-18T19:22:09.359Z] INFO: Load/download plugins
[2022-03-18T19:22:09.359Z] INFO: Load plugins index
[2022-03-18T19:22:09.359Z] INFO: Load plugins index (done) | time=51ms
[2022-03-18T19:22:09.359Z] INFO: Load/download plugins (done) | time=214ms
[2022-03-18T19:22:09.617Z] INFO: Loaded core extensions: developer-scanner
[2022-03-18T19:22:09.875Z] INFO: JavaScript/TypeScript frontend is enabled
[2022-03-18T19:22:10.132Z] INFO: Process project properties
[2022-03-18T19:22:10.132Z] INFO: Process project properties (done) | time=9ms
[2022-03-18T19:22:10.132Z] INFO: Execute project builders
[2022-03-18T19:22:10.132Z] INFO: Execute project builders (done) | time=1ms
[2022-03-18T19:22:10.132Z] INFO: Project key: juno-desktop-client.cpp
[2022-03-18T19:22:10.132Z] INFO: Base dir: C:\jenkins\workspace\dev\sonar-analysis
[2022-03-18T19:22:10.132Z] INFO: Working dir: C:\jenkins\workspace\dev\sonar-analysis\.scannerwork
[2022-03-18T19:22:10.132Z] INFO: Load project settings for component key: 'juno-desktop-client.cpp'
[2022-03-18T19:22:10.389Z] INFO: Load project settings for component key: 'juno-desktop-client.cpp' (done) | time=24ms
[2022-03-18T19:22:10.389Z] INFO: Load project branches
[2022-03-18T19:22:10.389Z] INFO: Load project branches (done) | time=30ms
[2022-03-18T19:22:10.389Z] INFO: Load project pull requests
[2022-03-18T19:22:10.389Z] INFO: Load project pull requests (done) | time=12ms
[2022-03-18T19:22:10.389Z] INFO: Load branch configuration
[2022-03-18T19:22:10.389Z] INFO: Found manual configuration of branch/PR analysis. Skipping automatic configuration.
[2022-03-18T19:22:10.389Z] INFO: Load branch configuration (done) | time=2ms
[2022-03-18T19:22:10.389Z] INFO: Auto-configuring with CI 'Jenkins'
[2022-03-18T19:22:10.389Z] INFO: Load quality profiles
[2022-03-18T19:22:10.389Z] INFO: Load quality profiles (done) | time=71ms
[2022-03-18T19:22:10.389Z] INFO: Auto-configuring with CI 'Jenkins'
[2022-03-18T19:22:10.389Z] INFO: Load active rules
[2022-03-18T19:22:12.285Z] INFO: Load active rules (done) | time=1543ms
[2022-03-18T19:22:12.285Z] INFO: Branch name: bugfix.EAXPRODUCT-102458.get_os_version_from_file
[2022-03-18T19:22:12.285Z] INFO: Indexing files...
[2022-03-18T19:22:12.285Z] INFO: Project configuration:
[2022-03-18T19:22:12.285Z] INFO:   Excluded sources: **/qrc_*.*, **/moc_*.*
[2022-03-18T19:22:12.543Z] INFO: Load project repositories
[2022-03-18T19:22:12.800Z] INFO: Load project repositories (done) | time=239ms
[2022-03-18T19:22:15.325Z] INFO: 1808 files indexed
[2022-03-18T19:22:15.325Z] INFO: 0 files ignored because of inclusion/exclusion patterns
[2022-03-18T19:22:15.325Z] INFO: Quality profile for cpp: Juno Desktop Way
[2022-03-18T19:22:15.325Z] INFO: Quality profile for js: Sonar way
[2022-03-18T19:22:15.325Z] INFO: Quality profile for web: Sonar way
[2022-03-18T19:22:15.325Z] INFO: Quality profile for xml: Sonar way
[2022-03-18T19:22:15.325Z] INFO: ------------- Run sensors on module Juno Desktop-cpp
[2022-03-18T19:22:15.325Z] INFO: JavaScript/TypeScript frontend is enabled
[2022-03-18T19:22:15.325Z] INFO: Load metrics repository
[2022-03-18T19:22:15.325Z] INFO: Load metrics repository (done) | time=19ms
[2022-03-18T19:22:17.457Z] INFO: Sensor CSS Rules [cssfamily]
[2022-03-18T19:22:21.638Z] INFO: 2 source files to be analyzed
[2022-03-18T19:22:21.898Z] INFO: 2/2 source files have been analyzed
[2022-03-18T19:22:22.156Z] INFO: Sensor CSS Rules [cssfamily] (done) | time=5168ms
[2022-03-18T19:22:22.156Z] INFO: Sensor C# Project Type Information [csharp]
[2022-03-18T19:22:22.156Z] INFO: Sensor C# Project Type Information [csharp] (done) | time=4ms
[2022-03-18T19:22:22.156Z] INFO: Sensor C# Properties [csharp]
[2022-03-18T19:22:22.156Z] INFO: Sensor C# Properties [csharp] (done) | time=2ms
[2022-03-18T19:22:22.156Z] INFO: Sensor JavaXmlSensor [java]
[2022-03-18T19:22:22.156Z] INFO: 132 source files to be analyzed
[2022-03-18T19:22:23.090Z] INFO: 132/132 source files have been analyzed
[2022-03-18T19:22:23.090Z] INFO: Sensor JavaXmlSensor [java] (done) | time=925ms
[2022-03-18T19:22:23.090Z] INFO: Sensor HTML [web]
[2022-03-18T19:22:23.348Z] INFO: Sensor HTML [web] (done) | time=325ms
[2022-03-18T19:22:23.348Z] INFO: Sensor XML Sensor [xml]
[2022-03-18T19:22:23.348Z] INFO: 132 source files to be analyzed
[2022-03-18T19:22:24.280Z] INFO: 132/132 source files have been analyzed
[2022-03-18T19:22:24.280Z] INFO: Sensor XML Sensor [xml] (done) | time=1095ms
[2022-03-18T19:22:24.280Z] INFO: Sensor VB.NET Project Type Information [vbnet]
[2022-03-18T19:22:24.280Z] INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=1ms
[2022-03-18T19:22:24.280Z] INFO: Sensor VB.NET Properties [vbnet]
[2022-03-18T19:22:24.280Z] INFO: Sensor VB.NET Properties [vbnet] (done) | time=1ms
[2022-03-18T19:22:24.280Z] INFO: Sensor JaCoCo XML Report Importer [jacoco]
[2022-03-18T19:22:24.280Z] INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
[2022-03-18T19:22:24.280Z] INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
[2022-03-18T19:22:24.280Z] INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=6ms
[2022-03-18T19:22:24.280Z] INFO: Sensor JavaScript analysis [javascript]
[2022-03-18T19:22:32.382Z] INFO: Deploying custom rules bundle jar:file:/C:/Users/originautomation/.sonar/cache/1c0d0d6d358b2ff25a27998c60079e2e/sonar-securityjsfrontend-plugin.jar!/js-vulnerabilities-rules-1.0.0.tgz to C:\jenkins\workspace\dev\sonar-analysis\.scannerwork\.sonartmp\eslint-bridge-bundle\package\custom-rules10642449063941579848
[2022-03-18T19:22:34.911Z] INFO: 2 source files to be analyzed
[2022-03-18T19:22:36.819Z] ERROR: Browserslist: caniuse-lite is outdated. Please run:
[2022-03-18T19:22:36.819Z] ERROR: npx browserslist@latest --update-db
[2022-03-18T19:22:36.819Z] ERROR: 
[2022-03-18T19:22:36.819Z] ERROR: Why you should do it regularly:
[2022-03-18T19:22:36.819Z] ERROR: https://github.com/browserslist/browserslist#browsers-data-updating
[2022-03-18T19:22:37.754Z] INFO: 2/2 source files have been analyzed
[2022-03-18T19:22:37.754Z] INFO: Sensor JavaScript analysis [javascript] (done) | time=13152ms
[2022-03-18T19:22:37.754Z] INFO: Sensor TypeScript analysis [javascript]
[2022-03-18T19:22:37.754Z] INFO: No input files found for analysis
[2022-03-18T19:22:37.754Z] INFO: Sensor TypeScript analysis [javascript] (done) | time=3ms
[2022-03-18T19:22:37.754Z] INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
[2022-03-18T19:22:37.754Z] INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=4ms
[2022-03-18T19:22:37.754Z] INFO: Sensor CFamily [cpp]
[2022-03-18T19:22:37.754Z] INFO: CFamily plugin version: 6.20.2.38358
[2022-03-18T19:22:37.754Z] INFO: Using build-wrapper output: C:\jenkins\workspace\dev\sonar-analysis\build\build-wrapper-dump.json
[2022-03-18T19:22:37.754Z] INFO: Available processors: 12
[2022-03-18T19:22:37.754Z] INFO: Using 12 threads for analysis according to value of "sonar.cfamily.threads" property.
[2022-03-18T19:22:41.034Z] WARN: Invalid character encountered in file C:/jenkins/workspace/dev/sonar-analysis/components/contentinstall/source/wip-installflow/legacy-install/InstallSession.cpp at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
[2022-03-18T19:22:43.561Z] INFO: Loading cache from: C:\jenkins\workspace\dev\sonar-analysis\..\sonar-cache\analysis_state
[2022-03-18T19:22:43.562Z] INFO: [pool-1-thread-1] C:\jenkins\workspace\dev\sonar-analysis\apps\appCommon\source\apps\AppConfigUtils.cpp
[2022-03-18T19:22:43.820Z] INFO: Cache hit for: C:\jenkins\workspace\dev\sonar-analysis\apps\appCommon\source\apps\AppLanguage.cpp
[2022-03-18T19:22:44.078Z] INFO: [pool-1-thread-2] C:\jenkins\workspace\dev\sonar-analysis\apps\appCommon\source\apps\AppMainCommon.cpp
[2022-03-18T19:22:44.078Z] INFO: Cache hit for: C:\jenkins\workspace\dev\sonar-analysis\apps\appCommon\source\apps\AppRunDetector.cpp
[2022-03-18T19:22:44.078Z] INFO: Cache hit for: C:\jenkins\workspace\dev\sonar-analysis\apps\appCommon\source\apps\AppServicesCommon.cpp
[2022-03-18T19:22:44.078Z] INFO: Cache hit for: C:\jenkins\workspace\dev\sonar-analysis\apps\appCommon\source\apps\CommandLineParser.cpp
[2022-03-18T19:22:44.078Z] INFO: Cache hit for: C:\jenkins\workspace\dev\sonar-analysis\apps\appCommon\source\apps\GlsIpcClientGep.cpp
[2022-03-18T19:23:30.734Z] INFO: ------------------------------------------------------------------------
[2022-03-18T19:23:30.734Z] INFO: EXECUTION FAILURE
[2022-03-18T19:23:30.734Z] INFO: ------------------------------------------------------------------------
[2022-03-18T19:23:30.734Z] INFO: Total time: 1:19.314s
[2022-03-18T19:23:30.734Z] INFO: Final Memory: 22M/90M
[2022-03-18T19:23:30.734Z] INFO: ------------------------------------------------------------------------
[2022-03-18T19:23:30.734Z] ERROR: Error during SonarScanner execution
[2022-03-18T19:23:30.734Z] java.lang.IllegalStateException: C:\jenkins\workspace\dev\sonar-analysis\domain\include\domain\model\Gls.h 402:10 402:20 S2807
[2022-03-18T19:23:30.734Z] 	at com.sonar.cpp.plugin.CFamilySensor.reportIssue(CFamilySensor.java:926)
[2022-03-18T19:23:30.734Z] 	at com.sonar.cpp.plugin.CFamilySensor.save(CFamilySensor.java:865)
[2022-03-18T19:23:30.734Z] 	at com.sonar.cpp.plugin.CFamilySensor.process(CFamilySensor.java:713)
[2022-03-18T19:23:30.734Z] 	at com.sonar.cpp.plugin.CFamilySensor.process(CFamilySensor.java:616)
[2022-03-18T19:23:30.734Z] 	at com.sonar.cpp.plugin.CFamilySensor.process(CFamilySensor.java:367)
[2022-03-18T19:23:30.734Z] 	at com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:175)
[2022-03-18T19:23:30.734Z] 	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48)
[2022-03-18T19:23:30.734Z] 	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:85)
[2022-03-18T19:23:30.734Z] 	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:62)
[2022-03-18T19:23:30.734Z] 	at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:82)
[2022-03-18T19:23:30.734Z] 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
[2022-03-18T19:23:30.734Z] 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
[2022-03-18T19:23:30.734Z] 	at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:392)
[2022-03-18T19:23:30.734Z] 	at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:388)
[2022-03-18T19:23:30.734Z] 	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:357)
[2022-03-18T19:23:30.734Z] 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
[2022-03-18T19:23:30.734Z] 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
[2022-03-18T19:23:30.734Z] 	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:150)
[2022-03-18T19:23:30.734Z] 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
[2022-03-18T19:23:30.734Z] 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
[2022-03-18T19:23:30.734Z] 	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
[2022-03-18T19:23:30.734Z] 	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
[2022-03-18T19:23:30.734Z] 	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
[2022-03-18T19:23:30.734Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2022-03-18T19:23:30.734Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[2022-03-18T19:23:30.734Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[2022-03-18T19:23:30.734Z] 	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
[2022-03-18T19:23:30.734Z] 	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
[2022-03-18T19:23:30.734Z] 	at com.sun.proxy.$Proxy0.execute(Unknown Source)
[2022-03-18T19:23:30.734Z] 	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
[2022-03-18T19:23:30.734Z] 	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
[2022-03-18T19:23:30.734Z] 	at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
[2022-03-18T19:23:30.734Z] 	at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
[2022-03-18T19:23:30.734Z] 	at org.sonarsource.scanner.cli.Main.main(Main.java:61)
[2022-03-18T19:23:30.734Z] Caused by: java.lang.IllegalArgumentException: 402 is not a valid line for pointer. File domain/include/domain/model/Gls.h has 172 line(s)
[2022-03-18T19:23:30.734Z] 	at org.sonar.api.utils.Preconditions.checkArgument(Preconditions.java:43)
[2022-03-18T19:23:30.734Z] 	at org.sonar.api.batch.fs.internal.DefaultInputFile.checkValid(DefaultInputFile.java:336)
[2022-03-18T19:23:30.734Z] 	at org.sonar.api.batch.fs.internal.DefaultInputFile.newPointer(DefaultInputFile.java:272)
[2022-03-18T19:23:30.734Z] 	at org.sonar.api.batch.fs.internal.DefaultInputFile.selectLine(DefaultInputFile.java:295)
[2022-03-18T19:23:30.734Z] 	at com.sonar.cpp.plugin.CFamilySensor.rangeOrLine(CFamilySensor.java:1032)
[2022-03-18T19:23:30.734Z] 	at com.sonar.cpp.plugin.CFamilySensor.reportIssueImpl(CFamilySensor.java:953)
[2022-03-18T19:23:30.734Z] 	at com.sonar.cpp.plugin.CFamilySensor.reportIssueImpl(CFamilySensor.java:936)
[2022-03-18T19:23:30.734Z] 	at com.sonar.cpp.plugin.CFamilySensor.reportIssue(CFamilySensor.java:924)
[2022-03-18T19:23:30.734Z] 	... 33 more
[2022-03-18T19:23:30.734Z] ERROR: 
[2022-03-18T19:23:30.734Z] ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
[2022-03-18T19:23:30.734Z] 
[2022-03-18T19:23:30.734Z]              [error] error at task "exec"  pc64-vc-tool-debug
[2022-03-18T19:23:30.734Z]              [error]   Error running external program: (C:\packages\SonarScanner\4.6.2.2472\bin\sonar-scanner.bat)
[2022-03-18T19:23:30.734Z]              [error]   [C:\packages\SonarScanner\4.6.2.2472\bin\sonar-scanner.bat  ]
[2022-03-18T19:23:30.734Z]              [error]   Working Directory: [C:\jenkins\workspace\dev\sonar-analysis]
[2022-03-18T19:23:30.734Z]              [error]   Output was saved at:
[2022-03-18T19:23:30.734Z]              [error]   file:///C:/jenkins/workspace/dev/sonar-analysis/logs/sonarqube.log
[2022-03-18T19:23:30.734Z] 
[2022-03-18T19:23:30.734Z]                  [error] at csharp   NAnt.Core.Tasks.ExecTask.ExecuteTask E:\dev\packages\Framework\8.07.01\source\NAnt.Core\Core\Tasks\ExecTask.cs(460,5)
[2022-03-18T19:23:30.734Z]                  [error] at task     "exec" C:\jenkins\workspace\dev\sonar-analysis\scripts\sonarqube-targets.xml(95,10)
[2022-03-18T19:23:30.734Z]                  [error] at target   "sonarqube" C:\jenkins\workspace\dev\sonar-analysis\scripts\sonarqube-targets.xml(31,6)
[2022-03-18T19:23:30.734Z]                  [error] at project   C:\jenkins\workspace\dev\sonar-analysis\juno-desktop.build
[2022-03-18T19:23:30.734Z]      [error] [nant 8.07.01] BUILD FAILED (00:14:29)
[2022-03-18T19:23:30.734Z]      [error] 

Hi @jhavero,

Can you tell us more details on how you are using the cache?

The issue that you are facing may happen if multiple analyses are using the same cache at the same time. Are you sharing the same cache between analyses?

The recommended practice is to have cache updated only from the main branch and to have other branches and pull requests copying the main branch cache and using it without updating it.

Thanks,

Hi Abbas, yes we share same cache between analysis. We have a dev branch (our main) and we have branches from the dev branch for Merge Requests.
The builds for the Merge Request branches run sonar analysis as part of the build. When the Merge Request branch is merged to dev the dev build does not execute
sonar analysis. We only run the sonar analysis in the Merge Request branches. Our builds run on Jenkins multibranch pipelines and we have a pool 16 Windows build agents
that a build will select to run on. The Windows build agents have C:\jenkins\workspace\dev\sonar-cache\ as cache shared by the builds.

Hi @jhavero,

The cache is currently not meant to be used by multiple analyses at the same time. You should take care of copying it and using a unique one for each Merge request. Also, you should decide how the main cache is updated. Usually, it should be the main dev branch that updates the cache.

Request branch is merged to dev the dev build does not execute

Also, I don’t understand if you are not analyzing the dev branch, how are you getting the analysis of the full project? How do you keep track of the result after the merge is done?

Thanks,

1 Like

Hi Abbass, we share the cache we don’t have multiple analysis running concurrently. When there is a build one of the build agents no other build can run on it. I will need to double-check that this is still the case. We don’t run the analysis on dev to keep that build fast. We do however run a nightly analysis of the dev branch.

When there are two merge requests, aren’t there two build agents running analysis on each merger request that are using the same shared cache? The error that you shared sounds like a side effect from two different analyses sharing the same cache.

Hi Abbass,

Yes they are shared between branch builds but I thought you were asking if more than one build was using the cache simultaneously which isn’t happening in our case.
I’m trying to find a way to apply your recommendation of using a copy of the ‘dev’ cache. We need to
store the ‘dev’ cache somewhere. We have 16 build agents and currently no shared storage between them. Help me understand how the cache folder works.
Does it check if the file hash is different from the cache, if so it will run an analysis on the file? If our cache is old then it will do analysis on more files than necessary?
Trying to understand how the newer cache fixes the java exception we are seeing.

Hi @jhavero,

this should be fixed in SonarQube 9.5 by CPP-3661.

Thanks,

Thanks for the update Abbas.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.