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 83686 - Validator mark first 'ElseIf' with errors in case of errors in 'If' section
Summary: Validator mark first 'ElseIf' with errors in case of errors in 'If' section
Status: VERIFIED WONTFIX
Alias: None
Product: soa
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Praveen Savur
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-29 11:51 UTC by Andrey Yamkovoy
Modified: 2007-08-15 19:58 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 Andrey Yamkovoy 2006-08-29 11:51:38 UTC
Steps to reproduce:
- Add 'If' activity to BPEL process.
- Add 'ElseIf' section to 'If' activity.
- Set 'Condition' property for 'If' and 'ElseIf'.
- Add 'Empty' activity to 'ElseIf' section.
- Validate BPEL.
- Notice that validator marks 'ElseIf' section but error actually in 'If' 
section.
Comment 1 Michael Frisino 2006-08-29 15:06:52 UTC
see if problem is with badge assignment or with "locate elemnent for error" logic.
Comment 2 Alexey Yarmolenko 2006-08-30 01:36:33 UTC
Validation item refers ElseIf element instead of If. So, diagram behaves 
correctly here.

Validation item says that elseIf element was found, while acivity element was 
expected to be the element going next to condition element inside If. 

Reassigning bug to Praveen.
Comment 3 Ritesh Adval 2006-09-06 01:49:53 UTC
bpel validation bug, changing subcomponent.

Should we create a subcomponent called "validation"?
Comment 4 Praveen Savur 2006-09-07 00:24:34 UTC
Reassigned to issues@enterprise by mistake. Reassigning to myself.
Comment 5 Praveen Savur 2006-09-07 18:32:18 UTC
Code and corressponding error message are shown below. 

The problem here is that bpel schema validation is done by jdk validator and it
complains when it sees <elseif> element and reports the error on <elseif>. 

 For design view this error is shown on the 'elseif' element. It would be easier
to understand if this was reported on the 'if' element. Since we do not have
control over which element the error is reported on by the jdk validator, I
don't see any reasonable way in which this bug could be fixed. 



        <if name="If1">
            <condition>$outputVar.resultType/ns0:paramA</condition>   
            <elseif>
                <condition>$inputVar.inputType/ns0:paramA</condition>
                <empty name="Empty1"/>
            </elseif>
        </if>



cvc-complex-type.2.4.a: Invalid content was found starting with element
'elseif'. One of
'{"http://schemas.xmlsoap.org/ws/2004/03/business-process/":empty,
"http://schemas.xmlsoap.org/ws/2004/03/business-process/":invoke,
"http://schemas.xmlsoap.org/ws/2004/03/business-process/":receive,
"http://schemas.xmlsoap.org/ws/2004/03/business-process/":reply,
"http://schemas.xmlsoap.org/ws/2004/03/business-process/":assign,
"http://schemas.xmlsoap.org/ws/2004/03/business-process/":validate,
"http://schemas.xmlsoap.org/ws/2004/03/business-process/":wait,
"http://schemas.xmlsoap.org/ws/2004/03/business-process/":throw,
"http://schemas.xmlsoap.org/ws/2004/03/business-process/":rethrow,
"http://schemas.xmlsoap.org/ws/2004/03/business-process/":exit,
"http://schemas.xmlsoap.org/ws/2004/03/business-process/":flow,
"http://schemas.xmlsoap.org/ws/2004/03/business-process/":if,
"http://schemas.xmlsoap.org/ws/2004/03/business-process/":while,
"http://schemas.xmlsoap.org/ws/2004/03/business-process/":repeatUntil,
"http://schemas.xmlsoap.org/ws/2004/03/business-process/":sequence,
"http://schemas.xmlsoap.org/ws/2004/03/business-process/":pick,
"http://schemas.xmlsoap.org/ws/2004/03/business-process/":scope,
"http://schemas.xmlsoap.org/ws/2004/03/business-process/":compensate,
"http://schemas.xmlsoap.org/ws/2004/03/business-process/":compensateScope,
"http://schemas.xmlsoap.org/ws/2004/03/business-process/":forEach,
"http://schemas.xmlsoap.org/ws/2004/03/business-process/":extensionActivity}' is
expected.

Comment 6 _ hong_lin 2007-08-15 19:58:46 UTC
Close "WONTFIX", "LATER", REMIND", "DUPLICATE", "WORKSFORME", "MOVED" issue
against previous releases