Logstash Load Error - Java

Can anyone help. I'm running elastic search 5.6.2 and log stash 5.6.3 (and tried 6.0.0) but I'm getting an error when trying to run log stash.

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 org.jruby.util.io.FilenoUtil to method sun.nio.ch.SelChImpl.getFD()
WARNING: Please consider reporting this to the maintainers of org.jruby.util.io.FilenoUtil
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
LoadError: load error: jopenssl/load -- java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 1
require at org/jruby/RubyKernel.java:955

at /Users/perkinsl/logstash-6.0.0-rc1/vendor/jruby/lib/ruby/stdlib/openssl.rb:1 require at org/jruby/RubyKernel.java:955 at /Users/perkinsl/logstash-6.0.0-rc1/logstash-core/lib/logstash/patches/stronger_openssl_defaults.rb:1 require at org/jruby/RubyKernel.java:955 at /Users/perkinsl/logstash-6.0.0-rc1/logstash-core/lib/logstash/patches/stronger_openssl_defaults.rb:2 require at org/jruby/RubyKernel.java:955 at /Users/perkinsl/logstash-6.0.0-rc1/logstash-core/lib/logstash/patches.rb:1 require at org/jruby/RubyKernel.java:955 at /Users/perkinsl/logstash-6.0.0-rc1/logstash-core/lib/logstash/patches.rb:5 require at org/jruby/RubyKernel.java:955 at /Users/perkinsl/logstash-6.0.0-rc1/lib/bootstrap/environment.rb:70

A complete uninstall/re-install of the JDK and setting Java_Home seems to have resolved the problem.

1 Like

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