aws / aws-secretsmanager-jdbc

The AWS Secrets Manager JDBC Library enables Java developers to easily connect to SQL databases using secrets stored in AWS Secrets Manager.
Apache License 2.0
161 stars 77 forks source link

Support Java 17 #105

Closed Wobbley closed 2 years ago

Wobbley commented 2 years ago

Describe the bug If you run in a Java 17 enviornment you get the following error:

com.amazonaws.AmazonServiceException: Unable to unmarshall exception response with the unmarshallers provided (Service: AWSSecretsManager; Status Code: 400; Error Code: ValidationException; Request ID: fed26f11-6cf7-4b46-8e41-c887299d3010; Proxy: null)

To Reproduce Try using the library in an application running on Java 17

Expected behavior I successfully connect to the database

Environment: OS: Mac Monterey Java: openjdk 17.0.4.1 2022-08-12 LTS

Additional context Seems to be related to the use of AWS JDK 1.x which does not support JDK 17, would need to upgrade to AWS JDK 2.0. See Maintenance and Support for Java Versions

Wobbley commented 2 years ago

Closing, as it worked in the end. Failed due to config error