Fail to parse entry in bootstrap index when scanning

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • Developer Edition Version 8.7 (build 41497) upgraded from 8.4.1 Community Edition
  • SonarScanner 4.6.0.2311 Generic for Windows
    -SonarQube Server URL: http://ws2016:9000
  • what are you trying to achieve
  • Trying to scan two PL\SQL files (.sql) with the generic scanner
  • sonar-project.properties
    • sonar.projectKey=SQL_Index_Optimization
    • sonar.language=plsql
  • what have you tried so far to achieve this
  • Tried scanning locally and on the SonarQube host server but I receive the error below.
  • Tried default configs and variations
C:\Temp\SQLIndexOptimize>sonar-scanner.bat -D"sonar.projectKey=SQL_Index_Optimization" -D"sonar.sources=." -D"sonar.host.url=http://ws2016:9000" -D"sonar.login=6d1b6cf847233d7b7e44066836642148dd00a224" -X
11:03:03.559 INFO: Scanner configuration file: C:\Temp\sonar-scanner-cli-4.6.0.2
311-windows\sonar-scanner-4.6.0.2311-windows\bin\..\conf\sonar-scanner.properties
11:03:03.559 INFO: Project root configuration file: C:\Temp\SQLIndexOptimize\sonar-project.properties
11:03:03.590 INFO: SonarScanner 4.6.0.2311
11:03:03.606 INFO: Java 11.0.3 AdoptOpenJDK (64-bit)
11:03:03.606 INFO: Windows Server 2012 R2 6.3 amd64
11:03:03.747 DEBUG: keyStore is :
11:03:03.747 DEBUG: keyStore type is : pkcs12
11:03:03.747 DEBUG: keyStore provider is :
11:03:03.747 DEBUG: init keystore
11:03:03.747 DEBUG: init keymanager of type SunX509
11:03:03.919 DEBUG: Create: C:\Users\stiede\.sonar\cache
11:03:03.919 INFO: User cache: C:\Users\stiede\.sonar\cache
11:03:03.919 DEBUG: Create: C:\Users\stiede\.sonar\cache\_tmp
11:03:03.919 DEBUG: Extract sonar-scanner-api-batch in temp...
11:03:03.919 DEBUG: Get bootstrap index...
11:03:03.919 DEBUG: Download: http://ws2016:9000/batch/index
11:03:03.981 DEBUG: Get bootstrap completed
11:03:03.981 INFO: -------------------------------------------------------------
-----------
11:03:03.981 INFO: EXECUTION FAILURE
11:03:03.981 INFO: -------------------------------------------------------------
-----------
11:03:03.997 INFO: Total time: 0.469s
11:03:04.012 INFO: Final Memory: 3M/54M
11:03:04.012 INFO: -------------------------------------------------------------
-----------
11:03:04.012 ERROR: Error during SonarScanner execution
org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarSc
anner analysis
        at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$c
reateLauncher$0(IsolatedLauncherFactory.java:85)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLa
uncher(IsolatedLauncherFactory.java:74)
        at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLa
uncher(IsolatedLauncherFactory.java:70)
        at org.sonarsource.scanner.api.EmbeddedScanner.doStart(EmbeddedScanner.j
ava:185)
        at org.sonarsource.scanner.api.EmbeddedScanner.start(EmbeddedScanner.jav
a:123)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:73)
        at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: java.lang.IllegalStateException: Fail to parse entry in bootstrap ind
ex:
        at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.parse(B
ootstrapIndexDownloader.java:59)
        at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.getInde
x(BootstrapIndexDownloader.java:44)
        at org.sonarsource.scanner.api.internal.JarDownloader.getScannerEngineFi
les(JarDownloader.java:58)
        at org.sonarsource.scanner.api.internal.JarDownloader.download(JarDownlo
ader.java:53)
        at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$c
reateLauncher$0(IsolatedLauncherFactory.java:76)
        ... 7 more

Instructions

Output

The url http://ws2016:9000/batch/index returns nothing.

Hi,

Welcome to the community!

That’s where you need to start your debugging. What should be returned is server version and edition. At a guess, there’s something on the network blocking the request.

 
HTH,
Ann

I have resolved the issue. The install folder structure was messed up.

1 Like

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