You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I found a situation in which an exception interrupts the startup of the application, the SpringApplication class tries to log the error, but it doesn't get written, since the SLF4JBridgeHandler handler was already removed from the root logger.
I reported the issue to the Spring boot project (spring-projects/spring-boot#14979) but I was redirected here.
I found at least 2 cases when this is happening for me:
I have a spring cloud application that tries to decrypt secrets from the yaml files by using aws-kms. If the KMS client is not able to contact the service, it throws an exception:
Cannot decrypt: key=oauth2.clientSecret
Caused by com.amazonaws.services.kms.model.AWSKMSException: The security token included in the request is expired (Service: AWSKMS; Status Code: 400; Error Code: ExpiredTokenException; Request ID: 5033cffe-34a0-4118-986c-8e11aba3b5d3)
A similar thing happens when the secret starts with {cipher} but the value is not wrapped with quotes.
Hi, I found a situation in which an exception interrupts the startup of the application, the
SpringApplication
class tries to log the error, but it doesn't get written, since the SLF4JBridgeHandler handler was already removed from the root logger.I reported the issue to the Spring boot project (spring-projects/spring-boot#14979) but I was redirected here.
I found at least 2 cases when this is happening for me:
I have a spring cloud application that tries to decrypt secrets from the yaml files by using aws-kms. If the KMS client is not able to contact the service, it throws an exception:
A similar thing happens when the secret starts with
{cipher}
but the value is not wrapped with quotes.In both cases, the exception is captured by SpringApplication, which tries to log it (https://github.com/spring-projects/spring-boot/blob/master/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java#L858), but some lines before, the ApplicationFailedEvent was triggered (https://github.com/spring-projects/spring-boot/blob/master/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java#L828). And one of the listeners triggers a call to org.springframework.cloud.bootstrap.LoggingSystemShutdownListener, that removes the SLF4JBridgeHandler from the root Logger.
I am using version 2.0.0 of spring-cloud and 2.0.3 of spring-boot.
The text was updated successfully, but these errors were encountered: