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.
Spurious exceptions thrown if some property is duplicated due to, e.g., layout support in form editor. If layout support constraints declare a property with name 'hAlign' or 'vAlign' for example then exceptions with following stack trace are thrown on component selection. *********** Exception occurred ************ at Sat Jan 08 08:47:22 EET 2005 java.lang.ArrayStoreException at java.lang.System.arraycopy(Native Method) at java.util.ArrayList.toArray(ArrayList.java:305) at org.netbeans.modules.form.RADComponent.createBeanProperties(RADComponent.java:992) at org.netbeans.modules.form.RADComponent.createPropertySets(RADComponent.java:895) at org.netbeans.modules.form.RADVisualComponent.createPropertySets(RADVisualComponent.java:128) at org.netbeans.modules.form.RADComponent.getProperties(RADComponent.java:523) at org.netbeans.modules.form.RADComponentNode.getPropertySets(RADComponentNode.java:119) at org.openide.explorer.propertysheet.PropertySheet.setCurrentNode(PropertySheet.java:575) at org.openide.explorer.propertysheet.PropertySheet.doSetNodes(PropertySheet.java:407) at org.openide.explorer.propertysheet.PropertySheet.access$400(PropertySheet.java:49) at org.openide.explorer.propertysheet.PropertySheet$5.run(PropertySheet.java:529) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) at java.awt.EventQueue.dispatchEvent(EventQueue.java:454) [catch] 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) *********** Exception occurred ************ at Sat Jan 08 08:47:50 EET 2005 java.lang.NullPointerException at org.openide.explorer.propertysheet.PropertySetModelImpl.propsToList(PropertySetModelImpl.java:177) at org.openide.explorer.propertysheet.PropertySetModelImpl.initExpandable(PropertySetModelImpl.java:164) at org.openide.explorer.propertysheet.PropertySetModelImpl.init(PropertySetModelImpl.java:122) at org.openide.explorer.propertysheet.PropertySetModelImpl.setPropertySets(PropertySetModelImpl.java:111) at org.openide.explorer.propertysheet.SheetTabbedPane.setPropertySets(SheetTabbedPane.java:709) at org.openide.explorer.propertysheet.SheetTabbedPane.setNode(SheetTabbedPane.java:538) at org.openide.explorer.propertysheet.PropertySheet.checkForTabs(PropertySheet.java:1090) at org.openide.explorer.propertysheet.PropertySheet.setCurrentNode(PropertySheet.java:591) at org.openide.explorer.propertysheet.PropertySheet.doSetNodes(PropertySheet.java:407) at org.openide.explorer.propertysheet.PropertySheet.access$400(PropertySheet.java:49) at org.openide.explorer.propertysheet.PropertySheet$5.run(PropertySheet.java:529) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) at java.awt.EventQueue.dispatchEvent(EventQueue.java:454) [catch] 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)
This issue cannot happen with the layout supports provided by the form module because the names of the properties has been chosen to avoid clashes with the beans' properties. For example the 'Direction' property of the BorderLayoutSupport has name 'BorderConstraints direction'. I suggest you to change names of properties of your layout support in this way. Note that this name is only for internal purposes - it can differ from the display name and from the name of the corresponding property in your constraint bean.