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 96852 - No validation when TupleBasedAggregator has no stream input
Summary: No validation when TupleBasedAggregator has no stream input
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: IEP editor (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Ritesh Adval
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-28 21:13 UTC by lchang
Modified: 2008-09-09 19:46 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 lchang 2007-02-28 21:13:23 UTC
Build: Netbeans Milestone 7b

Steps to reproduce:
1.  Drag in a Tuple or Time Based Aggregator into the IEP Editor
2.  Drag in a Table Input and configure the Aggregator operator
3.  Validate the process.

Result:
No error was thrown even though no Stream Input is linked to the Aggregator.
Comment 1 Rahul Dwivedi 2007-04-19 01:30:36 UTC
fixed by making input schema as required property and changes in default 
validator.
Comment 2 lchang 2007-05-18 00:19:38 UTC
When validating this scenario, the appropriate errors were shown, but it also 
caused a Null Pointer Exception

java.lang.NullPointerException
	at org.netbeans.core.output2.AbstractLines.addListener
(AbstractLines.java:512)
	at org.netbeans.core.output2.OutWriter.println(OutWriter.java:513)
	at org.netbeans.core.output2.OutWriter.println(OutWriter.java:502)
	at org.netbeans.core.output2.NbWriter.println(NbWriter.java:46)
	at org.netbeans.modules.iep.editor.designer.PdCanvas.validatePlan
(PdCanvas.java:192)
	at 
org.netbeans.modules.iep.editor.designer.PlanDesigner$10.actionPerformed
(PlanDesigner.java:164)
	at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed
(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:242)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased
(BasicButtonListener.java:236)
	at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:272)
	at java.awt.Component.processMouseEvent(Component.java:6038)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
	at java.awt.Component.processEvent(Component.java:5803)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4410)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent
(Container.java:3986)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2429)
	at java.awt.Component.dispatchEvent(Component.java:4240)
[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)
Comment 3 Ritesh Adval 2008-01-07 23:33:41 UTC
verified that validation works. The error shown is :

C:/tmp/2008/IepModule1/src/valtest.iep:45,12
Error: property "inputSchemaIdList" is required but undefined.

verified that no exception occurs.
Comment 4 jlautz 2008-07-21 23:00:56 UTC
If I do the described scenario and validate the process, I get no errors.

Retested with Java CAPS 6 with NB 6.1 patches applied and IEP nbms for Build080720 (july 20) installed.
Comment 5 Ritesh Adval 2008-07-30 23:49:42 UTC
started
Comment 6 Ritesh Adval 2008-08-04 23:44:57 UTC
fixed now.
Comment 7 jlautz 2008-09-09 19:46:08 UTC
Verified fixed with Build080909 IEP *.nbms with NB 6.1 with Patch 3 on Windows Vista.

I now see lots of validation errors and no NPEs.