NullPointerException after updating to 9.2.4

We are receiving the below error since updating to 9.2.4. All was working fine prior to the update.

  • versions used (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube: 9.2.4
    Maven plugin: 3.9.1.2184

  • error observed (wrap logs/code around triple quote ``` for proper formatting)

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project health-monitor: Unable to load component class org.sonar.scanner.report.ActiveRulesPublisher: Unable to load component class org.sonar.api.batch.rule.internal.DefaultActiveRules: NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project health-monitor: Unable to load component class org.sonar.scanner.report.ActiveRulesPublisher
...
Caused by: java.lang.NullPointerException
    at org.sonar.scanner.rule.DefaultActiveRulesLoader.readPage (DefaultActiveRulesLoader.java:103)
    at org.sonar.scanner.rule.DefaultActiveRulesLoader.load (DefaultActiveRulesLoader.java:63)
    at org.sonar.scanner.rule.ActiveRulesProvider.load (ActiveRulesProvider.java:100)
    at org.sonar.scanner.rule.ActiveRulesProvider.load (ActiveRulesProvider.java:63)
    at org.sonar.scanner.rule.ActiveRulesProvider.provide (ActiveRulesProvider.java:50)

Any ideas?

Hi,

What version did you upgrade from? Do you have any 3rd-party plugins installed?

Also, can you post your full analysis log?

 
Ann

HI Ann

We have recently changed the version of the Sonarqube
we have upgraded from the community edition docker container to development as we have purchased it . We have used till 20 Jan 2022 version sonarqube:9.0.1-community upgrade was made to version sonarqube:9.2.4-community on that date . On 22 Jan 2022 we have upgraded to sonarqube:9.2.4-developer. Our last upgrade was done on 22 Feb 2022 to sonarqube:9.3.0-developer . After each upgrade we have run the recommended setup of the Sonarqube and yesterday we also did the

Additional database maintenance

We recommend refreshing your database’s statistics and rebuilding your database’s indices once you’ve finished the technical upgrade, but before you reanalyze your projects.

For PostgreSQL, that means executing VACUUM FULL . According to the PostgreSQL documentation:

They are no additional plugins installed

We still have the same error

**09:52:41** [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project poject-domain-model: Unable to load component class org.sonar.scanner.report.ActiveRulesPublisher: Unable to load component class org.sonar.api.batch.rule.internal.DefaultActiveRules: NullPointerException -> [Help 1]

We also notice this error the access log

10.2.4.25 - - [23/Feb/2022:09:52:40 +0000] "GET /api/project_branches/list?project=our.java.project-domain-model HTTP/1.1" 200 322 "-" "ScannerMaven/3.9.1.2184/3.6.0" "AX8hItr661pKsMi0AAw4"
10.2.4.25 - - [23/Feb/2022:09:52:40 +0000] "GET /api/project_pull_requests/list?project=our.java.project-domain-model HTTP/1.1" 200 341 "-" "ScannerMaven/3.9.1.2184/3.6.0" "AX8hItr661pKsMi0AAw5"
10.2.4.25 - - [23/Feb/2022:09:52:40 +0000] "GET /api/qualityprofiles/search.protobuf?project=our.java.project-domain-model HTTP/1.1" 200 2973 "-" "ScannerMaven/3.9.1.2184/3.6.0" "AX8hItr661pKsMi0AAw6"
10.2.4.25 - - [23/Feb/2022:09:52:40 +0000] "GET /api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXoaQG1x52atAaxkctsL&ps=500&p=1 HTTP/1.1" 200 6579 "-" "ScannerMaven/3.9.1.2184/3.6.0" "AX8hItr661pKsMi0AAw7"
10.2.4.25 - - [23/Feb/2022:09:52:41 +0000] "GET /api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXoaQG4p52atAaxkctto&ps=500&p=1 HTTP/1.1" 200 7859 "-" "ScannerMaven/3.9.1.2184/3.6.0" "AX8hItr661pKsMi0AAw8"
10.2.4.25 - - [23/Feb/2022:09:52:41 +0000] "GET /api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXoaQG6y52atAaxkctuI&ps=500&p=1 HTTP/1.1" 200 11 "-" "ScannerMaven/3.9.1.2184/3.6.0" "AX8hItr661pKsMi0AAw9"
10.2.4.25 - - [23/Feb/2022:09:52:41 +0000] "GET /api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXoaQHDU52atAaxkct2Q&ps=500&p=1 HTTP/1.1" 200 - "-" "ScannerMaven/3.9.1.2184/3.6.0" "AX8hItr661pKsMi0AAw+"
10.2.4.25 - - [23/Feb/2022:09:52:41 +0000] "GET /api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AXoaQHK352atAaxkct9N&ps=500&p=1 HTTP/1.1" 200 - "-" "ScannerMaven/3.9.1.2184/3.6.0" "AX8hItr661pKsMi0AAw/"

I have sanitised some of the data for security reasons .

Hi @PPavlov,

Welcome to the community!

Do you work with @mosaic_nick or is this a new issue?

Either way, my questions remain the same:

And particularly, we need to see the full stacktrace with any error reports.

Tangentially, I don’t see any errors in the access log snippet you’ve posted. Every request had a 200 response code.

 
Ann

Hi @ganncamp
Yes we work together . Can you be more specific how we can give you the full stack details .
We have a test brunch that is consistently failing .
Here is the last fails
15:41:17 [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project msx-domain-model: Unable to load component class org.sonar.scanner.report.ActiveRulesPublisher: Unable to load component class org.sonar.api.batch.rule.internal.DefaultActiveRules: NullPointerException → [Help 1]

Is there a way I can send you the logs output directly so they are not public ?

Hi,

Feel free to redact the logs as necessary.

At a minimum, we’d ideally see a couple lines before the error, the error itself, and all the lines that start with “at” and “Caused by”.

 
Ann

HI @ganncamp

The problem is I don’t see any error in the logs . But clearly there is an error i would love if you can assist us how we can find the errors in the logs . We are using the official docker container from Sonartype and we have a cluster of instances that it is across multiple AZ’s in AWS. The problem is that occasionally the container moves depending on the resources from one instance to another across the same cluster . Also in case if zone been down that also happens automatically. We have Postgres in RDS that is also across multiple AZ’z. What he have notice that the license is not working across the instances or if the container moves . Can you help us with that as well .

Do you think that could be the issue with the maven plugs just not working properly with the dev edition ?

Hi,

The license problem will indeed impede analysis, but not until the analysis report is submitted to the server. You should ping contact@sonarsource.com to get the licensing issue sorted out, but that won’t fix the error you’re seeing.

I’m confused. Earlier you said you were seeing:

To be clear, you mean the official image from SonarSource, right?

There’s just one SonarQube instance, right? Pointing multiple SonarQubes at the same database causes weird/bad things to happen (unless you’re running the Data Center Edition($$$)).

As long as the database doesn’t move, this should be fine.

That’s an entirely separate question from “I get an NPE during analysis after upgrade”. You’ll need to create a new thread for that.

 
Ann

So yes we have only one container that runs at the time there is no multiple connections to the DB there is multiple instances and the container may move from one instance to another. based on the load and also based on outage in the same region . As instances are in multiple availability zones. The DB is not moving at all. Yes sorry SonarSorce where we re downloaded the container docker pull sonarqube:9.3.0-developer :slight_smile: Ragading the current errors . We see errors in the Jenkins that can’t finish the scan with the error I show you because of the module but I don’t see any error in our Sonarqube logs. We have at the moment the container logs pushing to CloudWatch. Is there any way to have a better trace on the container .

Hi,

There’s nothing to see in the SonarQube server logs for this analysis error. Because analysis errors out before the end, nothing is ever sent to the server.

That’s why I asked for the analysis (Jenkins-side) logs - at minimum the full stacktrace. The lines of stacktrace provided in the OP aren’t sufficient to trace the error back through the call stack to understand where the problem originates. What we have so far is very generic.

:slight_smile:
Ann

HI @ganncamp

Here is the full stack from the jennies job

10:45:43  [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project msx-domain-model: Unable to load component class org.sonar.scanner.report.ActiveRulesPublisher: Unable to load component class org.sonar.api.batch.rule.internal.DefaultActiveRules: NullPointerException -> [Help 1]
10:45:43  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project msx-domain-model: Unable to load component class org.sonar.scanner.report.ActiveRulesPublisher
10:45:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
10:45:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
10:45:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
10:45:43      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
10:45:43      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
10:45:43      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
10:45:43      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
10:45:43      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
10:45:43      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
10:45:43      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
10:45:43      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
10:45:43      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
10:45:43      at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
10:45:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
10:45:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
10:45:43      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
10:45:43      at java.lang.reflect.Method.invoke (Method.java:566)
10:45:43      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
10:45:43      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
10:45:43      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
10:45:43      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
10:45:43  Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to load component class org.sonar.scanner.report.ActiveRulesPublisher
10:45:43      at org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute (ScannerBootstrapper.java:67)
10:45:43      at org.sonarsource.scanner.maven.SonarQubeMojo.execute (SonarQubeMojo.java:108)
10:45:43      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
10:45:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
10:45:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
10:45:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
10:45:43      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
10:45:43      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
10:45:43      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
10:45:43      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
10:45:43      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
10:45:43      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
10:45:43      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
10:45:43      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
10:45:43      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
10:45:43      at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
10:45:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
10:45:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
10:45:43      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
10:45:43      at java.lang.reflect.Method.invoke (Method.java:566)
10:45:43      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
10:45:43      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
10:45:43      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
10:45:43      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
10:45:43  Caused by: java.lang.IllegalStateException: Unable to load component class org.sonar.scanner.report.ActiveRulesPublisher
10:45:43      at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent (ComponentContainer.java:66)
10:45:43      at org.picocontainer.DefaultPicoContainer.getComponent (DefaultPicoContainer.java:621)
10:45:43      at org.picocontainer.parameters.CollectionComponentParameter.getArrayInstance (CollectionComponentParameter.java:334)
10:45:43      at org.picocontainer.parameters.CollectionComponentParameter.access$100 (CollectionComponentParameter.java:49)
10:45:43      at org.picocontainer.parameters.CollectionComponentParameter$1.resolveInstance (CollectionComponentParameter.java:139)
10:45:43      at org.picocontainer.parameters.ComponentParameter$1.resolveInstance (ComponentParameter.java:141)
10:45:43      at org.picocontainer.injectors.SingleMemberInjector.getParameter (SingleMemberInjector.java:78)
10:45:43      at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments (ConstructorInjector.java:309)
10:45:43      at org.picocontainer.injectors.ConstructorInjector$1.run (ConstructorInjector.java:335)
10:45:43      at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe (AbstractInjector.java:270)
10:45:43      at org.picocontainer.injectors.ConstructorInjector.getComponentInstance (ConstructorInjector.java:364)
10:45:43      at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance (AbstractInjectionFactory.java:56)
10:45:43      at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance (AbstractBehavior.java:64)
10:45:43      at org.picocontainer.behaviors.Stored.getComponentInstance (Stored.java:91)
10:45:43      at org.picocontainer.DefaultPicoContainer.instantiateComponentAsIsStartable (DefaultPicoContainer.java:1034)
10:45:43      at org.picocontainer.DefaultPicoContainer.addAdapterIfStartable (DefaultPicoContainer.java:1026)
10:45:43      at org.picocontainer.DefaultPicoContainer.startAdapters (DefaultPicoContainer.java:1003)
10:45:43      at org.picocontainer.DefaultPicoContainer.start (DefaultPicoContainer.java:767)
10:45:43      at org.sonar.core.platform.ComponentContainer.startComponents (ComponentContainer.java:136)
10:45:43      at org.sonar.core.platform.ComponentContainer.execute (ComponentContainer.java:123)
10:45:43      at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart (GlobalContainer.java:136)
10:45:43      at org.sonar.core.platform.ComponentContainer.startComponents (ComponentContainer.java:137)
10:45:43      at org.sonar.core.platform.ComponentContainer.execute (ComponentContainer.java:123)
10:45:43      at org.sonar.batch.bootstrapper.Batch.doExecute (Batch.java:72)
10:45:43      at org.sonar.batch.bootstrapper.Batch.execute (Batch.java:66)
10:45:43      at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute (BatchIsolatedLauncher.java:46)
10:45:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
10:45:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
10:45:43      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
10:45:43      at java.lang.reflect.Method.invoke (Method.java:566)
10:45:43      at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke (IsolatedLauncherProxy.java:60)
10:45:43      at com.sun.proxy.$Proxy24.execute (Unknown Source)
10:45:43      at org.sonarsource.scanner.api.EmbeddedScanner.doExecute (EmbeddedScanner.java:189)
10:45:43      at org.sonarsource.scanner.api.EmbeddedScanner.execute (EmbeddedScanner.java:138)
10:45:43      at org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute (ScannerBootstrapper.java:65)
10:45:43      at org.sonarsource.scanner.maven.SonarQubeMojo.execute (SonarQubeMojo.java:108)
10:45:43      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
10:45:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
10:45:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
10:45:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
10:45:43      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
10:45:43      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
10:45:43      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
10:45:43      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
10:45:43      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
10:45:43      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
10:45:43      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
10:45:43      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
10:45:43      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
10:45:43      at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
10:45:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
10:45:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
10:45:43      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
10:45:43      at java.lang.reflect.Method.invoke (Method.java:566)
10:45:43      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
10:45:43      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
10:45:43      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
10:45:43      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
10:45:43  Caused by: java.lang.IllegalStateException: Unable to load component class org.sonar.api.batch.rule.internal.DefaultActiveRules
10:45:43      at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent (ComponentContainer.java:66)
10:45:43      at org.picocontainer.DefaultPicoContainer.getComponent (DefaultPicoContainer.java:632)
10:45:43      at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance (BasicComponentParameter.java:118)
10:45:43      at org.picocontainer.parameters.ComponentParameter$1.resolveInstance (ComponentParameter.java:136)
10:45:43      at org.picocontainer.injectors.SingleMemberInjector.getParameter (SingleMemberInjector.java:78)
10:45:43      at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments (ConstructorInjector.java:309)
10:45:43      at org.picocontainer.injectors.ConstructorInjector$1.run (ConstructorInjector.java:335)
10:45:43      at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe (AbstractInjector.java:270)
10:45:43      at org.picocontainer.injectors.ConstructorInjector.getComponentInstance (ConstructorInjector.java:364)
10:45:43      at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance (AbstractInjectionFactory.java:56)
10:45:43      at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance (AbstractBehavior.java:64)
10:45:43      at org.picocontainer.behaviors.Stored.getComponentInstance (Stored.java:91)
10:45:43      at org.picocontainer.DefaultPicoContainer.getInstance (DefaultPicoContainer.java:699)
10:45:43      at org.picocontainer.DefaultPicoContainer.getComponent (DefaultPicoContainer.java:647)
10:45:43      at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent (ComponentContainer.java:64)
10:45:43      at org.picocontainer.DefaultPicoContainer.getComponent (DefaultPicoContainer.java:621)
10:45:43      at org.picocontainer.parameters.CollectionComponentParameter.getArrayInstance (CollectionComponentParameter.java:334)
10:45:43      at org.picocontainer.parameters.CollectionComponentParameter.access$100 (CollectionComponentParameter.java:49)
10:45:43      at org.picocontainer.parameters.CollectionComponentParameter$1.resolveInstance (CollectionComponentParameter.java:139)
10:45:43      at org.picocontainer.parameters.ComponentParameter$1.resolveInstance (ComponentParameter.java:141)
10:45:43      at org.picocontainer.injectors.SingleMemberInjector.getParameter (SingleMemberInjector.java:78)
10:45:43      at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments (ConstructorInjector.java:309)
10:45:43      at org.picocontainer.injectors.ConstructorInjector$1.run (ConstructorInjector.java:335)
10:45:43      at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe (AbstractInjector.java:270)
10:45:43      at org.picocontainer.injectors.ConstructorInjector.getComponentInstance (ConstructorInjector.java:364)
10:45:43      at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance (AbstractInjectionFactory.java:56)
10:45:43      at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance (AbstractBehavior.java:64)
10:45:43      at org.picocontainer.behaviors.Stored.getComponentInstance (Stored.java:91)
10:45:43      at org.picocontainer.DefaultPicoContainer.instantiateComponentAsIsStartable (DefaultPicoContainer.java:1034)
10:45:43      at org.picocontainer.DefaultPicoContainer.addAdapterIfStartable (DefaultPicoContainer.java:1026)
10:45:43      at org.picocontainer.DefaultPicoContainer.startAdapters (DefaultPicoContainer.java:1003)
10:45:43      at org.picocontainer.DefaultPicoContainer.start (DefaultPicoContainer.java:767)
10:45:43      at org.sonar.core.platform.ComponentContainer.startComponents (ComponentContainer.java:136)
10:45:43      at org.sonar.core.platform.ComponentContainer.execute (ComponentContainer.java:123)
10:45:43      at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart (GlobalContainer.java:136)
10:45:43      at org.sonar.core.platform.ComponentContainer.startComponents (ComponentContainer.java:137)
10:45:43      at org.sonar.core.platform.ComponentContainer.execute (ComponentContainer.java:123)
10:45:43      at org.sonar.batch.bootstrapper.Batch.doExecute (Batch.java:72)
10:45:43      at org.sonar.batch.bootstrapper.Batch.execute (Batch.java:66)
10:45:43      at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute (BatchIsolatedLauncher.java:46)
10:45:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
10:45:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
10:45:43      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
10:45:43      at java.lang.reflect.Method.invoke (Method.java:566)
10:45:43      at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke (IsolatedLauncherProxy.java:60)
10:45:43      at com.sun.proxy.$Proxy24.execute (Unknown Source)
10:45:43      at org.sonarsource.scanner.api.EmbeddedScanner.doExecute (EmbeddedScanner.java:189)
10:45:43      at org.sonarsource.scanner.api.EmbeddedScanner.execute (EmbeddedScanner.java:138)
10:45:43      at org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute (ScannerBootstrapper.java:65)
10:45:43      at org.sonarsource.scanner.maven.SonarQubeMojo.execute (SonarQubeMojo.java:108)
10:45:43      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
10:45:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
10:45:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
10:45:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
10:45:43      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
10:45:43      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
10:45:43      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
10:45:43      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
10:45:43      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
10:45:43      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
10:45:43      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
10:45:43      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
10:45:43      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
10:45:43      at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
10:45:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
10:45:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
10:45:43      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
10:45:43      at java.lang.reflect.Method.invoke (Method.java:566)
10:45:43      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
10:45:43      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
10:45:43      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
10:45:43      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
10:45:43  Caused by: java.lang.NullPointerException
10:45:43      at org.sonar.scanner.rule.DefaultActiveRulesLoader.readPage (DefaultActiveRulesLoader.java:103)
10:45:43      at org.sonar.scanner.rule.DefaultActiveRulesLoader.load (DefaultActiveRulesLoader.java:63)
10:45:43      at org.sonar.scanner.rule.ActiveRulesProvider.load (ActiveRulesProvider.java:100)
10:45:43      at org.sonar.scanner.rule.ActiveRulesProvider.load (ActiveRulesProvider.java:63)
10:45:43      at org.sonar.scanner.rule.ActiveRulesProvider.provide (ActiveRulesProvider.java:50)
10:45:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
10:45:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
10:45:43      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
10:45:43      at java.lang.reflect.Method.invoke (Method.java:566)
10:45:43      at org.picocontainer.injectors.MethodInjector.invokeMethod (MethodInjector.java:129)
10:45:43      at org.picocontainer.injectors.MethodInjector.access$000 (MethodInjector.java:39)
10:45:43      at org.picocontainer.injectors.MethodInjector$2.run (MethodInjector.java:113)
10:45:43      at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe (AbstractInjector.java:270)
10:45:43      at org.picocontainer.injectors.MethodInjector.decorateComponentInstance (MethodInjector.java:120)
10:45:43      at org.picocontainer.injectors.CompositeInjector.decorateComponentInstance (CompositeInjector.java:58)
10:45:43      at org.picocontainer.injectors.Reinjector.reinject (Reinjector.java:142)
10:45:43      at org.picocontainer.injectors.ProviderAdapter.getComponentInstance (ProviderAdapter.java:96)
10:45:43      at org.picocontainer.DefaultPicoContainer.getInstance (DefaultPicoContainer.java:699)
10:45:43      at org.picocontainer.DefaultPicoContainer.getComponent (DefaultPicoContainer.java:647)
10:45:43      at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent (ComponentContainer.java:64)
10:45:43      at org.picocontainer.DefaultPicoContainer.getComponent (DefaultPicoContainer.java:632)
10:45:43      at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance (BasicComponentParameter.java:118)
10:45:43      at org.picocontainer.parameters.ComponentParameter$1.resolveInstance (ComponentParameter.java:136)
10:45:43      at org.picocontainer.injectors.SingleMemberInjector.getParameter (SingleMemberInjector.java:78)
10:45:43      at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments (ConstructorInjector.java:309)
10:45:43      at org.picocontainer.injectors.ConstructorInjector$1.run (ConstructorInjector.java:335)
10:45:43      at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe (AbstractInjector.java:270)
10:45:43      at org.picocontainer.injectors.ConstructorInjector.getComponentInstance (ConstructorInjector.java:364)
10:45:43      at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance (AbstractInjectionFactory.java:56)
10:45:43      at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance (AbstractBehavior.java:64)
10:45:43      at org.picocontainer.behaviors.Stored.getComponentInstance (Stored.java:91)
10:45:43      at org.picocontainer.DefaultPicoContainer.getInstance (DefaultPicoContainer.java:699)
10:45:43      at org.picocontainer.DefaultPicoContainer.getComponent (DefaultPicoContainer.java:647)
10:45:43      at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent (ComponentContainer.java:64)
10:45:43      at org.picocontainer.DefaultPicoContainer.getComponent (DefaultPicoContainer.java:621)
10:45:43      at org.picocontainer.parameters.CollectionComponentParameter.getArrayInstance (CollectionComponentParameter.java:334)
10:45:43      at org.picocontainer.parameters.CollectionComponentParameter.access$100 (CollectionComponentParameter.java:49)
10:45:43      at org.picocontainer.parameters.CollectionComponentParameter$1.resolveInstance (CollectionComponentParameter.java:139)
10:45:43      at org.picocontainer.parameters.ComponentParameter$1.resolveInstance (ComponentParameter.java:141)
10:45:43      at org.picocontainer.injectors.SingleMemberInjector.getParameter (SingleMemberInjector.java:78)
10:45:43      at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments (ConstructorInjector.java:309)
10:45:43      at org.picocontainer.injectors.ConstructorInjector$1.run (ConstructorInjector.java:335)
10:45:43      at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe (AbstractInjector.java:270)
10:45:43      at org.picocontainer.injectors.ConstructorInjector.getComponentInstance (ConstructorInjector.java:364)
10:45:43      at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance (AbstractInjectionFactory.java:56)
10:45:43      at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance (AbstractBehavior.java:64)
10:45:43      at org.picocontainer.behaviors.Stored.getComponentInstance (Stored.java:91)
10:45:43      at org.picocontainer.DefaultPicoContainer.instantiateComponentAsIsStartable (DefaultPicoContainer.java:1034)
10:45:43      at org.picocontainer.DefaultPicoContainer.addAdapterIfStartable (DefaultPicoContainer.java:1026)
10:45:43      at org.picocontainer.DefaultPicoContainer.startAdapters (DefaultPicoContainer.java:1003)
10:45:43      at org.picocontainer.DefaultPicoContainer.start (DefaultPicoContainer.java:767)
10:45:43      at org.sonar.core.platform.ComponentContainer.startComponents (ComponentContainer.java:136)
10:45:43      at org.sonar.core.platform.ComponentContainer.execute (ComponentContainer.java:123)
10:45:43      at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart (GlobalContainer.java:136)
10:45:43      at org.sonar.core.platform.ComponentContainer.startComponents (ComponentContainer.java:137)
10:45:43      at org.sonar.core.platform.ComponentContainer.execute (ComponentContainer.java:123)
10:45:43      at org.sonar.batch.bootstrapper.Batch.doExecute (Batch.java:72)
10:45:43      at org.sonar.batch.bootstrapper.Batch.execute (Batch.java:66)
10:45:43      at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute (BatchIsolatedLauncher.java:46)
10:45:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
10:45:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
10:45:43      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
10:45:43      at java.lang.reflect.Method.invoke (Method.java:566)
10:45:43      at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke (IsolatedLauncherProxy.java:60)
10:45:43      at com.sun.proxy.$Proxy24.execute (Unknown Source)
10:45:43      at org.sonarsource.scanner.api.EmbeddedScanner.doExecute (EmbeddedScanner.java:189)
10:45:43      at org.sonarsource.scanner.api.EmbeddedScanner.execute (EmbeddedScanner.java:138)
10:45:43      at org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute (ScannerBootstrapper.java:65)
10:45:43      at org.sonarsource.scanner.maven.SonarQubeMojo.execute (SonarQubeMojo.java:108)
10:45:43      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
10:45:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
10:45:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
10:45:43      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
10:45:43      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
10:45:43      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
10:45:43      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
10:45:43      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
10:45:43      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
10:45:43      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
10:45:43      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
10:45:43      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
10:45:43      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
10:45:43      at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
10:45:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
10:45:43      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
10:45:43      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
10:45:43      at java.lang.reflect.Method.invoke (Method.java:566)
10:45:43      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
10:45:43      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
10:45:43      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
10:45:43      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
10:45:43  [ERROR] 
10:45:43  [ERROR] 
10:45:43  [ERROR] For more information about the errors and possible solutions, please read the following articles:
10:45:43  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Hi,

Thanks for the full stacktrace. I’ve referred this to someone more expert in the domain.

 
Ann

Hi,

It could be caused by SonarQube’s index being corrupted.
Could you follow the procedure here to force SonarQube to re-index the data?

1 Like

That was the issue . Now fixed thanks for the help

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