Could not config test logstash

Hi
I have an issue where i cannot config test logstash configuration file, Looks like a Java issue but could not figured out. JAVA_HOME and java path is set correctly. I m using CentOS 7 and logstash 5

$ /usr/share/logstash/bin/logstash --configtest -f /etc/logstash/conf.d/*.conf

Java HotSpot(TM) 64-Bit Server VM warning: Option UseParNewGC was deprecated in version 9.0 and will likely be removed in a future release.
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by jnr.posix.JavaLibCHelper to method sun.nio.ch.SelChImpl.getFD()
WARNING: Please consider reporting this to the maintainers of jnr.posix.JavaLibCHelper
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
io/console on JRuby shells out to stty for most operations
NameError: cannot link Java class org.logstash.common.DeadLetterQueueFactory (java.lang.NoClassDefFoundError: javax/script/ScriptEngineFactory)
get_proxy_or_package_under_package at org/jruby/javasupport/JavaUtilities.java:54
method_missing at file:/usr/share/logstash/vendor/jruby/lib/jruby.jar!/jruby/java/java_package_module_template.rb:14
DeadLetterQueueFactory at /usr/share/logstash/logstash-core/lib/logstash/util/dead_letter_queue_manager.rb:46
Util at /usr/share/logstash/logstash-core/lib/logstash/util/dead_letter_queue_manager.rb:45
LogStash at /usr/share/logstash/logstash-core/lib/logstash/util/dead_letter_queue_manager.rb:3
(root) at /usr/share/logstash/logstash-core/lib/logstash/util/dead_letter_queue_manager.rb:3
require at org/jruby/RubyKernel.java:1040
require at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/polyglot-0.3.5/lib/polyglot.rb:65
(root) at /usr/share/logstash/logstash-core/lib/logstash/plugin.rb:1
require at org/jruby/RubyKernel.java:1040
(root) at /usr/share/logstash/logstash-core/lib/logstash/plugin.rb:6
(root) at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/polyglot-0.3.5/lib/polyglot.rb:1
require at org/jruby/RubyKernel.java:1040
require at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/polyglot-0.3.5/lib/polyglot.rb:65
(root) at /usr/share/logstash/logstash-core/lib/logstash/filters/base.rb:5
require at org/jruby/RubyKernel.java:1040
(root) at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/polyglot-0.3.5/lib/polyglot.rb:1
require at org/jruby/RubyKernel.java:1040
require at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/polyglot-0.3.5/lib/polyglot.rb:65
require at org/jruby/RubyKernel.java:1040
(root) at /usr/share/logstash/lib/bootstrap/environment.rb:70

It looks like you're using Java 9 which isn't supported.

Thanks @magnusbaeck ! JAVA 9 isn't supported.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.