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

Failed to initialize class on Linux system #193

Open
stevenlinh opened this issue May 17, 2022 · 0 comments
Open

Failed to initialize class on Linux system #193

stevenlinh opened this issue May 17, 2022 · 0 comments

Comments

@stevenlinh
Copy link

stevenlinh commented May 17, 2022

Hi,

We are using lz4-java version 1.7.1 on a Linux machine with KAFKA to consume compressed messages from a topic and we got below error:

Failed to receive Kafka records: org.apache.kafka.common.KafkaException:Received exception when fetching the next record from xxxxxxx-0. If needed, please seek past the record to continue consumption.: Received exception when fetching the next record from xxxxxxx-0. If needed, please seek past the record to continue consumption.: java.lang.NoClassDefFoundError: org/apache/kafka/common/compress/KafkaLZ4BlockInputStream : cannot initialize class because prior initialization attempt failed: org/apache/kafka/common/compress/KafkaLZ4BlockInputStream : cannot initialize class because prior initialization attempt failed: java.lang.IllegalAccessError: failed to access class net.jpountz.lz4.LZ4SafeUtils (class loader library:core_lib@49009) from class net.jpountz.lz4.LZ4JavaSafeSafeDecompressor (class loader xxxxxxxxxxx@1688477)
at net.jpountz.lz4.LZ4JavaSafeSafeDecompressor.decompress(LZ4JavaSafeSafeDecompressor.java:71)

Result when I ran Linux command uname -a: Linux <I.P Range>-default #1 SMP Tue Mar 1 11:43:17 UTC 2022 (fe89a8c) x86_64 x86_64 x86_64 GNU/Linux

Any idea why the decompression failed?

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

No branches or pull requests

1 participant