ClassCastException in Creator Dialog
This is for the Creator team (I guess):
I'm having a ClassCast exception when trying to refresh my EJB Sets:
java.lang.ClassCastException: javax.swing.tree.DefaultMutableTreeNode
at com.sun.rave.ejb.ui.ConfigureMethodsPanel$1.getTreeCellRendererComponent(Config ureMethodsPanel.java:56)
I'm stuck, can't add more EJB Remote Methods. Full log below:
-
java.lang.ClassCastException: javax.swing.tree.DefaultMutableTreeNode
at com.sun.rave.ejb.ui.ConfigureMethodsPanel$1.getTreeCellRendererComponent(Config ureMethodsPanel.java:56)
at javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(Basi cTreeUI.java:2693)
at javax.swing.tree.AbstractLayoutCache.getNodeDimensions(AbstractLayoutCache.java :475)
at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.updatePreferredSize(Va riableHeightLayoutCache.java:1342)
at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightL ayoutCache.java:1469)
at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightL ayoutCache.java:1270)
at javax.swing.tree.VariableHeightLayoutCache.rebuild(VariableHeightLayoutCache.ja va:725)
at javax.swing.tree.VariableHeightLayoutCache.setModel(VariableHeightLayoutCache.j ava:91)
at javax.swing.plaf.basic.BasicTreeUI.setModel(BasicTreeUI.java:400)
at javax.swing.plaf.basic.BasicTreeUI$Handler.propertyChange(BasicTreeUI.java:3384 )
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java: 333)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java: 270)
at java.awt.Component.firePropertyChange(Component.java:7159)
at javax.swing.JTree.setModel(JTree.java:710)
at com.sun.rave.ejb.ui.ConfigureMethodsPanel.setEjbGroup(ConfigureMethodsPanel.jav a:81)
at com.sun.rave.ejb.ui.ConfigureMethodsPanel.<init>(ConfigureMethodsPanel.ja va:73)
at com.sun.rave.ejb.ui.ConfigureMethodsDialog.<init>(ConfigureMethodsDialog. java:57)
at com.sun.rave.ejb.ui.ConfigureMethodsDialog.<init>(ConfigureMethodsDialog. java:48)
at com.sun.rave.ejb.load.EjbLoader.reload(EjbLoader.java:137)
at com.sun.rave.ejb.actions.RefreshEjbGroupAction.refresh(RefreshEjbGroupAction.ja va:82)
at com.sun.rave.ejb.actions.RefreshEjbGroupAction.performAction(RefreshEjbGroupAct ion.java:56)
at org.openide.util.actions.NodeAction$3.run(NodeAction.java:450)
at org.openide.util.actions.CallableSystemAction.doPerformAction(CallableSystemAct ion.java:116)
at org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.j ava:448)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.ja va:1041)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
[catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java: 242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:16 3)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
-
Any help, please?
Thank you.
Antonio.

