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 101841 - ClassCastException while doing table layout
Summary: ClassCastException while doing table layout
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: PC All
: P1 blocker (vote)
Assignee: Winston Prakash
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-19 21:41 UTC by _ hlu
Modified: 2007-04-24 23:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ hlu 2007-04-19 21:41:10 UTC
build 0419_1:

Steps:
1. Create a project(web+visual web)
2. add a table to the page1.
3. bind the table with a persistence entity array, which is a attribute added in
SessionBean1.
4. deploy/run the application and it works fine.
5. Back to design view, click the table component and do table layout. the
following exception thrown:
java.lang.ClassCastException: [Lwebapplication12.Customer; cannot be cast to
com.sun.data.provider.TableDataProvider
	at
com.sun.webui.jsf.component.table.TableRowGroupDesignState.loadState(TableRowGroupDesignState.java:197)
	at
com.sun.webui.jsf.component.table.TableCustomizerMainPanel.initialize(TableCustomizerMainPanel.java:147)
	at
com.sun.webui.jsf.component.table.TableCustomizerMainPanel.<init>(TableCustomizerMainPanel.java:109)
	at
com.sun.webui.jsf.component.customizers.TableCustomizer.getCustomizerPanel(TableCustomizer.java:55)
	at
org.netbeans.modules.visualweb.insync.CustomizerDisplayer.show(CustomizerDisplayer.java:92)
	at
org.netbeans.modules.visualweb.insync.ResultHandler.handleResult(ResultHandler.java:183)
	at
org.netbeans.modules.visualweb.insync.action.AbstractDisplayActionAction.invokeDisplayAction(AbstractDisplayActionAction.java:123)
	at
org.netbeans.modules.visualweb.insync.action.AbstractDisplayActionAction.access$200(AbstractDisplayActionAction.java:72)
	at
org.netbeans.modules.visualweb.insync.action.AbstractDisplayActionAction$SingleDisplayActionAction.actionPerformed(AbstractDisplayActionAction.java:250)
	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.AbstractButton.doClick(AbstractButton.java:357)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1170)
	at
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1211)
	at java.awt.Component.processMouseEvent(Component.java:6038)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
	at java.awt.Component.processEvent(Component.java:5803)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4410)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2429)
	at java.awt.Component.dispatchEvent(Component.java:4240)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 Winston Prakash 2007-04-20 02:51:09 UTC
Fixed in the woodstock CVS repository. When the next drop from woodstock is
integrated the fix should be available 
Comment 2 _ hlu 2007-04-24 23:59:55 UTC
verified in build200704241200.