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 - Improve error message
Summary: Improve error message
Status: RESOLVED DUPLICATE of bug 91380
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Validation (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@soa
URL:
Keywords:
: 120421 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-03-01 01:19 UTC by hemant_bedekar
Modified: 2008-03-04 15:04 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***