You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to set up the ansible plugin on a new install of SonarQube. I've probably done something childishly stupid, but on the first repo we attempted to run it against, we get a ArrayIndexOutOfBoundsException when attempting to analyse one of the playbooks:
Getting the below error during a run on sonar scanner executed as a github action.
2022-09-05T23:18:20.9438556Z 23:18:20.943 DEBUG: Analyzing file: test_emails.yaml
2022-09-05T23:18:20.9637788Z 23:18:20.963 INFO: ------------------------------------------------------------------------
2022-09-05T23:18:20.9639151Z 23:18:20.963 INFO: EXECUTION FAILURE
2022-09-05T23:18:20.9641889Z 23:18:20.963 INFO: ------------------------------------------------------------------------
2022-09-05T23:18:20.9645686Z 23:18:20.964 INFO: Total time: 36.965s
2022-09-05T23:18:21.0742959Z 23:18:21.073 INFO: Final Memory: 33M/117M
2022-09-05T23:18:21.0745377Z 23:18:21.074 INFO: ------------------------------------------------------------------------
2022-09-05T23:18:21.0747002Z 23:18:21.074 ERROR: Error during SonarScanner execution
2022-09-05T23:18:21.0754638Z java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 1024
2022-09-05T23:18:21.0819024Z at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:136)
2022-09-05T23:18:21.0819763Z at org.yaml.snakeyaml.scanner.ScannerImpl.scanToNextToken(ScannerImpl.java:1222)
2022-09-05T23:18:21.0820400Z at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:308)
2022-09-05T23:18:21.0821047Z at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:248)
2022-09-05T23:18:21.0821675Z at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:634)
2022-09-05T23:18:21.0822271Z at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:165)
2022-09-05T23:18:21.0822771Z at org.yaml.snakeyaml.Yaml$3.hasNext(Yaml.java:677)
2022-09-05T23:18:21.0823183Z at java.base/java.lang.Iterable.forEach(Iterable.java:74)
2022-09-05T23:18:21.0823679Z at com.github.sbaudoin.yamllint.Linter.getSyntaxError(Linter.java:378)
2022-09-05T23:18:21.0824246Z at com.github.sbaudoin.yamllint.Linter.getSyntaxError(Linter.java:365)
2022-09-05T23:18:21.0824877Z at com.github.sbaudoin.sonar.plugins.yaml.checks.YamlSourceCode.<init>(YamlSourceCode.java:56)
2022-09-05T23:18:21.0825591Z at com.github.sbaudoin.sonar.plugins.yaml.rules.YamlSensor.execute(YamlSensor.java:111)
2022-09-05T23:18:21.0826280Z at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:64)
2022-09-05T23:18:21.0826962Z at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:88)
2022-09-05T23:18:21.0827648Z at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:61)
2022-09-05T23:18:21.0833924Z at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:79)
2022-09-05T23:18:21.0834665Z at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:61)
2022-09-05T23:18:21.0835419Z at org.sonar.scanner.scan.SpringModuleScanContainer.doAfterStart(SpringModuleScanContainer.java:81)
2022-09-05T23:18:21.0836217Z at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
2022-09-05T23:18:21.0836961Z at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
2022-09-05T23:18:21.0837678Z at org.sonar.scanner.scan.SpringProjectScanContainer.scan(SpringProjectScanContainer.java:396)
2022-09-05T23:18:21.0838464Z at org.sonar.scanner.scan.SpringProjectScanContainer.scanRecursively(SpringProjectScanContainer.java:392)
2022-09-05T23:18:21.0839283Z at org.sonar.scanner.scan.SpringProjectScanContainer.doAfterStart(SpringProjectScanContainer.java:361)
2022-09-05T23:18:21.0840091Z at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
2022-09-05T23:18:21.0840852Z at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
2022-09-05T23:18:21.0841806Z at org.sonar.scanner.bootstrap.SpringGlobalContainer.doAfterStart(SpringGlobalContainer.java:135)
2022-09-05T23:18:21.0842584Z at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
2022-09-05T23:18:21.0843342Z at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
2022-09-05T23:18:21.0843955Z at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
2022-09-05T23:18:21.0844454Z at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
2022-09-05T23:18:21.0845134Z at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
2022-09-05T23:18:21.0845969Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2022-09-05T23:18:21.0846645Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2022-09-05T23:18:21.0847394Z at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2022-09-05T23:18:21.0848012Z at java.base/java.lang.reflect.Method.invoke(Method.java:566)
2022-09-05T23:18:21.0848636Z at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
2022-09-05T23:18:21.0849207Z at com.sun.proxy.$Proxy0.execute(Unknown Source)
2022-09-05T23:18:21.0849729Z at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
2022-09-05T23:18:21.0850368Z at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
2022-09-05T23:18:21.0850917Z at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
2022-09-05T23:18:21.0851371Z at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
2022-09-05T23:18:21.0851823Z at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Included below is the command line that was used to execute the scanner in case that's of use:
Hi there,
I'm trying to set up the ansible plugin on a new install of SonarQube. I've probably done something childishly stupid, but on the first repo we attempted to run it against, we get a ArrayIndexOutOfBoundsException when attempting to analyse one of the playbooks:
Getting the below error during a run on sonar scanner executed as a github action.
Included below is the command line that was used to execute the scanner in case that's of use:
The text was updated successfully, but these errors were encountered: