diff --git a/stf.core/src/stf.core/net/adoptopenjdk/stf/environment/JavaVersion.java b/stf.core/src/stf.core/net/adoptopenjdk/stf/environment/JavaVersion.java index 101d623..7eca9c3 100644 --- a/stf.core/src/stf.core/net/adoptopenjdk/stf/environment/JavaVersion.java +++ b/stf.core/src/stf.core/net/adoptopenjdk/stf/environment/JavaVersion.java @@ -83,8 +83,9 @@ private JavaVersion(boolean isPrimaryJvm, String javaHome) throws StfException { throw new StfException("Failed to read result of command: " + javaCmd); } - // Eat superfluous first lines (e.g. JIT: env var TR_OPTIONS etc, or JVMJ9VM082E Unable to switch to IFA processor) - while (javaVersionOutput.startsWith("JVMJ9VM082E") || javaVersionOutput.startsWith("JIT:")) { + // Eat superfluous first lines (e.g. JIT: env var TR_OPTIONS, or JVMJ9VM082E Unable to switch to IFA processor, + // or JVMJ9VM090I Slow response to network query, etc ) + while (javaVersionOutput.startsWith("JVMJ9VM") || javaVersionOutput.startsWith("JIT:")) { // Line starts with error message. Remove up to and including the newline. int endOfFirstLine = javaVersionOutput.indexOf('\n'); javaVersionOutput = javaVersionOutput.substring(endOfFirstLine+1);