Hi,
I wanted to start with a note of appreciation of the
effort going into this product, and my hope to help
make it a better product. I realise that this is a beta
so one must expect this type of behavior.
I set this up as followes.
- Installed jdk1.5 beta on a linux system.
- Installed Tomcat 5.0.24
- Started the vm with
com.sun.management.instrumentall
uncommented in the management.properties
file, and the jmx server setup in the as per
the instructions linked on the mc4j page.
- Next I installed jdk 1.5 beta on a windows system,
then the current 1.2 beta 5 version of mc4j.
- I started mc4j on the windows system, and
connected to the VM on the linux desktop.
- I can view the memory dashboards fine. However,
accessing the Threading dashboard produces the
following error:
java.lang.reflect.InvocationTargetException
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke
(Method.java:494)
at
org.openide.util.actions.CallableSystemAction.invokeActio
n(CallableSystemAction.java:179)
at
org.openide.util.actions.CallableSystemAction.access$000
(CallableSystemAction.java:31)
at
org.openide.util.actions.CallableSystemAction$ActionRunn
able.doRun(CallableSystemAction.java:241)
at
org.openide.util.actions.CallableSystemAction$2.run
(CallableSystemAction.java:111)
at org.openide.util.Task.run(Task.java:136)
at org.openide.util.RequestProcessor$Task.run
(RequestProcessor.java:330)
at
org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:686)
Caused by: java.lang.NoSuchFieldError: RUNNABLE
at
org.mc4j.jre15.components.ThreadMBeanThreadBrowserC
omponent$ThreadTreeCellRenderer.getTreeCellRendererCo
mponent
(ThreadMBeanThreadBrowserComponent.java:219)
at
javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandle
r.getNodeDimensions(BasicTreeUI.java:2637)
at
javax.swing.tree.AbstractLayoutCache.getNodeDimension
s(AbstractLayoutCache.java:475)
at
javax.swing.tree.VariableHeightLayoutCache$TreeStateN
ode.updatePreferredSize
(VariableHeightLayoutCache.java:1342)
at
javax.swing.tree.VariableHeightLayoutCache$TreeStateN
ode.expand(VariableHeightLayoutCache.java:1469)
at
javax.swing.tree.VariableHeightLayoutCache$TreeStateN
ode.expand(VariableHeightLayoutCache.java:1270)
at
javax.swing.tree.VariableHeightLayoutCache.rebuild
(VariableHeightLayoutCache.java:725)
at
javax.swing.tree.VariableHeightLayoutCache.treeStructur
eChanged(VariableHeightLayoutCache.java:626)
at
javax.swing.plaf.basic.BasicTreeUI$Handler.treeStructure
Changed(BasicTreeUI.java:3644)
at
javax.swing.tree.DefaultTreeModel.fireTreeStructureChan
ged(DefaultTreeModel.java:559)
at
javax.swing.tree.DefaultTreeModel.nodeStructureChange
d(DefaultTreeModel.java:345)
at
org.mc4j.jre15.components.ThreadMBeanThreadBrowserC
omponent.setContext
(ThreadMBeanThreadBrowserComponent.java:113)
at
org.mc4j.console.dashboard.DashboardComponentFactory
.build(DashboardComponentFactory.java:76)
at
org.mc4j.console.dashboard.DashboardFactory.buildV1Co
mponent(DashboardFactory.java:218)
at
org.mc4j.console.dashboard.DashboardFactory.buildV1Co
ntent(DashboardFactory.java:190)
at
org.mc4j.console.dashboard.DashboardFactory.buildDashb
oard(DashboardFactory.java:156)
at
org.mc4j.console.dashboard.global.OpenDashboardAction.
performAction(OpenDashboardAction.java:57)
at org.openide.util.actions.NodeAction$1.run
(NodeAction.java:174)
at
org.openide.util.actions.CallableSystemAction$ActionRunn
able.actionPerformed(CallableSystemAction.java:247)
at
org.netbeans.core.ModuleActions.invokeAction
(ModuleActions.java:71)
[catch] ... 11 more
==>
java.lang.NoSuchFieldError: RUNNABLE
at
org.mc4j.jre15.components.ThreadMBeanThreadBrowserC
omponent$ThreadTreeCellRenderer.getTreeCellRendererCo
mponent
(ThreadMBeanThreadBrowserComponent.java:219)
at
javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandle
r.getNodeDimensions(BasicTreeUI.java:2637)
at
javax.swing.tree.AbstractLayoutCache.getNodeDimension
s(AbstractLayoutCache.java:475)
at
javax.swing.tree.VariableHeightLayoutCache$TreeStateN
ode.updatePreferredSize
(VariableHeightLayoutCache.java:1342)
at
javax.swing.tree.VariableHeightLayoutCache$TreeStateN
ode.expand(VariableHeightLayoutCache.java:1469)
at
javax.swing.tree.VariableHeightLayoutCache$TreeStateN
ode.expand(VariableHeightLayoutCache.java:1270)
at
javax.swing.tree.VariableHeightLayoutCache.rebuild
(VariableHeightLayoutCache.java:725)
at
javax.swing.tree.VariableHeightLayoutCache.treeStructur
eChanged(VariableHeightLayoutCache.java:626)
at
javax.swing.plaf.basic.BasicTreeUI$Handler.treeStructure
Changed(BasicTreeUI.java:3644)
at
javax.swing.tree.DefaultTreeModel.fireTreeStructureChan
ged(DefaultTreeModel.java:559)
at
javax.swing.tree.DefaultTreeModel.nodeStructureChange
d(DefaultTreeModel.java:345)
at
org.mc4j.jre15.components.ThreadMBeanThreadBrowserC
omponent.setContext
(ThreadMBeanThreadBrowserComponent.java:113)
at
org.mc4j.console.dashboard.DashboardComponentFactory
.build(DashboardComponentFactory.java:76)
at
org.mc4j.console.dashboard.DashboardFactory.buildV1Co
mponent(DashboardFactory.java:218)
at
org.mc4j.console.dashboard.DashboardFactory.buildV1Co
ntent(DashboardFactory.java:190)
at
org.mc4j.console.dashboard.DashboardFactory.buildDashb
oard(DashboardFactory.java:156)
at
org.mc4j.console.dashboard.global.OpenDashboardAction.
performAction(OpenDashboardAction.java:57)
at org.openide.util.actions.NodeAction$1.run
(NodeAction.java:174)
at
org.openide.util.actions.CallableSystemAction$ActionRunn
able.actionPerformed(CallableSystemAction.java:247)
at
org.netbeans.core.ModuleActions.invokeAction
(ModuleActions.java:71)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke
(Method.java:494)
at
org.openide.util.actions.CallableSystemAction.invokeActio
n(CallableSystemAction.java:179)
at
org.openide.util.actions.CallableSystemAction.access$000
(CallableSystemAction.java:31)
at
org.openide.util.actions.CallableSystemAction$ActionRunn
able.doRun(CallableSystemAction.java:241)
at
org.openide.util.actions.CallableSystemAction$2.run
(CallableSystemAction.java:111)
at org.openide.util.Task.run(Task.java:136)
at org.openide.util.RequestProcessor$Task.run
(RequestProcessor.java:330)
[catch] at
org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:686)
Let me know if I can provide any additional information
to help resolve this. I'll check back occationally for
comments.
Logged In: YES
user_id=773314
I can not think of a reason why this might happen... but I
know there is something strange with the beta release. For
example, the online JavaDoc is clearly not the same as the
released code. I'll see if I can have a look at the linux
download to see if they're class compatible.
Logged In: YES
user_id=987922
This problem also happens in Linux :(