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

Logstash crashes when running with JRE instead of JDK #16096

Open
therth opened this issue Apr 18, 2024 · 0 comments
Open

Logstash crashes when running with JRE instead of JDK #16096

therth opened this issue Apr 18, 2024 · 0 comments

Comments

@therth
Copy link

therth commented Apr 18, 2024

Logstash 8.13.2, unpacked from tar, started by systemd unit file
Linux localhost.localdomain 5.14.0-362.24.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Feb 15 07:18:13 EST 2024 x86_64 x86_64 x86_64 GNU/Linux

Issue: After removing the embedded JDK and using the provided JRE logstash crashes at startup.

java -version
openjdk version "17.0.10" 2024-01-16
OpenJDK Runtime Environment Temurin-17.0.10+7 (build 17.0.10+7)
OpenJDK 64-Bit Server VM Temurin-17.0.10+7 (build 17.0.10+7, mixed mode, sharing)

When using the embedded JDK or setting LS_JAVA_HOME to another installation directory of JDK 17 all works fine.

Exception:

[2024-04-18T18:35:40,437][FATAL][org.logstash.Logstash    ][main] uncaught error (in thread Ruby-0-Thread-11: /opt/mcc-log-server/logstash-core/lib/logstash/java_pipeline.rb:289)
java.lang.NoClassDefFoundError: com/sun/source/tree/Tree

Full stacktrace added in logstash-plain.log.

logstash-plain.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant