JDK-7068328 : BufferPoolMXBean and PlatformLoggingMXBean getObjectName may return null
  • Type: Bug
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Affected Version: 7,8
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-07-19
  • Updated: 2013-04-30
  • Resolved: 2011-09-07
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 7 JDK 8
7u2Fixed 8 b04Fixed
Related Reports
Relates :  
Description
As point out here:
 http://mail.openjdk.java.net/pipermail/nio-dev/2011-July/001385.html

there is a race that allows BufferPoolMXBean's getObjectName method to return null. The same issue is possible with PlatformLogginMXBean.
The following SDK/JDK test was added for this bug:

    java/lang/management/ManagementFactory/GetObjectName.java

Comments
EVALUATION URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/4e53fc6bcac0
23-08-2011

EVALUATION Yes, there is a race condition here. Easily fixed.
19-07-2011