From b6833d9587e5766c66a33a408f66d134eaa19d75 Mon Sep 17 00:00:00 2001 From: Mesbah Alam Date: Thu, 22 Apr 2021 13:38:52 -0400 Subject: [PATCH] Ignore JVMJ9VM090I message in java -version output (#113) Signed-off-by: Mesbah_Alam@ca.ibm.com --- .../net/adoptopenjdk/stf/environment/JavaVersion.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);