Sonaqube Analysis failing with below Error with TFS issue After Upgrading JAVA to version 1.8.0_271

Must-share information (formatted with Markdown):
SonarQube Version-7.9.2
TFS-Azure DevOps(2019)
Need your help to Resolve the issue at the earliest

*2021-02-10T02:17:04.7332523Z ##[error]ERROR: Error during SonarScanner execution
2021-02-10T02:17:04.7332523Z ERROR: Error during SonarScanner execution
2021-02-10T02:17:04.7332523Z ##[error]org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarScanner analysis
2021-02-10T02:17:04.7332523Z org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarScanner analysis
2021-02-10T02:17:04.7332523Z ##[error]at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:85)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:85)
2021-02-10T02:17:04.7332523Z ##[error]at java.security.AccessController.doPrivileged(Native Method)
2021-02-10T02:17:04.7332523Z 	at java.security.AccessController.doPrivileged(Native Method)
2021-02-10T02:17:04.7332523Z ##[error]at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:74)
	at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:70)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:74)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:70)
2021-02-10T02:17:04.7332523Z ##[error]at org.sonarsource.scanner.api.EmbeddedScanner.doStart(EmbeddedScanner.java:185)
	at org.sonarsource.scanner.api.EmbeddedScanner.start(EmbeddedScanner.java:123)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.EmbeddedScanner.doStart(EmbeddedScanner.java:185)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.EmbeddedScanner.start(EmbeddedScanner.java:123)
2021-02-10T02:17:04.7332523Z ##[error]at org.sonarsource.scanner.cli.Main.execute(Main.java:73)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.cli.Main.execute(Main.java:73)
2021-02-10T02:17:04.7332523Z ##[error]at org.sonarsource.scanner.cli.Main.main(Main.java:61)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.cli.Main.main(Main.java:61)
2021-02-10T02:17:04.7332523Z ##[error]Caused by: java.lang.IllegalStateException: Fail to get bootstrap index from server
2021-02-10T02:17:04.7332523Z Caused by: java.lang.IllegalStateException: Fail to get bootstrap index from server
2021-02-10T02:17:04.7332523Z ##[error]at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.getIndex(BootstrapIndexDownloader.java:42)
	at org.sonarsource.scanner.api.internal.JarDownloader.getScannerEngineFiles(JarDownloader.java:58)
	at org.sonarsource.scanner.api.internal.JarDownloader.download(JarDownloader.java:53)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.getIndex(BootstrapIndexDownloader.java:42)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.JarDownloader.getScannerEngineFiles(JarDownloader.java:58)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.JarDownloader.download(JarDownloader.java:53)
2021-02-10T02:17:04.7332523Z ##[error]at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:76)
	... 7 more
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:76)
2021-02-10T02:17:04.7332523Z 	... 7 more
2021-02-10T02:17:04.7332523Z ##[error]Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
2021-02-10T02:17:04.7332523Z Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
2021-02-10T02:17:04.7332523Z ##[error]at sun.security.ssl.Alert.createSSLException(Unknown Source)
	at sun.security.ssl.TransportContext.fatal(Unknown Source)
2021-02-10T02:17:04.7332523Z 	at sun.security.ssl.Alert.createSSLException(Unknown Source)
2021-02-10T02:17:04.7332523Z 	at sun.security.ssl.TransportContext.fatal(Unknown Source)
2021-02-10T02:17:04.7332523Z ##[error]at sun.security.ssl.TransportContext.fatal(Unknown Source)
	at sun.security.ssl.TransportContext.fatal(Unknown Source)
2021-02-10T02:17:04.7332523Z 	at sun.security.ssl.TransportContext.fatal(Unknown Source)
2021-02-10T02:17:04.7332523Z 	at sun.security.ssl.TransportContext.fatal(Unknown Source)
2021-02-10T02:17:04.7332523Z ##[error]at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(Unknown Source)
2021-02-10T02:17:04.7332523Z 	at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(Unknown Source)
2021-02-10T02:17:04.7332523Z ##[error]at sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate(Unknown Source)
	at sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume(Unknown Source)
2021-02-10T02:17:04.7332523Z 	at sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate(Unknown Source)
2021-02-10T02:17:04.7332523Z 	at sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume(Unknown Source)
2021-02-10T02:17:04.7332523Z ##[error]at sun.security.ssl.SSLHandshake.consume(Unknown Source)
	at sun.security.ssl.HandshakeContext.dispatch(Unknown Source)
