Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: BUILD-STABILITY-1.1.2
-
Fix Version/s: None
-
Component/s: Build Stability
-
Labels:None
-
Number of attachments :
Description
Publishing PHP code with JavaRunner (without pom.xml) leads to the following exception :
Exception in thread "main" org.sonar.batch.bootstrapper.BootstrapException: java.lang.NullPointerException at org.sonar.runner.Runner.delegateExecution(Runner.java:155) at org.sonar.runner.Runner.execute(Runner.java:58) at org.sonar.runner.Main.main(Main.java:52) Caused by: java.lang.NullPointerException at org.sonar.plugins.buildstability.BuildStabilitySensor.getCiUrl(BuildStabilitySensor.java:60) at org.sonar.plugins.buildstability.BuildStabilitySensor.shouldExecuteOnProject(BuildStabilitySensor.java:51) at org.sonar.api.batch.BatchExtensionDictionnary.shouldKeep(BatchExtensionDictionnary.java:109) at org.sonar.api.batch.BatchExtensionDictionnary.getFilteredExtensions(BatchExtensionDictionnary.java:99) at org.sonar.api.batch.BatchExtensionDictionnary.select(BatchExtensionDictionnary.java:57) at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:57) at org.sonar.batch.phases.Phases.execute(Phases.java:93) at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143) at org.sonar.batch.bootstrap.Module.start(Module.java:83) at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:111) at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:101) at org.sonar.batch.bootstrap.Module.start(Module.java:83) at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:102) at org.sonar.batch.bootstrap.Module.start(Module.java:83) at org.sonar.batch.Batch.execute(Batch.java:100) at org.sonar.runner.Launcher.executeBatch(Launcher.java:60) at org.sonar.runner.Launcher.execute(Launcher.java:53) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.sonar.runner.Runner.delegateExecution(Runner.java:152) ... 2 more
The current workaround I've found is to set the property to an not null value like '-' on the JavaRunner parameters :
sonar.build-stability.url=-
Currently the version installed is 1.1.2-SNAPSHOT.
Issue Links
- duplicates
-
SONARPLUGINS-1739
When using the standalone Sonar runner, we get a NullPointerException during the Sonar analysis
-