United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6711106 REGRESSION: Bad usage of SnapshotMBeanServerConnection in MBeans tab and JConsole plugins.
JDK-6711106 : REGRESSION: Bad usage of SnapshotMBeanServerConnection in MBeans tab and JConsole plugins.

Details
Type:
Bug
Submit Date:
2008-06-05
Status:
Closed
Updated Date:
2011-03-08
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
tools
OS:
generic
Sub-Component:
jconsole
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:
Relates:
Relates:

Sub Tasks

Description
There are two issues in the way the SnapshotMBeanServerConnection (introduced in JDK 6) is used within JConsole:

- JConsole Plugins:

  The call to JConsoleContext.getMBeanServerConnection() should return the original
  MBeanServerConnection but returns the SnapshotMBeanServerConnection.

- MBeans tab:

  The Attributes are computed by calling getAttributes first and if an error occurs
  then we call getAttribute for each individual attribute in the list.
  The problem comes from the fact that the individual getAttribute calls go through
  the SnapshotMBeanServerConnection that calls again getAttributes internally.

                                    

Comments
WORK AROUND

Use JConsole 5 or VisualVM.
                                     
2008-06-05
EVALUATION

Only use SnapshotMBeanServerConnection when appropriate.
                                     
2008-06-05



Hardware and Software, Engineered to Work Together