Replies: 2 comments
-
never mind figured it out. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I get above exception when I try to establish docDB api connection. I have defined below method for awsCredentials to authenticate. when It reaches to this method, I receive above exception. This code works when I call it from within the same package this code is in, it establishes the api connection. But when I make a same call from a different package, I get the above exception. Below are the snippets of code:
I have the auth-2.30.jar in both the packages.
import references all pass and no exception when built.
`import software.amazon.awssdk.auth.credentials.AwsCredentialsProvider;
AwsCredentialsProvider getAwsCredentialsProvider() throws Exception {
calling function:
DocDbClient getDocDbConnection() throws DataSourceConnectException { credentialsProvider = getAwsCredentialsProvider(); return getDocDbConnection(credentialsProvider); }
exception thrown:
Exception stacktrace : Caused by: java.lang.ClassNotFoundException: software.amazon.awssdk.auth.credentials.AwsCredentials at java.net.URLClassLoader.findClass(URLClassLoader.java:610) ~[?:1.8.0] at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:948) ~[?:2.9 (09-08-2023)] at java.lang.ClassLoader.loadClass(ClassLoader.java:893) ~[?:2.9 (09-08-2023)] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:353) ~[?:1.8.0] at java.lang.ClassLoader.loadClass(ClassLoader.java:876) ~[?:2.9 (09-08-2023)] ... 11 more
Beta Was this translation helpful? Give feedback.
All reactions