[Mc4j-development] [ mc4j-Bugs-938730 ] NullPointerException with right click on MBean
Brought to you by:
ghinkl
From: SourceForge.net <no...@so...> - 2004-04-21 13:51:46
|
Bugs item #938730, was opened at 2004-04-20 12:43 Message generated for change (Comment added) made by ghinkl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=493495&aid=938730&group_id=60228 Category: Dashboards Group: MC4J 1.2b5 >Status: Closed >Resolution: Fixed Priority: 8 Submitted By: Christian Schweer (holbitlan) Assigned to: Greg Hinkle (ghinkl) Summary: NullPointerException with right click on MBean Initial Comment: Hi! With the current cvs-build as well as 1.2beta5 I get I NullPointerException everytime I do a right-click on a MBean in the "Managed Object Explorer". I'm using: - current non-developer cvs build - Java 1.4.2 - JSR160 connection to MX4J-2.0.1 On prior versions I got a context-menu in which I could select the available dashboards, invoke operations or open the properties. Steps to reproduce: - given the above configuration: connect to server - select a MBean - right-click on the MBean Here is the stacktrace: --snip java.lang.ExceptionInInitializerError at org.mc4j.console.bean.DashboardsAction.anythingToDisplay(DashboardsAction.java:113) at org.mc4j.console.bean.DashboardsAction.getPopupPresenter(DashboardsAction.java:101) at org.openide.util.Utilities.actionsToPopup(Utilities.java:2150) at org.openide.util.Utilities.actionsToPopup(Utilities.java:2212) at org.openide.explorer.view.TreeView.createPopup(TreeView.java:1018) at org.openide.explorer.view.TreeView$PopupAdapter.showPopup(TreeView.java:1001) at org.openide.awt.MouseUtils$PopupMouseAdapter.maybePopup(MouseUtils.java:138) at org.openide.awt.MouseUtils$PopupMouseAdapter.mouseReleased(MouseUtils.java:133) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231) at java.awt.Component.processMouseEvent(Component.java:5100) at java.awt.Component.processEvent(Component.java:4897) at java.awt.Container.processEvent(Container.java:1569) at java.awt.Component.dispatchEventImpl(Component.java:3615) at java.awt.Container.dispatchEventImpl(Container.java:1627) at java.awt.Component.dispatchEvent(Component.java:3477) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128) at java.awt.Container.dispatchEventImpl(Container.java:1613) at java.awt.Window.dispatchEventImpl(Window.java:1606) at java.awt.Component.dispatchEvent(Component.java:3477) at java.awt.EventQueue.dispatchEvent(EventQueue.java:456) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) Caused by: java.lang.NullPointerException at org.mc4j.console.dashboard.DashboardLoader.assignDashboardMatch(DashboardLoader.java:130) at org.mc4j.console.dashboard.DashboardLoader.buildDashboard(DashboardLoader.java:98) at org.mc4j.console.dashboard.DashboardManager.initialize(DashboardManager.java:99) at org.mc4j.console.dashboard.DashboardManager.<init>(DashboardManager.java:53) at org.mc4j.console.dashboard.DashboardManager.<clinit>(DashboardManager.java:50) [catch] ... 28 more ==> java.lang.NullPointerException at org.mc4j.console.dashboard.DashboardLoader.assignDashboardMatch(DashboardLoader.java:130) at org.mc4j.console.dashboard.DashboardLoader.buildDashboard(DashboardLoader.java:98) at org.mc4j.console.dashboard.DashboardManager.initialize(DashboardManager.java:99) at org.mc4j.console.dashboard.DashboardManager.<init>(DashboardManager.java:53) at org.mc4j.console.dashboard.DashboardManager.<clinit>(DashboardManager.java:50) at org.mc4j.console.bean.DashboardsAction.anythingToDisplay(DashboardsAction.java:113) at org.mc4j.console.bean.DashboardsAction.getPopupPresenter(DashboardsAction.java:101) at org.openide.util.Utilities.actionsToPopup(Utilities.java:2150) at org.openide.util.Utilities.actionsToPopup(Utilities.java:2212) at org.openide.explorer.view.TreeView.createPopup(TreeView.java:1018) at org.openide.explorer.view.TreeView$PopupAdapter.showPopup(TreeView.java:1001) at org.openide.awt.MouseUtils$PopupMouseAdapter.maybePopup(MouseUtils.java:138) at org.openide.awt.MouseUtils$PopupMouseAdapter.mouseReleased(MouseUtils.java:133) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231) at java.awt.Component.processMouseEvent(Component.java:5100) at java.awt.Component.processEvent(Component.java:4897) at java.awt.Container.processEvent(Container.java:1569) at java.awt.Component.dispatchEventImpl(Component.java:3615) at java.awt.Container.dispatchEventImpl(Container.java:1627) at java.awt.Component.dispatchEvent(Component.java:3477) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128) at java.awt.Container.dispatchEventImpl(Container.java:1613) at java.awt.Window.dispatchEventImpl(Window.java:1606) at java.awt.Component.dispatchEvent(Component.java:3477) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:456) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) --snap Thx in advance, holbitlan ---------------------------------------------------------------------- >Comment By: Greg Hinkle (ghinkl) Date: 2004-04-21 08:51 Message: Logged In: YES user_id=773314 Error handling added... but I recommend using the DTD to ensure dashboard compliance. ---------------------------------------------------------------------- Comment By: Greg Hinkle (ghinkl) Date: 2004-04-21 07:40 Message: Logged In: YES user_id=773314 Ah error handling... The problem here is that you have old dashboard files that have the old syntax. A new required element in the XML was added in b5 "DashboardMatch". Please make sure you are only using the latest dashboard files. I'll see if I can make the error handling a little more helpful. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=493495&aid=938730&group_id=60228 |