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.
Reproduced in build 060911. To reproduce the bug: - create a 'newLoanApplication' schema; - switch to Source view; - open Properties window; - add 'form="" ' attribute to 'loan' element; - click on 'Form' field in Properties window. Exception: java.lang.IllegalStateException: Error getting property value at org.openide.explorer.propertysheet.PropUtils.getPropertyEditor(PropUtils.java:872) at org.openide.explorer.propertysheet.PropUtils.getPropertyEditor(PropUtils.java:797) at org.openide.explorer.propertysheet.SheetTable.onCustomEditorButton(SheetTable.java:799) at org.openide.explorer.propertysheet.SheetTable.processMouseEvent(SheetTable.java:666) at java.awt.Component.processEvent(Component.java:5764) at java.awt.Container.processEvent(Container.java:1984) at java.awt.Component.dispatchEventImpl(Component.java:4407) at java.awt.Container.dispatchEventImpl(Container.java:2042) at java.awt.Component.dispatchEvent(Component.java:4237) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4248) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3909) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3842) at java.awt.Container.dispatchEventImpl(Container.java:2028) at java.awt.Window.dispatchEventImpl(Window.java:2405) at java.awt.Component.dispatchEvent(Component.java:4237) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:600) 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) ==> java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:589) at org.openide.nodes.PropertySupport$Reflection.getValue(PropertySupport.java:244) at org.netbeans.modules.xml.schema.ui.nodes.SchemaModelFlushWrapper.getValue(SchemaModelFlushWrapper.java:129) at org.openide.explorer.propertysheet.PropUtils.updateEdFromProp(PropUtils.java:885) at org.openide.explorer.propertysheet.PropUtils.getPropertyEditor(PropUtils.java:857) at org.openide.explorer.propertysheet.PropUtils.getPropertyEditor(PropUtils.java:797) at org.openide.explorer.propertysheet.SheetTable.onCustomEditorButton(SheetTable.java:799) at org.openide.explorer.propertysheet.SheetTable.processMouseEvent(SheetTable.java:666) at java.awt.Component.processEvent(Component.java:5764) at java.awt.Container.processEvent(Container.java:1984) at java.awt.Component.dispatchEventImpl(Component.java:4407) at java.awt.Container.dispatchEventImpl(Container.java:2042) at java.awt.Component.dispatchEvent(Component.java:4237) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4248) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3909) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3842) at java.awt.Container.dispatchEventImpl(Container.java:2028) at java.awt.Window.dispatchEventImpl(Window.java:2405) at java.awt.Component.dispatchEvent(Component.java:4237) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:600) 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) Caused by: java.lang.IllegalArgumentException: Invalid String value at org.netbeans.modules.xml.schema.model.impl.Util.parse(Util.java:47) at org.netbeans.modules.xml.schema.model.impl.LocalElementBaseImpl.getForm(LocalElementBaseImpl.java:102) ... 28 more ==> java.lang.IllegalArgumentException: Invalid String value at org.netbeans.modules.xml.schema.model.impl.Util.parse(Util.java:47) at org.netbeans.modules.xml.schema.model.impl.LocalElementBaseImpl.getForm(LocalElementBaseImpl.java:102) at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:589) at org.openide.nodes.PropertySupport$Reflection.getValue(PropertySupport.java:244) at org.netbeans.modules.xml.schema.ui.nodes.SchemaModelFlushWrapper.getValue(SchemaModelFlushWrapper.java:129) at org.openide.explorer.propertysheet.PropUtils.updateEdFromProp(PropUtils.java:885) at org.openide.explorer.propertysheet.PropUtils.getPropertyEditor(PropUtils.java:857) at org.openide.explorer.propertysheet.PropUtils.getPropertyEditor(PropUtils.java:797) at org.openide.explorer.propertysheet.SheetTable.onCustomEditorButton(SheetTable.java:799) at org.openide.explorer.propertysheet.SheetTable.processMouseEvent(SheetTable.java:666) at java.awt.Component.processEvent(Component.java:5764) at java.awt.Container.processEvent(Container.java:1984) at java.awt.Component.dispatchEventImpl(Component.java:4407) at java.awt.Container.dispatchEventImpl(Container.java:2042) at java.awt.Component.dispatchEvent(Component.java:4237) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4248) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3909) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3842) at java.awt.Container.dispatchEventImpl(Container.java:2028) at java.awt.Window.dispatchEventImpl(Window.java:2405) at java.awt.Component.dispatchEvent(Component.java:4237) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:600) 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)
added form property to deal with invalid form values entered in source editor. we will catch invocationtarget exception and check if its thrown by schema model api due to invalid form property. UI will show it as form property not set.
Verified in build060912.