Error during SonarQube Scanner execution: NullPointerException

sonarqube

(Mimi) #1

Hello,
Can anyone please help with the below error.The error is encountering while executing Jenkins job.

Kindly suggest.

13:03:12 ERROR: Error during SonarQube Scanner execution
13:03:12 java.lang.NullPointerException
13:03:12 	at org.sonar.api.rules.ActiveRule.setParameter(ActiveRule.java:173)
13:03:12 	at org.sonar.batch.rule.RulesProfileProvider.select(RulesProfileProvider.java:84)
13:03:12 	at org.sonar.batch.rule.RulesProfileProvider.loadProfiles(RulesProfileProvider.java:70)
13:03:12 	at org.sonar.batch.rule.RulesProfileProvider.provide(RulesProfileProvider.java:52)
13:03:12 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13:03:12 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
13:03:12 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
13:03:12 	at java.lang.reflect.Method.invoke(Method.java:606)
13:03:12 	at org.picocontainer.injectors.MethodInjector.invokeMethod(MethodInjector.java:129)
13:03:12 	at org.picocontainer.injectors.MethodInjector.access$000(MethodInjector.java:39)
13:03:12 	at org.picocontainer.injectors.MethodInjector$2.run(MethodInjector.java:113)
13:03:12 	at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
13:03:12 	at org.picocontainer.injectors.MethodInjector.decorateComponentInstance(MethodInjector.java:120)
13:03:12 	at org.picocontainer.injectors.CompositeInjector.decorateComponentInstance(CompositeInjector.java:58)
13:03:12 	at org.picocontainer.injectors.Reinjector.reinject(Reinjector.java:142)
13:03:12 	at org.picocontainer.injectors.ProviderAdapter.getComponentInstance(ProviderAdapter.java:96)
13:03:12 	at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:698)
13:03:12 	at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:646)
13:03:12 	at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:631)
13:03:12 	at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)
13:03:12 	at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)
13:03:12 	at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)
13:03:12 	at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)
13:03:12 	at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)
13:03:12 	at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
13:03:12 	at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
13:03:12 	at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
13:03:12 	at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
13:03:12 	at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
13:03:12 	at org.picocontainer.DefaultPicoContainer.instantiateComponentAsIsStartable(DefaultPicoContainer.java:1033)
13:03:12 	at org.picocontainer.DefaultPicoContainer.addAdapterIfStartable(DefaultPicoContainer.java:1025)
13:03:12 	at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1002)
13:03:12 	at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:766)
13:03:12 	at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
13:03:12 	at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:78)
13:03:12 	at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:235)
13:03:12 	at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:230)
13:03:12 	at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:223)
13:03:12 	at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:93)
13:03:12 	at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:78)
13:03:12 	at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:65)
13:03:12 	at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:52)
13:03:12 	at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:128)
13:03:12 	at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:93)
13:03:12 	at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:78)
13:03:12 	at org.sonar.batch.bootstrap.BootstrapContainer.executeTask(BootstrapContainer.java:171)
13:03:12 	at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:95)
13:03:12 	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:67)
13:03:12 	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.executeOldVersion(BatchIsolatedLauncher.java:70)
13:03:12 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13:03:12 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
13:03:12 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
13:03:12 	at java.lang.reflect.Method.invoke(Method.java:606)
13:03:12 	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
13:03:12 	at com.sun.proxy.$Proxy0.executeOldVersion(Unknown Source)
13:03:12 	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:245)
13:03:12 	at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)
13:03:12 	at org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:110)
13:03:12 	at org.sonarsource.scanner.cli.Main.execute(Main.java:72)
13:03:12 	at org.sonarsource.scanner.cli.Main.main(Main.java:60)
13:03:12 ERROR: 
13:03:12 ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
13:03:12 Build step 'Execute SonarQube Scanner' marked build as failure
13:03:12 Archiving artifacts
13:03:12 Collecting checkstyle analysis files...
13:03:12 [CHECKSTYLE] Finding all files that match the pattern reports/lint/**.xml, reports/html/**.xml
13:03:12 Computing warning deltas based on reference build #360
13:03:12 Ignore new warnings since this is the first valid build
13:03:12 Plug-in Result: Success - no threshold has been exceeded
13:03:12 Skipping Cobertura coverage report as build was not UNSTABLE or better ...
13:03:12 Recording test results
13:03:12 ERROR: Step ?Publish JUnit test result report? failed: No test report files were found. Configuration error?

Thanks.