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 135922 - Validation fails valid even process
Summary: Validation fails valid even process
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: IEP editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Yanbing Lu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-27 18:07 UTC by Yanbing Lu
Modified: 2008-11-03 22:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
process *.iep file with only TableInput as input. (7.34 KB, text/plain)
2008-11-03 17:37 UTC, jlautz
Details
process *.iep file with savestream as output. (3.48 KB, text/plain)
2008-11-03 17:38 UTC, jlautz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yanbing Lu 2008-05-27 18:07:45 UTC
Validation fails on event prcesses that have only TableOutput or InvokeStream
but no StreamOutput, RelationOutput, or BatchedStreamOutput.

Please fix

XML validation started.
C:/mysoaprojects/quotesIEP/src/quotes.iep:2,0
ERROR: atleast one output type operator must be on the plan.
Comment 1 pvarghese 2008-07-28 18:33:50 UTC
evaluating
Comment 2 pvarghese 2008-07-28 20:13:44 UTC
started to fix validation to include the two output operators TableOuput and InvokeStream
Comment 3 pvarghese 2008-07-28 22:17:34 UTC
Could not reproduce this situation.
Used both the TableOutput and InvokeStream operators and configured it without any other output operators and validated
the iep process. The reported validation errors are not reported. 

Bing also mentioned that it has been fixed. This is put back to QA testing. 
Comment 4 kdoizaki 2008-10-23 03:10:14 UTC
Tested using JavaCAPS6 + IEP nbm files from soarelease build081021_3.

Reopening this ticket due to validation error observed with Table Output operator.

(1) Created an iep process using only Invoke Stream as output and I did not observe any validation errors.
(2) Created an IEP project and iep process using only Table Output (StreamInput > TupleBasedWindow > TableOutput). Saved
and then tried to build the IEP project. As a result I got the following error in build.xml(dist) tab of the output panel:

C:/IEPbugs/IepNBBugs/IepBug135922/src/bug135922.iep:2: 1
ERROR: atleast one output type operator must be on the plan.

C:\IEPBugs\IepNBBugs\IepBug135922\nbproject\build-impl.xml:143: Found validation error(s).

Comment 5 pvarghese 2008-10-29 00:35:07 UTC
started
Comment 6 Yanbing Lu 2008-10-29 00:50:02 UTC
An event processors that only have Table-Output on its output side is considered as valid.
For example, I want to build a BAM application that displays the current content of 
a collection of sliding windows, then the backend event processor may only have Table-Output
operators on its output side.

An event processor that only have invoke-stream on its output side is also considered as valid.
Because its callee can have Stream-Output, Relation-Output, Table-Output, etc.
Comment 7 pvarghese 2008-10-29 03:59:36 UTC
This validation error has been fixed 

1) soarelease branch checkin
changeset:   131:93e8c719d780
tag:         tip
date:        Tue Oct 28 19:56:57 2008 -0700
files:       
iep.editor/src/vm/iep/library.xml
description:
#135922 made the TableOuput operator an output type by specifying the property wsType


2) soa-dev branch checkin
changeset:   86893:e72b211c40c4
tag:         tip
date:        Tue Oct 28 19:49:51 2008 -0700
files:       
iep.editor/src/vm/iep/library.xml
description:
#135922 made the TableOuput operator an output type by specifying the property wsType

Comment 8 pvarghese 2008-10-29 18:48:01 UTC
After a discussion, there are issues is changing the wsType property to an output type and hence it is decided to
rollback that change and give each operator two transient properties (name to be added) that will be used for the
validation filter checks. 

Hence rolling back the change and reopening the bug and assigning it to Bing. 
Comment 9 pvarghese 2008-10-29 19:00:20 UTC
Rolled back changes

1) soarelease branch
changeset:   138:7db14a9d5abc
tag:         tip
date:        Wed Oct 29 10:57:30 2008 -0700
files:       iep.editor/src/vm/iep/library.xml
description:
135922 rolling back the addition of wsType property to TableOutput operator

2) soa-dev branch 
changeset:   86902:a843fcb9d47f
tag:         tip
date:        Wed Oct 29 10:54:13 2008 -0700
files:       iep.editor/src/vm/iep/library.xml
description:
135922 rolling back the addition of wsType property to TableOutput operator


Comment 10 Yanbing Lu 2008-10-29 22:22:50 UTC
An event processor is not valid if it doesn't have at least one of StreamInput, ExternalTablePoolingStream, and 
ReplayStream on its input side

An event processor is not valid if it doesn't have at least one of StreamOuput, BatchedStreamOutput, TableOutput,
SaveStream, InvokeStream, and RelationOutput on its output side

Introduced transient property: entry, and exit. Property "entry" is true for StreamInput, ExternalTablePoolingStream, 
and ReplayStream. It is false for the rest.  Property "exit" is true for StreamOuput, BatchedStreamOutput, TableOutput,
SaveStream, InvokeStream, and RelationOutput. It is false for the rest.
Comment 11 jlautz 2008-11-03 17:23:53 UTC
Validated on Windows Vista with Java CAPS 6U1 build081030.

An event processor is not valid if it doesn't have at least one of StreamInput, ExternalTablePoolingStream, and 
ReplayStream on its input side

An event processor is not valid if it doesn't have at least one of StreamOuput, BatchedStreamOutput, TableOutput,
SaveStream, InvokeStream, and RelationOutput on its output side

=> I was able to define a processor with just TableInput as the input, and validate it.
Comment 12 jlautz 2008-11-03 17:27:11 UTC
=> Also, a process with a SaveStream as output failed validation with the following message:
C:/Users/Jennifer Lautz/Documents/NetBeansProjects/i135922/src/strInSaveStrOut.iep:2,0
ERROR: atleast one output type operator must be on the plan.

*.iep files for the two issues found on retesting are attached.
Comment 13 jlautz 2008-11-03 17:37:14 UTC
Created attachment 73143 [details]
process *.iep file with only TableInput as input.
Comment 14 jlautz 2008-11-03 17:38:02 UTC
Created attachment 73144 [details]
process *.iep file with savestream as output.
Comment 15 Yanbing Lu 2008-11-03 19:40:54 UTC
Fixed in soa-dev branch, and soarelease branch.
Comment 16 jlautz 2008-11-03 22:05:20 UTC
Verified on Windows Vista on JavaCAPs 6 with NB 6.1 Patch 4 + IEP + other required *.nbms from ojc build20081103_6.