-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoClassDefError with the SonarScanner #2686
Comments
Hi @shangchenlin, the NoClassDefError comes from
That‘s one of the first steps during setup of the plugin, long before any analysis is executed. Wondering how that could be because CI tests are running?
Regards, |
SonarQube C++ Community plugin (cxx plugin): This plugin adds C++ support to SonarQube with the focus on integration of existing C++ tools. …the main purpose of the cxx plugin is to forward reports from 3rd party tools to SonarQube. The plugin is not doing any static code analysis by its own. If you want that you have to use the SQ developer edition with the cpp plugin. |
We don't use Jenkins to run our CI jobs, but GitLab CI which launches jobs on docker containers (hence, clean) using the official image sonarsource/sonar-scanner-cli:latest and despite this hopefully clean environment, we do experience the same NB: aggregator is used to collect compilation warnings from both Linux and Windows platforms, ccpcheck analysis, gcov results as well as valgrind output. @guwirth do you have any hint, like using a better docker image, for instance? |
We have the same setup and the same problem. And ours does not even have C++ code. Removing the sonar-caches did not help. In production we run |
What I still don’t understand is, that everything is working fine in our test environments. Why is only sometimes the dependency to the class CxxUnitTestResultsAggregator not available at runtime? Someone an idea? Found this: https://rollbar.com/blog/java-no-class-def-found-error/ |
Before you create a new issue
Describe the bug
When I run the command line which the SonarQube gave me, it kept jump the NoClassDefError
Screenshots
![cmd_UXwMMFP2JE](https://cdn.statically.io/img/private-user-images.githubusercontent.com/161707475/334377524-17a4025a-26dc-486b-965b-f01c23945bdb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0ODgyOTQsIm5iZiI6MTcyMTQ4Nzk5NCwicGF0aCI6Ii8xNjE3MDc0NzUvMzM0Mzc3NTI0LTE3YTQwMjVhLTI2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XM9MzAwJlgtQW16LVNpZ25hdHVyZT0wNzczMWY2ZGEyNjJkY2RkZDFkOGMxMjZlNWZlYzljY2M5ODAyYmVhZGM3NmEzN2ZjYzVmM2E4MDBmOGFkMTVjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.0j-Tn4t-_A5-ZGjwbYNtyQwTG-yRoJy-wF28VTFKi_M)
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: