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 96877

Summary: Improve error message
Product: soa Reporter: hemant_bedekar <hemant_bedekar>
Component: BPEL ValidationAssignee: issues@soa <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: hemant_bedekar
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description hemant_bedekar 2007-03-01 01:19:17 UTC
If the 'condition' is missing from the 'If' BPEL construct, the validator throws
an error when trying to validate the BPEL. But the error message is not very
clear. It says - 

---- START ----
Error: cvc-complex-type.2.4.a: Invalid content was found starting with 
element 'bpws:empty'. One of 
'{"http://docs.oasis-open.org/wsbpel/2.0/process/executable":documentation,
WC[##other:"http://docs.oasis-open.org/wsbpel/2.0/process/executable"],
"http://docs.oasis-open.org/wsbpel/2.0/process/executable":targets,
"http://docs.oasis-open.org/wsbpel/2.0/process/executable":sources,
"http://docs.oasis-open.org/wsbpel/2.0/process/executable":condition}' 
is expected.
---- END ----

It could be "If construct needs a condition".
Comment 1 kiran_bhumana 2007-03-06 20:11:39 UTC
refer to my comment on http://www.netbeans.org/issues/show_bug.cgi?id=88832

One idea is that you can suggest that the file is invalid, because it has this.
Typically validation errors have two aspects. 
1) What is wrong in the current file?
2) What is correct and/or suggesting How it can be corrected?

I think what is missing is most likely suggestion. condition is required whether
or not the user puts targets/sources. Without condition this is going to fail
even when i add the targets and sources.
Comment 2 Vladimir Yaroslavskiy 2007-04-03 11:47:32 UTC

*** This issue has been marked as a duplicate of 91380 ***
Comment 3 Vladimir Yaroslavskiy 2008-03-04 15:04:00 UTC
*** Issue 120421 has been marked as a duplicate of this issue. ***