Closed
Description
Describe the bug
If you try to invoke an AWS WES endpoint using the CLI and the default AWS auth, you get a NoClassDefFound error.
To Reproduce
Steps to reproduce the behavior:
- Configure AWS AGC, following instructions here.
- When you get to the part that says
dockstore workflow wes service-info
, you see the following:
Exception in thread "main" java.lang.NoClassDefFoundError: software/amazon/awssdk/profiles/ProfileFile
at software.amazon.awssdk.auth.credentials.ProfileCredentialsProvider$BuilderImpl.<init>(ProfileCredentialsProvider.java:180)
at software.amazon.awssdk.auth.credentials.ProfileCredentialsProvider.builder(ProfileCredentialsProvider.java:121)
at io.dockstore.client.cli.nested.AbstractEntryClient.aggregateWesRequestData(AbstractEntryClient.java:1321)
at io.dockstore.client.cli.nested.AbstractEntryClient.processWesCommands(AbstractEntryClient.java:1232)
at io.dockstore.client.cli.nested.AbstractEntryClient.processEntryCommands(AbstractEntryClient.java:326)
at io.dockstore.client.cli.Client.run(Client.java:737)
at io.dockstore.client.cli.Client.main(Client.java:633)
Caused by: java.lang.ClassNotFoundException: software.amazon.awssdk.profiles.ProfileFile
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
... 7 more
Expected behavior
It should work
┆Issue is synchronized with this Jira Story
┆friendlyId: DOCK-2265
┆sprint: Backlog
┆taskType: Story