Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java error java.lang.NoClassDefFoundError after upgrading from 2.2.5 to 2.2.6 #344

Closed
stekycz opened this issue May 15, 2024 · 1 comment · Fixed by #351
Closed

Java error java.lang.NoClassDefFoundError after upgrading from 2.2.5 to 2.2.6 #344

stekycz opened this issue May 15, 2024 · 1 comment · Fixed by #351

Comments

@stekycz
Copy link

stekycz commented May 15, 2024

I am trying to update the library to the latest version but I am getting the following error.

Starting MultiLangDaemon ...
java.lang.NoClassDefFoundError: software/amazon/awssdk/identity/spi/IdentityProvider
        at java.base/java.lang.ClassLoader.defineClass1(Native Method)
        at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1027)
        at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
        at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:862)
        at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760)
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681)
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
        at software.amazon.kinesis.multilang.config.MultiLangDaemonConfiguration.<init>(MultiLangDaemonConfiguration.java:250)
        at software.amazon.kinesis.multilang.config.KinesisClientLibConfigurator.<init>(KinesisClientLibConfigurator.java:50)
        at software.amazon.kinesis.multilang.MultiLangDaemonConfig.<init>(MultiLangDaemonConfig.java:81)
        at software.amazon.kinesis.multilang.MultiLangDaemonConfig.<init>(MultiLangDaemonConfig.java:65)
        at software.amazon.kinesis.multilang.MultiLangDaemon.buildMultiLangDaemonConfig(MultiLangDaemon.java:171)
        at software.amazon.kinesis.multilang.MultiLangDaemon.main(MultiLangDaemon.java:220)
Caused by: java.lang.ClassNotFoundException: software.amazon.awssdk.identity.spi.IdentityProvider
        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:526)
        ... 15 more
software/amazon/awssdk/identity/spi/IdentityProvider
Usage: amazon-kinesis-client MultiLangDaemon [options]
  Options:
    -l, --log-configuration
      File location of logback.xml to be override the default
    -p, --properties-file
      Properties file to be used with the KCL

For more information, visit: https://github.com/awslabs/amazon-kinesis-client

I have cleared all jars I had before and all latest versions are downloaded. When I leave the older versions of Java dependencies in place (in the jars directory) it works. However, I do not want to mix multiple versions of the same dependency as that does not feel right.

@stekycz
Copy link
Author

stekycz commented May 15, 2024

Updating amazon-kinesis-client to the latest version and all related Java dependencies accordingly may help IMO.

shenie added a commit to shenie/amazon-kinesis-client-nodejs that referenced this issue May 30, 2024
lucienlu-aws added a commit that referenced this issue Jun 6, 2024
* Add missing jars to fix class not found error

This fixes #344

---------

Co-authored-by: lucienlu-aws <132623944+lucienlu-aws@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant