Sonar scanning failing due to below error

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.sonarsource.scanner.lib.internal.IsolatedClassloader@531f4093-org.sonar.scanner.bootstrap.ScannerPluginRepository’: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.sonarsource.scanner.lib.internal.IsolatedClassloader@531f4093-org.sonar.scanner.bootstrap.ScannerPluginInstaller’: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.sonarsource.scanner.lib.internal.IsolatedClassloader@531f4093-org.sonar.scanner.bootstrap.PluginFiles’: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘GlobalConfiguration’ defined in org.sonar.scanner.bootstrap.GlobalConfigurationProvider: Unsatisfied dependency expressed through method ‘provide’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘GlobalServerSettings’ defined in org.sonar.scanner.bootstrap.GlobalServerSettingsProvider: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.sonar.scanner.bootstrap.GlobalServerSettings]: Factory method ‘provide’ threw exception; nested exception is java.lang.IllegalStateException: Fail to request url: https://sonarqube.xxxxx/api/settings/values.protobuf

Hi,

Welcome to the community!

FYI, we don’t consider just dumping an error message to be a good report.

Here’s your problem:

Talk to your network folks.

 
HTH,
Ann

Hi,

Great! So analysis succeeds now?

 
Ann

Hi,

I don’t know what to tell you. The error is pretty clear. SonarScanner / your build agent needs to be able to talk to the SonarQube server. That basic communication is a prerequisite for analysis, and not something we can diagnose here.

You need to figure out why that’s not happening.

 
Ann

Hi,

There’s no need. As-is, it may help others in the future.

 
Ann

Hi,

No problem. I’ve edited the thread to redact the domain name.

 
Ann

Thank you

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