elastic/logstash
在 GitHub 查看Logstash error "Microsystems was unexpected at this time."
Open
#11,729 创建于 2020年3月30日
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:
- 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)
- Extract the logstash zip.
- Open a command line window.
- Move to bin folder and run logstash.
- 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=