IllegalStateException after upgrading to 8.9.9 LTS

After updating to 8.9.9 LTS, one of our scans started failing (stack trace below). Note that we are not scanning the referenced file - it is picked up somehow by the plugin.

There haven’t been any significant code changes and the scan was working fine with 8.9.8…

Now that the plugins are bundled we are kind of stuck - the only way to fix this would be to go back to 8.9.8 but that’s not an option :frowning:

I suspect that one of these causes the issue: [SONAR-16502] CFamily analysis bug fixes - SonarSource


ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\Adshlp.h.
	at com.sonar.cpp.jni.FileSystemOperations.realPath(
	at com.sonar.cpp.plugin.CFamilySensor.computeCanonicalPath(
	at java.util.HashMap.computeIfAbsent(
	at com.sonar.cpp.plugin.CFamilySensor.lambda$process$8(
	at com.sonar.cpp.analyzer.AnalysisExecutor.lambda$submit$0(
	at java.util.concurrent.Executors$
	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.util.concurrent.ThreadPoolExecutor$

Hi @turturel,

You seem to have a dot ‘.’ at the end of the name of the header file.

something similar to this resolved thread java.lang.IllegalStateException at com.sonar.cpp.jni.FileSystemOperations.realPath - #2 by Abbas_Sabra


Yes, you were right. That trailing dot was crashing the scan.

Thank you!

1 Like

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