There is a problem: Fail to parse entry in bootstrap index

I want to bulid a new project by using jenkins and sonarqube,but it is failure.Why? I am using java 1.8.0 version and jenkins 2.176.2 version and Scanner4.0,Sonarqube is installed on the sonar server.

E:\Git\bin\git.exe rev-list --no-walk 311786b164689d92bc5c109f408a558d6efef21e # timeout=10 [sonartest] $ E:\sonar-scanner-4.0.0.1744\bin\sonar-scanner.bat scan -X -Dsonar.host.url=http://10.64.32.84:9000/sonar ******** 
-Dsonar.language=java -Dsonar.projectName=sonartest -Dsonar.login=jiangfei -Dsonar.projectVersion=1.0 -Dsonar.password=admin -Dsonar.projectKey=sonartest -Dsonar.sources=C:/UsersAdministrator/.jenkinsworkspace/sonartest/tests/android_car_api_test/src/android/car/apitest -Dsonar.java.binaries=C:/Users/Administrator/.jenkins/workspace/sonartest/bin/classes -Dsonar.projectBaseDir=C:\Users\Administrator\.jenkins\workspace\sonartest
 13:31:25.480 INFO: Scanner configuration file: E:\sonar-scanner-4.0.0.1744\bin\..\conf\sonar-scanner.properties
 13:31:25.483 INFO: Project root configuration file: NONE
 13:31:25.501 INFO: SonarQube Scanner 4.0.0.1744 13:31:25.501 INFO: Java 1.8.0_111 Oracle Corporation (64-bit) 13:31:25.501 INFO: Windows 7 6.1 amd64
 13:31:25.619 DEBUG: keyStore is :
 13:31:25.619 DEBUG: keyStore type is : jks 13:31:25.619 DEBUG: keyStore provider is : 
13:31:25.619 DEBUG: init keystore 13:31:25.619 DEBUG: init keymanager of type SunX509
 13:31:25.823 DEBUG: Create: C:\Users\Administrator\.sonar\cache 13:31:25.824 INFO: User cache: C:\Users\Administrator\.sonar\cache
 13:31:25.824 DEBUG: Create: C:\Users\Administrator\.sonar\cache\_tmp
 13:31:25.827 DEBUG: Extract sonar-scanner-api-batch in temp... 13:31:25.831 DEBUG: Get bootstrap index... 
13:31:25.831 DEBUG: Download: http://10.64.32.84:9000/sonar/batch/index
 13:31:25.882 DEBUG: Get bootstrap completed
 13:31:25.882 INFO: ------------------------------------------------------------------------ 
13:31:25.882 INFO: EXECUTION FAILURE 
13:31:25.882 INFO: ------------------------------------------------------------------------ 
13:31:25.882 INFO: Total time: 0.425s 13:31:25.900 INFO: Final Memory: 4M/123M
 13:31:25.901 INFO: ------------------------------------------------------------------------
 13:31:25.901 ERROR: Error during SonarQube Scanner execution org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarQube
 at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:85) at java.security.AccessController.doPrivileged(Native Method)
 at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:74)
 at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:70) 
at org.sonarsource.scanner.api.EmbeddedScanner.doStart(EmbeddedScanner.java:181) 
at org.sonarsource.scanner.api.EmbeddedScanner.start(EmbeddedScanner.java:122)
 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 index:
 at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.parse(BootstrapIndexDownloader.java:59) 
at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.getIndex(BootstrapIndexDownloader.java:44) 
at org.sonarsource.scanner.api.internal.JarDownloader.getScannerEngineFiles(JarDownloader.java:58)
 at org.sonarsource.scanner.api.internal.JarDownloader.download(JarDownloader.java:53)
 at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:76) ... 
7 more
 WARN: Unable to locate 'report-task.txt' in the workspace. Did the SonarScanner succedeed?
 ERROR: SonarQube scanner exited with non-zero code: 1
 Finished: FAILURE

Hi,

What do you get when you point your browser to this address?:

I’m guessing that instead of something like this:
scanner-datacenter-8.0.0.28234-all.jar|a3c8760480632f17a95c3c18d4e0dccd

you’re actually getting an HTML error page (perhaps a 404), and that your server address configuration (at the Jenkins global level) is off.

 
HTH,
Ann

Yeah,you are right.And now, it is successful, thanks.

1 Like