JDK-2188195 : HotSpotDiagnosticsMXBean.getDiagnosticOptions throws NPE
  • Type: Backport
  • Backport of: JDK-6924497
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2010-02-09
  • Updated: 2012-10-03
  • Resolved: 2010-03-30
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
6u21 b02Fixed 7Fixed
Comments
EVALUATION This fix has been putback to: /net/nightsvr.SFBay/export4/integration/6u20/j2se
25-03-2010

SUGGESTED FIX I suggest to include this patch as well when backporting the fix to jdk 6u20. > 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