Error during SonarQube Scanner execution java.lang.IllegalStateException

  • Which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    – SonarQube Developer 8.7.1
    – SonarScanner for MSBuild 5.1
    – build-wrapper version 6.17

  • What are you trying to achieve
    – Trying to scan a solution (Visual Studio 2022) with a mix of C# and C++ projects. The C++
    project is using BOOST (1.84.0)

  • What have you tried so far to achieve this
    #define BOOST_ASIO_DISABLE_NOEXCEPT

I got the following input:

ERROR: Exception in thread pool-3-thread-1
com.sonar.cpp.analyzer.Analyzer$AnalyzerException: Exit code != 0: C:/Users/kashaag/Desktop/git/avn-sil/src/platforms/windows_x86_32/MetaVRPlugin/environment_manager.cpp
        at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:81)
        at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:78)
        at com.sonar.cpp.plugin.CFamilySensor.lambda$process$8(CFamilySensor.java:655)
        at com.sonar.cpp.analyzer.AnalysisExecutor.lambda$submit$0(AnalysisExecutor.java:59)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

Thank you!

Hi,

Welcome to the community!

Your version is past EOL. You should upgrade to either the latest version or the current LTA (long-term active version) at your earliest convenience. Your upgrade path is:

8.7.1 → 8.9.10 → 9.9.6 → 10.7 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.

 
Ann