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
VersionInfo#loadUserAgent tries to load a version from a file, this fails catastrophically when this library is packed with the spring-boot-maven-plugin: the result of ClassLoader.getSystemResourceAsStream("project.properties") is null, triggering a NullPointerException which is not handled, which results in the following error for me.
java.lang.NoClassDefFoundError: Could not initialize class com.amazonaws.encryptionsdk.kms.KmsMasterKey
Problem:
VersionInfo#loadUserAgent tries to load a version from a file, this fails catastrophically when this library is packed with the spring-boot-maven-plugin: the result of
ClassLoader.getSystemResourceAsStream("project.properties")
is null, triggering a NullPointerException which is not handled, which results in the following error for me.aws-encryption-sdk-java/src/main/java/com/amazonaws/encryptionsdk/kms/KmsMasterKey.java
Lines 54 to 55 in 163d79f
aws-encryption-sdk-java/src/main/java/com/amazonaws/encryptionsdk/internal/VersionInfo.java
Lines 27 to 35 in 163d79f
Works fine directly (IntelliJ run), but debugging the app within my docker-build clearly shows the issue:
application.jar packed with
Solution(s):
The text was updated successfully, but these errors were encountered: