Comments (5)
Hi @narayam,
Past 25 day sonarqube works fine with C++ plugin, but today we getting the above error for Java and python projects.
What has changed in your setup?
cxx plugin version: sonar-cxx-plugin-2.1.2.588.jar
Is not an official release. Last released version was 2.1.1 with https://github.com/SonarOpenCommunity/sonar-cxx/releases/download/cxx-2.1.1/sonar-cxx-plugin-2.1.1.488.jar. Please try again with this version.
Regards,
from sonar-cxx.
okay thanks let me try
from sonar-cxx.
Hi @guwirth as you suggested I have updated the C++ plugin version 2.1.1.488. Its worked without any issue. But after a month, we are getting same issue.
_ERROR: Error during SonarScanner execution
java.lang.NoClassDefFoundError: org/sonar/cxx/sensors/tests/dotnet/CxxUnitTestResultsAggregator
at org.sonar.plugins.cxx.CxxPlugin.getSensorsImpl(CxxPlugin.java:110)
at org.sonar.plugins.cxx.CxxPlugin.define(CxxPlugin.java:80)
at org.sonar.scanner.bootstrap.ExtensionInstaller.install(ExtensionInstaller.java:57)
at org.sonar.scanner.scan.SpringProjectScanContainer.addScannerExtensions(SpringProjectScanContainer.java:327)
at org.sonar.scanner.scan.SpringProjectScanContainer.doBeforeStart(SpringProjectScanContainer.java:156)
at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:186)
at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
at org.sonar.scanner.bootstrap.SpringGlobalContainer.doAfterStart(SpringGlobalContainer.java:137)
at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
at jdk.proxy1/jdk.proxy1.$Proxy0.execute(Unknown Source)
at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
at org.sonarsource.scanner.cli.Main.main(Main.java:62)
Caused by: java.lang.ClassNotFoundException: org.sonar.cxx.sensors.tests.dotnet.CxxUnitTestResultsAggregator
at org.sonar.classloader.ParentFirstStrategy.loadClass(ParentFirstStrategy.java:39)
at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:87)
at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:76)_
from sonar-cxx.
Hi @narayam,
thanks for trying. What has changed in your setup? Sounds that SQ version, cxx version and config was stable?
Error is org.sonar.cxx.sensors.tests.dotnet.CxxUnitTestResultsAggregator
in CxxPlugin.define
That’s one of the first steps loading the CxxPlugin
, long before executing the plugin. Don’t understand why this sometimes is working, sometimes not?
Regards,
from sonar-cxx.
- error during load/init of plugin
- before loading/reading the configuration
- before executing a sensor/report
Can only be a problem with SonarQube version, cxx version, Java or environment.
from sonar-cxx.
Related Issues (20)
- Builds failing with 'CXX-public_undocumented_api' does not exist error HOT 1
- SonarCloud: Java 11 is no longer supported as scanner runtime environment
- Very little security rules and security hotspot rules HOT 1
- can you update xx-custom-checks-example-plugin for Sonar 9.9 TLS HOT 2
- Verify deprecated Web API endpoints and parameters HOT 1
- Optimizing the execution of sensors
- How to define program language HOT 1
- cxx-custom-checks-example-plugin can not to report issue information HOT 8
- The SonarScanners download only required 3rd-party plugins HOT 1
- [Fix][cxx-custom-checks-example-plugin] the problem that sample rules could not be loaded and registerd normally HOT 1
- BREAKING CHANGE: Rename 'sonarQubeMinVersion' to 'pluginApiMinVersion'
- The property 'sonar.login' is deprecated
- False positive with cppcheck:passedByValue and std::move in constructor HOT 3
- Squid preprocessor error and the sonar scanner procedure will be stuck HOT 9
- Cppcheck 2.14.0 support HOT 3
- Cognitive complexity metric does not understand newer C++ syntax HOT 9
- Not getting sonar report while using sonar-cxx for SonarQube 9.9.5 LTS HOT 7
- NoClassDefError with the SonarScanner HOT 4
- Unable to run sonar-scanner with cppdepend HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonar-cxx.