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

Thanks!
Mihai

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(FileSystemOperations.java:59)
	at com.sonar.cpp.plugin.CFamilySensor.computeCanonicalPath(CFamilySensor.java:1048)
	at java.util.HashMap.computeIfAbsent(HashMap.java:1129)
	at com.sonar.cpp.plugin.CFamilySensor.save(CFamilySensor.java:762)
	at com.sonar.cpp.plugin.CFamilySensor.lambda$process$8(CFamilySensor.java:736)
	at com.sonar.cpp.analyzer.AnalysisExecutor.lambda$submit$0(AnalysisExecutor.java:59)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

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

Thanks,

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.