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 84716 - Exception on clicking on 'Form' field in Properties window
Summary: Exception on clicking on 'Form' field in Properties window
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: bhate
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-12 16:02 UTC by kozlov
Modified: 2006-09-14 15:54 UTC (History)
3 users (show)

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 kozlov 2006-09-12 16:02:32 UTC
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)
Comment 1 bhate 2006-09-13 00:57:12 UTC
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.
Comment 2 kozlov 2006-09-14 15:54:04 UTC
Verified in build060912.