This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 159886

Summary: V3 Experimental: ClassCastException occurs at DerbyPool Resources node
Product: serverplugins Reporter: davisn <davisn>
Component: GlassFishAssignee: Vince Kraemer <vkraemer>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Imcomple Information Dialog
messages.log file

Description davisn 2009-03-09 03:27:34 UTC
-java.lang.ClassCastException occurs when right-click at DerbyPool Resouces node
-This problem does not happens with V3 Prelude

Steps To Reproduce
1. Install NB 6.7 Trunk (3/07/09) build with jdk1.6.0_12
2. Start IDE > Activate Java EE components
3. Register V3 Server by download it
4. Start V3 server
5. Expand the Resources node, right-click at DerbyPool > select Properties
BUG:
    A dialog with only has Close and Cancel buttons appears (as shown in the attached figure below)
    When I click the Close button, exception message below occurs

java.lang.ClassCastException: javax.swing.table.DefaultTableModel cannot be cast to
org.netbeans.modules.glassfish.common.ui.BasePanel$DataTableModel
	at org.netbeans.modules.glassfish.common.ui.BasePanel.getData(BasePanel.java:129)
	at org.netbeans.modules.glassfish.common.nodes.Hk2ResourceNode$2$2.actionPerformed(Hk2ResourceNode.java:158)
	at org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:1266)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
	at java.awt.Component.processMouseEvent(Component.java:6216)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
	at java.awt.Component.processEvent(Component.java:5981)
	at java.awt.Container.processEvent(Container.java:2041)
	at java.awt.Component.dispatchEventImpl(Component.java:4583)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Component.dispatchEvent(Component.java:4413)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)
	at java.awt.Container.dispatchEventImpl(Container.java:2085)
	at java.awt.Window.dispatchEventImpl(Window.java:2475)
	at java.awt.Component.dispatchEvent(Component.java:4413)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 davisn 2009-03-09 03:28:39 UTC
Created attachment 77888 [details]
Imcomple Information Dialog
Comment 2 davisn 2009-03-09 03:29:21 UTC
Created attachment 77889 [details]
messages.log file
Comment 3 Vince Kraemer 2009-03-09 04:56:55 UTC
good catch. it looks like the resource tree is different between v3 and v3 Prelude.
Comment 4 Vince Kraemer 2009-03-09 22:38:42 UTC
or the get subcommand for asadmin has some sort of bug...

Build 38 and build 39 behave very differently from builds older than build 38...

This should not generate an exception, though...
Comment 5 Vince Kraemer 2009-03-10 19:49:30 UTC
checked in code to web-main: http://hg.netbeans.org/web-main/rev/1f6bfe6fbcaa
Comment 6 Quality Engineering 2009-03-10 21:16:35 UTC
Integrated into 'main-golden', will be available in build *200903101401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/1f6bfe6fbcaa
User: Vince Kraemer <vkraemer@netbeans.org>
Log: #159886: class cast when the data that fills a dialog is not available