Skip to content

Instantly share code, notes, and snippets.

@spencergibb
Created March 14, 2019 19:35
Show Gist options
  • Save spencergibb/222fbd3422a67feff6105a8d1795c130 to your computer and use it in GitHub Desktop.
Save spencergibb/222fbd3422a67feff6105a8d1795c130 to your computer and use it in GitHub Desktop.
GCP Errors
org.springframework.cloud.gcp.autoconfigure.config.GcpConfigBootstrapConfigurationTest.testConfigurationValuesAreCorrectlyLoaded
Failing for the past 11 builds (Since Failed#924 )
Took 22 ms.
add description
Error Message
Unstarted application context org.springframework.boot.test.context.assertj.AssertableApplicationContext[startupFailure=org.springframework.beans.factory.BeanCreationException] failed to start
Stacktrace
java.lang.IllegalStateException: Unstarted application context org.springframework.boot.test.context.assertj.AssertableApplicationContext[startupFailure=org.springframework.beans.factory.BeanCreationException] failed to start
at org.springframework.cloud.gcp.autoconfigure.config.GcpConfigBootstrapConfigurationTest.lambda$testConfigurationValuesAreCorrectlyLoaded$1(GcpConfigBootstrapConfigurationTest.java:60)
at org.springframework.cloud.gcp.autoconfigure.config.GcpConfigBootstrapConfigurationTest.testConfigurationValuesAreCorrectlyLoaded(GcpConfigBootstrapConfigurationTest.java:59)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'googleConfigPropertySourceLocator' defined in org.springframework.cloud.gcp.autoconfigure.config.GcpConfigBootstrapConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.gcp.autoconfigure.config.GoogleConfigPropertySourceLocator]: Factory method 'googleConfigPropertySourceLocator' threw exception; nested exception is java.io.IOException: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
at org.springframework.cloud.gcp.autoconfigure.config.GcpConfigBootstrapConfigurationTest.testConfigurationValuesAreCorrectlyLoaded(GcpConfigBootstrapConfigurationTest.java:59)
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.gcp.autoconfigure.config.GoogleConfigPropertySourceLocator]: Factory method 'googleConfigPropertySourceLocator' threw exception; nested exception is java.io.IOException: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
at org.springframework.cloud.gcp.autoconfigure.config.GcpConfigBootstrapConfigurationTest.testConfigurationValuesAreCorrectlyLoaded(GcpConfigBootstrapConfigurationTest.java:59)
Caused by: java.io.IOException: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
at org.springframework.cloud.gcp.autoconfigure.config.GcpConfigBootstrapConfigurationTest.testConfigurationValuesAreCorrectlyLoaded(GcpConfigBootstrapConfigurationTest.java:59)
Standard Output
2019-03-14 18:56:44.314 [main] WARN o.s.c.g.c.DefaultCredentialsProvider - No core credentials are set. Service-specific credentials (e.g., spring.cloud.gcp.pubsub.credentials.*) should be used if your app uses services that require credentials.
Page generated: Mar 14, 2019 7:34:29 PM UTCREST APIJenkins ver. 2.162
org.springframework.cloud.gcp.autoconfigure.config.GcpConfigBootstrapConfigurationTest.testConfigurationValueDefaultsAreAsExpected
Failing for the past 11 builds (Since Failed#924 )
Took 5 ms.
add description
Error Message
Unstarted application context org.springframework.boot.test.context.assertj.AssertableApplicationContext[startupFailure=org.springframework.beans.factory.BeanCreationException] failed to start
Stacktrace
java.lang.IllegalStateException: Unstarted application context org.springframework.boot.test.context.assertj.AssertableApplicationContext[startupFailure=org.springframework.beans.factory.BeanCreationException] failed to start
at org.springframework.cloud.gcp.autoconfigure.config.GcpConfigBootstrapConfigurationTest.lambda$testConfigurationValueDefaultsAreAsExpected$0(GcpConfigBootstrapConfigurationTest.java:44)
at org.springframework.cloud.gcp.autoconfigure.config.GcpConfigBootstrapConfigurationTest.testConfigurationValueDefaultsAreAsExpected(GcpConfigBootstrapConfigurationTest.java:43)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'googleConfigPropertySourceLocator' defined in org.springframework.cloud.gcp.autoconfigure.config.GcpConfigBootstrapConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.gcp.autoconfigure.config.GoogleConfigPropertySourceLocator]: Factory method 'googleConfigPropertySourceLocator' threw exception; nested exception is java.io.IOException: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
at org.springframework.cloud.gcp.autoconfigure.config.GcpConfigBootstrapConfigurationTest.testConfigurationValueDefaultsAreAsExpected(GcpConfigBootstrapConfigurationTest.java:43)
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.gcp.autoconfigure.config.GoogleConfigPropertySourceLocator]: Factory method 'googleConfigPropertySourceLocator' threw exception; nested exception is java.io.IOException: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
at org.springframework.cloud.gcp.autoconfigure.config.GcpConfigBootstrapConfigurationTest.testConfigurationValueDefaultsAreAsExpected(GcpConfigBootstrapConfigurationTest.java:43)
Caused by: java.io.IOException: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
at org.springframework.cloud.gcp.autoconfigure.config.GcpConfigBootstrapConfigurationTest.testConfigurationValueDefaultsAreAsExpected(GcpConfigBootstrapConfigurationTest.java:43)
Standard Output
2019-03-14 18:56:44.326 [main] WARN o.s.c.g.c.DefaultCredentialsProvider - No core credentials are set. Service-specific credentials (e.g., spring.cloud.gcp.pubsub.credentials.*) should be used if your app uses services that require credentials.
Page generated: Mar 14, 2019 7:35:08 PM UTCREST APIJenkins ver. 2.162
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment