elastic/logstash

Logstash error "Microsystems was unexpected at this time."

Open

#11,729 建立於 2020年3月30日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)Ruby (14,197 star) (3,496 fork)batch import
good first issuewindows

描述

  • Version: 7.6.1
  • Operating System: Windows 10, ver 1709
  • Config File (if you have sensitive info, please remove it):
  • Sample Data:
  • Steps to Reproduce:
  1. Install java.
> java -version
Picked up JAVA_TOOL_OPTIONS: -Djava.vendor="Sun Microsystems Inc."
openjdk version "11.0.5" 2019-10-15
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.5+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.5+10, mixed mode)
  1. Extract the logstash zip.
  2. Open a command line window.
  3. Move to bin folder and run logstash.
  4. Error shown: Microsystems was unexpected at this time.

This issue is similar to 26261.

Workaround as of now to make it logstash start: Comment out the block in setup.bat in bin folder.

rem do not let JAVA_TOOL_OPTIONS slip in (as the JVM does by default)
if not "%JAVA_TOOL_OPTIONS%" == "" (
  echo "warning: ignoring JAVA_TOOL_OPTIONS=$JAVA_TOOL_OPTIONS"
  set JAVA_TOOL_OPTIONS=
)

and add just set the env variable to empty. As below.

rem do not let JAVA_TOOL_OPTIONS slip in (as the JVM does by default)
rem if not "%JAVA_TOOL_OPTIONS%" == "" (
rem   echo "warning: ignoring JAVA_TOOL_OPTIONS=$JAVA_TOOL_OPTIONS"
rem   set JAVA_TOOL_OPTIONS=
rem )
set JAVA_TOOL_OPTIONS=

貢獻者指南