JDK-2190612 : HotSpotDiagnosticsMXBean.getDiagnosticOptions throws NPE
  • Type: Backport
  • Backport of: JDK-6924497
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2010-03-23
  • Updated: 2012-10-03
  • Resolved: 2010-04-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u19-rev b07Fixed 7Fixed
Comments
EVALUATION see main CR.
24-03-2010

SUGGESTED FIX I suggest to include this patch as well when backporting the fix to jdk 6u19-rev. > hg diff Flag.c diff --git a/src/share/native/sun/management/Flag.c b/src/share/native/sun/management/Flag.c --- a/src/share/native/sun/management/Flag.c +++ b/src/share/native/sun/management/Flag.c @@ -133,11 +133,8 @@ Java_sun_management_Flag_getFlags globals[i].value.j); break; default: - // unsupported type - sprintf(errmsg, "Unsupported VMGlobal Type %d", globals[i].type); - JNU_ThrowInternalError(env, errmsg); - free(globals); - return 0; + // ignore unsupported type + continue; } switch (globals[i].origin) { case JMM_VMGLOBAL_ORIGIN_DEFAULT:
23-03-2010