aws/aws-secretsmanager-jdbc

AWS Secrets Manager Postgress SQL Driver not working in springboot

salman-shezad opened this issue · 2 comments

Error creating bean with name 'dataSourceScriptDatabaseInitializer' defined in class path resource [org/springframework/boot/autoconfigure/sql/init/DataSourceInitializationConfiguration.class]: Unsatisfied dependency expressed through method 'dataSourceScriptDatabaseInitializer' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.NoClassDefFoundError: com/amazonaws/transform/EnhancedJsonErrorUnmarshaller

com.amazonaws.secretsmanager aws-secretsmanager-jdbc 1.0.7

https://github.com/aws/aws-secretsmanager-jdbc

MicrosoftTeams-image (1)

It doesn't look like the error is caused by this library. Can you provide some sample code to reproduce along with the dependencies you are using?

Closing this ticket. @salman-shezad if you need further assistance feel free to reopen this ticket, or open a new ticket.