From b49e509a46a28a1056bc71ade7098b392cc17b81 Mon Sep 17 00:00:00 2001 From: Piotrek Zygielo Date: Thu, 16 May 2024 14:14:46 +0200 Subject: [PATCH] Fix dereferencing port to follow changes in config --- .../java/com/sun/enterprise/admin/launcher/GFLauncher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nucleus/admin/launcher/src/main/java/com/sun/enterprise/admin/launcher/GFLauncher.java b/nucleus/admin/launcher/src/main/java/com/sun/enterprise/admin/launcher/GFLauncher.java index a539585eeb2..b9efe38ad72 100644 --- a/nucleus/admin/launcher/src/main/java/com/sun/enterprise/admin/launcher/GFLauncher.java +++ b/nucleus/admin/launcher/src/main/java/com/sun/enterprise/admin/launcher/GFLauncher.java @@ -590,7 +590,7 @@ private List getDebugOptionsFromDomainXMLJavaConfig() { /** * - * look for an option of this form: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9009 and + * look for an option of this form: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:9009 and * extract the suspend and port values. * */ @@ -604,7 +604,7 @@ private void parseJavaConfigDebugOptions() { for (String attribute : attributes) { if (attribute.startsWith("address=")) { try { - debugPort = Integer.parseInt(attribute.substring(8)); + debugPort = Integer.parseInt(attribute.substring(10)); } catch (NumberFormatException ex) { debugPort = -1; }