2021-02-10T02:17:04.7332523Z 	at sun.security.ssl.SSLHandshake.consume(Unknown Source)
2021-02-10T02:17:04.7332523Z 	at sun.security.ssl.HandshakeContext.dispatch(Unknown Source)
2021-02-10T02:17:04.7332523Z ##[error]at sun.security.ssl.HandshakeContext.dispatch(Unknown Source)
	at sun.security.ssl.TransportContext.dispatch(Unknown Source)
	at sun.security.ssl.SSLTransport.decode(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.decode(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.RealConnection.connectTls(RealConnection.java:336)
	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.RealConnection.establishProtocol(RealConnection.java:300)
	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.RealConnection.connect(RealConnection.java:185)
	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.java:224)
	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.java:108)
	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.ExchangeFinder.find(ExchangeFinder.java:88)
	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.Transmitter.newExchange(Transmitter.java:169)
	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:41)
	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94)
	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:88)
	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
	at org.sonarsource.scanner.api.internal.shaded.okhttp.RealCall.getResponseWithInterceptorChain(RealCall.java:221)
	at org.sonarsource.scanner.api.internal.shaded.okhttp.RealCall.execute(RealCall.java:81)
	at org.sonarsource.scanner.api.internal.ServerConnection.callUrl(ServerConnection.java:114)
	at org.sonarsource.scanner.api.internal.ServerConnection.downloadString(ServerConnection.java:99)
	at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.getIndex(BootstrapIndexDownloader.java:39)
	... 10 more
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
	at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
	at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
	at sun.security.validator.Validator.validate(Unknown Source)
	at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
	at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
	at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
	... 45 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
	at sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source)
	at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
	at java.security.cert.CertPathBuilder.build(Unknown Source)
	... 51 more
ERROR:
2021-02-10T02:17:04.7332523Z 	at sun.security.ssl.HandshakeContext.dispatch(Unknown Source)
2021-02-10T02:17:04.7332523Z 	at sun.security.ssl.TransportContext.dispatch(Unknown Source)
2021-02-10T02:17:04.7332523Z 	at sun.security.ssl.SSLTransport.decode(Unknown Source)
2021-02-10T02:17:04.7332523Z 	at sun.security.ssl.SSLSocketImpl.decode(Unknown Source)
2021-02-10T02:17:04.7332523Z 	at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source)
2021-02-10T02:17:04.7332523Z 	at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
2021-02-10T02:17:04.7332523Z 	at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.RealConnection.connectTls(RealConnection.java:336)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.RealConnection.establishProtocol(RealConnection.java:300)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.RealConnection.connect(RealConnection.java:185)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.java:224)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.java:108)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.ExchangeFinder.find(ExchangeFinder.java:88)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.Transmitter.newExchange(Transmitter.java:169)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:41)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:88)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.RealCall.getResponseWithInterceptorChain(RealCall.java:221)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.shaded.okhttp.RealCall.execute(RealCall.java:81)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.ServerConnection.callUrl(ServerConnection.java:114)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.ServerConnection.downloadString(ServerConnection.java:99)
2021-02-10T02:17:04.7332523Z 	at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.getIndex(BootstrapIndexDownloader.java:39)
2021-02-10T02:17:04.7332523Z 	... 10 more
2021-02-10T02:17:04.7488533Z Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
2021-02-10T02:17:04.7488533Z 	at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
2021-02-10T02:17:04.7488533Z 	at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
2021-02-10T02:17:04.7488533Z 	at sun.security.validator.Validator.validate(Unknown Source)
2021-02-10T02:17:04.7488533Z 	at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
2021-02-10T02:17:04.7488533Z 	at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
2021-02-10T02:17:04.7488533Z 	at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
2021-02-10T02:17:04.7488533Z 	... 45 more
2021-02-10T02:17:04.7488533Z Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
2021-02-10T02:17:04.7488533Z 	at sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source)
2021-02-10T02:17:04.7488533Z 	at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
2021-02-10T02:17:04.7488533Z 	at java.security.cert.CertPathBuilder.build(Unknown Source)
2021-02-10T02:17:04.7488533Z 	... 51 more
2021-02-10T02:17:04.7488533Z ERROR: 
2021-02-10T02:17:04.7800528Z ##[error]The SonarScanner did not complete successfully
2021-02-10T02:17:04.7956572Z The SonarScanner did not complete successfully
2021-02-10T02:17:04.7956572Z ##[error]03:17:04.78  Post-processing failed. Exit code: 1
2021-02-10T02:17:04.7956572Z 03:17:04.78  Post-processing failed. Exit code: 1
2021-02-10T02:17:04.8268642Z ##[error]The process 'D:\TB\Ecom_Build_3\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.17.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1
2021-02-10T02:17:04.8268642Z ##[section]Finishing: Run Code Analysis

Hi,

Welcome to the community!

I guess you’ve set up SSL, so you need to tell your upgraded Java where to look for the certificate. There’s a pointer in the docs.

 
HTH,
Ann