-
Notifications
You must be signed in to change notification settings - Fork 105
java.lang.NullPointerException after upgrade to Sonar v5.6 and plugin v0.96 #74
Comments
Could be caused by some permission issue. Take a look at this thread for details, maybe it helps |
It could be related to permissions as some guys pointe in a similar thread. But if you have a project with 0 Issues, the NullPointerException will be rised @Pablissimo add this test case to TsLintParserTest.Java file
|
Quality, thanks @bootrider |
Hi, I've installed v0.98 and this now appears to be resolved. Thanks |
Hi team.. I have configured the sonar-project file so that it could be use the .jsx file:
sonar qube server 5.6.6
|
@navinprasadk your error is not from the TS plugin. |
@nixel2007 I installed eslint for checking .jsx files version is Without eslint plugin , Is there any possibilities to check the .jsx files or not? |
@navinprasadk this plugin (sonar-typescript-plugin) only analyzes the typescript files. |
No support for .jsx, though .tsx is supported in theory (though haven't tried it in so long). |
Hi,
I've upgraded to Sonar v5.6 and I'm now using v0.96 of the plugin, this was from v5.1 and v0.90. With the old setup I was able to use the plugin, but now I'm getting the following exception. Nothing has changed in my source code or sonar-project.properties file after the upgrade.
Do you have any ideas as to why this might be happening?
.... .... .... 11:19:12.676 INFO: 136/136 files analyzed 11:19:12.676 INFO: Sensor SCM Sensor (wrapped) (done) | time=2000ms 11:19:12.676 INFO: Sensor Linting sensor for TypeScript files (wrapped) 11:19:12.676 DEBUG: Path sonar.ts.tslintpath not specified, falling back to node_modules/tslint/bin/tslint 11:19:12.676 DEBUG: Found sonar.ts.tslintconfigpath Lint path to be 'tslint.json' 11:19:12.676 DEBUG: Path sonar.ts.tslintrulesdir not specified, falling back to null 11:19:12.676 DEBUG: Using a temporary path for TsLint output: C:\git\XXX\WebComponents\.sonar\.sonartmp\4237565016734021207.tmp 11:19:12.676 DEBUG: Split 134 files into 4 batches for processing 11:19:12.676 DEBUG: Executing TsLint with command: node .... 11:19:16.005 DEBUG: Executing TsLint with command: node .... 11:19:19.363 DEBUG: Executing TsLint with command: node .... 11:19:22.379 DEBUG: Executing TsLint with command: node .... 11:19:23.692 INFO: ------------------------------------------------------------------------ 11:19:23.692 INFO: EXECUTION FAILURE 11:19:23.692 INFO: ------------------------------------------------------------------------ 11:19:23.692 INFO: Total time: 16.313s 11:19:23.739 INFO: Final Memory: 42M/106M 11:19:23.739 INFO: ------------------------------------------------------------------------ 11:19:23.739 ERROR: Error during SonarQube Scanner execution 12:10:50.163 ERROR: Error during SonarQube Scanner execution java.lang.NullPointerException at com.pablissimo.sonar.TsLintParserImpl.parse(TsLintParserImpl.java:26) at com.pablissimo.sonar.TsLintSensor.execute(TsLintSensor.java:104) at org.sonar.batch.sensor.SensorWrapper.analyse(SensorWrapper.java:57) at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:58) at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:50) at org.sonar.batch.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:83) at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:192) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127) at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:241) at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:236) at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:226) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127) at org.sonar.batch.task.ScanTask.execute(ScanTask.java:47) at org.sonar.batch.task.TaskContainer.doAfterStart(TaskContainer.java:86) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127) at org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:106) at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:119) at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:62) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60) at com.sun.proxy.$Proxy0.execute(Unknown Source) at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:233) at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151) at org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:110) at org.sonarsource.scanner.cli.Main.execute(Main.java:74) at org.sonarsource.scanner.cli.Main.main(Main.java:61)
The text was updated successfully, but these errors were encountered: