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 79742 - NPE when setting the 'Start counter value' property for the For-each activity
Summary: NPE when setting the 'Start counter value' property for the For-each activity
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Nikita Krjukov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-05 09:07 UTC by Mikhail Kondratyev
Modified: 2006-07-24 11:35 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 Mikhail Kondratyev 2006-07-05 09:07:13 UTC
Steps to reproduce:
 - create a BPEL process
 - open it in designer
 - add For-each activity to the process
 - open properties window for the activity
 - try to set 'sdfsdf' as the value of the Start counter value property
NPE will be thrown:
java.lang.NullPointerException
	at
org.netbeans.modules.bpel.properties.props.editors.ExpressionPropEditor.setAsText(ExpressionPropEditor.java:91)
	at
org.openide.explorer.propertysheet.PropUtils.updatePropertyEditor(PropUtils.java:595)
	at org.openide.explorer.propertysheet.PropUtils.updateProp(PropUtils.java:617)
	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:668)
	at javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:783)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1571)
	at javax.swing.JComponent.processKeyBinding(JComponent.java:2763)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2798)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2726)
	at java.awt.Component.processEvent(Component.java:5265)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3955)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
	at
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:672)
	at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:920)
	at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:798)
	at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:636)
	at java.awt.Component.dispatchEventImpl(Component.java:3841)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Window.dispatchEventImpl(Window.java:1774)
	at java.awt.Component.dispatchEvent(Component.java:3803)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Nikita Krjukov 2006-07-20 19:53:23 UTC
The NPE has to be eliminated, but input of not numeric value to the integer 
condition comes to exception in other places. 
The following exception is output to consol: 
org.apache.commons.jxpath.JXPathException: Invalid XPath: ''. Syntax error at 
the beginning of the expression

But I suppose that it is allowed because any wrong condition can be entered in 
the source editor. And it has to be processed correctly. 

I suppose the special restrictions can be added to the property sheet later to 
allow entering only the numeric values. 
Comment 2 Mikhail Kondratyev 2006-07-24 11:35:06 UTC
Verified in build from 060723
The similar bug for Final Counter Value is filed as the NPE exists for that property