Ruby error found during Logstash start with IBM Semeru Java

Logstash version: logstash-8.7.1
JDK:

> $ ./java -version
> java version "11.0.18" 2023-01-17
> IBM Semeru Runtime Certified Edition 11.0.18.0 (build 11.0.18+10)
> Eclipse OpenJ9 VM 11.0.18.0 (build openj9-0.36.1, JRE 11 Linux amd64-64-Bit Compressed References 20230213_536 (JIT enabled, AOT enabled)
> OpenJ9   - 0592661e4
> OMR      - f491bbf6f
> JCL      - 90e1a4e204 based on jdk-11.0.18+10)

Encounter this error during Logstash 8.7.1 start-up when use with IBM Semeru Java 11.
May I ask if there is a workaround to this issue.

> [2023-05-18T02:13:09,814][TRACE][org.logstash.instrument.metrics.BaseFlowMetric] FlowMetric(queue_backpressure) baseline -> FlowCapture{nanoTimestamp=3435946508164793 numerator=0.0 denominator=59.093696}
> [2023-05-18T02:13:09,816][TRACE][org.logstash.instrument.metrics.BaseFlowMetric] FlowMetric(worker_concurrency) baseline -> FlowCapture{nanoTimestamp=3435946510243809 numerator=0.0 denominator=61.174872}
> [2023-05-18T02:13:09,889][FATAL][org.logstash.Logstash    ] Logstash stopped processing because of an error: (SyntaxError) /home/user1/Logstash/logstash-   8.7.1/vendor/jruby/lib/ruby/stdlib/forwardable.rb:227: syntax error, unexpected tSTRING_BEG
>             ::Kernel.warn "CSV#pos= at /home/user1/Logsta...
>                           ^
> org.jruby.exceptions.SyntaxError: (SyntaxError) /home/user1/Logstash/logstash-8.7.1/vendor/jruby/lib/ruby/stdlib/forwardable.rb:227: syntax error, unexpected tSTRING_BEG
>             ::Kernel.warn "CSV#pos= at /home/user1/Logsta...
>                           ^
>         at org.jruby.RubyKernel.eval(org/jruby/RubyKernel.java:1091) ~[jruby.jar:?]
>         at home.user1.Logstash.logstash_minus_8_dot_7_dot_1.vendor.jruby.lib.ruby.stdlib.forwardable.impl._compile_method(/home/user1/Logstash/logstash-8.7.1/vendor/jruby/lib/ruby/stdlib/forwardable/impl.rb:22) ~[?:?]
>         at home.user1.Logstash.logstash_minus_8_dot_7_dot_1.vendor.jruby.lib.ruby.stdlib.forwardable._delegator_method(/home/user1/Logstash/logstash-8.7.1/vendor/jruby/lib/ruby/stdlib/forwardable.rb:218) ~[?:?]
>         at home.user1.Logstash.logstash_minus_8_dot_7_dot_1.vendor.jruby.lib.ruby.stdlib.forwardable.def_instance_delegator(/home/user1/Logstash/logstash-8.7.1/vendor/jruby/lib/ruby/stdlib/forwardable.rb:182) ~[?:?]
>         at home.user1.Logstash.logstash_minus_8_dot_7_dot_1.vendor.jruby.lib.ruby.stdlib.forwardable.def_instance_delegators(/home/user1/Logstash/logstash-8.7.1/vendor/jruby/lib/ruby/stdlib/forwardable.rb:158) ~[?:?]
>         at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1865) ~[jruby.jar:?]
>         at RUBY.def_instance_delegators(/home/user1/Logstash/logstash-8.7.1/vendor/jruby/lib/ruby/stdlib/forwardable.rb:157) ~[?:?]
>         at RUBY.<class:CSV>(/home/user1/Logstash/logstash-8.7.1/vendor/jruby/lib/ruby/stdlib/csv.rb:2253) ~[?:?]
>         at RUBY.<main>(/home/user1/Logstash/logstash-8.7.1/vendor/jruby/lib/ruby/stdlib/csv.rb:845) ~[?:?]

This JVM is not listed on the compatibility matrix, so this may be the issue.

You may use the bundled JVM in Logstash or use a compatible JVM as listed in the compatibility matrix.

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