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
Attempting to run the code fragment below (based on this AWS example) reveals missing dependencies.
RdsDataClient client = RdsDataClient.builder().database(Database)
.resourceArn(Database_Resource_ARN)
.secretArn(Database_Secret_ARN).build();
client.forSql("select * from accounts").execute().mapToSingle(File.class);
Error message:
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Strings
at com.amazon.rdsdata.client.RdsDataClient.forSql(RdsDataClient.java:97)
at data1.main(data1.java:15)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Strings
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 2 more
The text was updated successfully, but these errors were encountered:
Yes noticed it. And when I added Guava in my Lambda layer, it still failed. then I added it in individual POM.xml within the different lambdas. It worked.
Attempting to run the code fragment below (based on this AWS example) reveals missing dependencies.
Error message:
The text was updated successfully, but these errors were encountered: