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.
Veto exception is thrown whenever user sets an incorrect name for a BPEL activity: rg.netbeans.modules.bpel.properties.props.RuntimeVetoException: org.netbeans.modules.bpel.model.api.events.VetoException: String "2" is not acceptable as value for attribute "name". at org.netbeans.modules.bpel.properties.props.PropertyUtils$Reflection.setValue(PropertyUtils.java:693) at org.openide.explorer.propertysheet.NodePropertyModel.setValue(NodePropertyModel.java:88) at org.openide.explorer.propertysheet.PropUtils.noDlgUpdateProp(PropUtils.java:565) at org.openide.explorer.propertysheet.PropUtils.updateProp(PropUtils.java:533) at org.openide.explorer.propertysheet.PropUtils.updateProp(PropUtils.java:639) at org.openide.explorer.propertysheet.SheetCellEditor.stopCellEditing(SheetCellEditor.java:350) at org.openide.explorer.propertysheet.SheetCellEditor.actionPerformed(SheetCellEditor.java:217) at javax.swing.JTextField.fireActionPerformed(JTextField.java:487) at javax.swing.JTextField.postActionEvent(JTextField.java:675) at javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:790) at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1633) at javax.swing.JComponent.processKeyBinding(JComponent.java:2869) at javax.swing.JComponent.processKeyBindings(JComponent.java:2904) at javax.swing.JComponent.processKeyEvent(JComponent.java:2832) at java.awt.Component.processEvent(Component.java:5732) at java.awt.Container.processEvent(Container.java:1960) at java.awt.Component.dispatchEventImpl(Component.java:4365) at java.awt.Container.dispatchEventImpl(Container.java:2018) at java.awt.Component.dispatchEvent(Component.java:4195) at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1828) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:693) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:950) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:822) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:657) at java.awt.Component.dispatchEventImpl(Component.java:4237) at java.awt.Container.dispatchEventImpl(Container.java:2018) at java.awt.Window.dispatchEventImpl(Window.java:2210) at java.awt.Component.dispatchEvent(Component.java:4195) [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) Caused by: org.netbeans.modules.bpel.model.api.events.VetoException: String "2" is not acceptable as value for attribute "name". at org.netbeans.modules.bpel.model.impl.services.CheckNameService.throwVetoException(CheckNameService.java:149) at org.netbeans.modules.bpel.model.impl.services.CheckNameService.checkNCNameAndVariable(CheckNameService.java:122) at org.netbeans.modules.bpel.model.impl.services.CheckNameService.preDispatch(CheckNameService.java:94) at org.netbeans.modules.bpel.model.impl.BpelModelImpl.preInnerEventNotify(BpelModelImpl.java:532) at org.netbeans.modules.bpel.model.impl.AttributeAccess.preUpdateAttribute(AttributeAccess.java:1134) at org.netbeans.modules.bpel.model.impl.AttributeAccess.preUpdateAttribute(AttributeAccess.java:1125) at org.netbeans.modules.bpel.model.impl.AttributeAccess.setBpelAttribute(AttributeAccess.java:213) at org.netbeans.modules.bpel.model.impl.BpelEntityImpl.setBpelAttribute(BpelEntityImpl.java:378) at org.netbeans.modules.bpel.model.impl.NamedElementImpl.setName(NamedElementImpl.java:61) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:589) at org.netbeans.modules.bpel.properties.props.PropertyUtils$Reflection.setValue(PropertyUtils.java:671) ... 34 more
The main problem was because of the property sheet framework catch all exceprions. So it necessary to use the Error instead of Runtime Exception as a base classs of special throable.
Verified in build from 060723