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 81289 - proepertyAlias validation problem
Summary: proepertyAlias validation problem
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Praveen Savur
URL:
Keywords:
Depends on:
Blocks: 80978
  Show dependency tree
 
Reported: 2006-07-27 22:04 UTC by Ritesh Adval
Modified: 2007-05-31 11:51 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
bpel and wsdls (2.64 KB, application/octet-stream)
2006-07-27 22:05 UTC, Ritesh Adval
Details
email on people not figuring out how to fix this (8.48 KB, application/octet-stream)
2006-08-28 19:33 UTC, Ritesh Adval
Details
another email thread with a different user facing the same problem (18.67 KB, application/octet-stream)
2006-08-28 19:35 UTC, Ritesh Adval
Details
attaching another project showing the same error (21.94 KB, application/octet-stream)
2006-08-28 19:36 UTC, Ritesh Adval
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ritesh Adval 2006-07-27 22:04:32 UTC
attached are bpel and wsdls.
Copy these to a new bpel project and build, you will see following relvant 
for which this bug is filed:

C:\Documents and Settings\radval\BpelModule8\src\corrInvRec_parent.bpel:59: 
column:16 ERROR: Not found propertyAlias for property "{CorrInvRecParent}
property" usage for the associated variables type are in any WSDL definitions 
directly imported by the WS-BPEL process.
C:\Documents and Settings\radval\BpelModule8\src\corrInvRec_parent.bpel:70: 
column:16 ERROR: Not found propertyAlias for property "{CorrInvRecParent}
property" usage for the associated variables type are in any WSDL definitions 
directly imported by the WS-BPEL process.


note that wsdl corrInvRec_parent

has propertyAlias defined for property "property" but still above errors are 
happening.

<bpws:property name="property"
                   type="xsd:string"/>
    <bpws:propertyAlias propertyName="tns:property"
                        messageType="tns:CorrInvRecParentMessage"
                        part="CorrInvRecParentPart">
            <bpws:query>/CorrInvRecParentElement/string</bpws:query>
    </bpws:propertyAlias>
Comment 1 Ritesh Adval 2006-07-27 22:05:44 UTC
Created attachment 32269 [details]
bpel and wsdls
Comment 2 Denis Anisimov 2006-07-28 08:31:10 UTC
Could you please point me propertyAlias for property used in 
"<invoke partnerLink="plink_child"/>".

This invoke has reference to correlation set "corProp1" that defines 
property "ns1:property".

I see only one propertyAlias for this property :

<bpws:propertyAlias propertyName="tns:property"
                        messageType="tns:CorrInvRecParentMessage"
                        part="CorrInvRecParentPart">
            <bpws:query>/CorrInvRecParentElement/string</bpws:query>
    </bpws:propertyAlias>

But it has different message type neither used in
operation="CorrInvRecChildOperation" in invoke.

So what is matter of issue ?
Comment 3 Ritesh Adval 2006-07-28 22:04:52 UTC
Ok this error make sense but issue is how to figure out what to be fixed?

Can we make this validation error message more descriptive, This will help user 
specially those who are not bpel experts understand how to fix it. Even though 
I know bpel it was hard for me to figure out how to fix this error.

currently it says something like this:

Not found propertyAlias for property "{CorrInvRecParent}
property" usage for the associated variables type are in any WSDL definitions 
directly imported by the WS-BPEL process.

May be we should show error something like this:

CorrelationSet "corProp1" is used in activity "invoke", so for each
property in this CorrelationSet, there should be a propertAlias defined in wsdl,
[which has messageType attribute same as the meesageType attribute as defined 
in input variable "childOperation"].

note what is described in [] is for the case when input variable in invoke 
activity is defined using "messageType" attribute. 

Following could be the description inside [] for variable which has element 
attribute:
[which has element attribute same as the element attribute as defined in input 
variable "childOperation"].

Following could be for variable which has type attribute:
[which has type attribute same as the type attribute as defined in input 
variable "childOperation"].

Also above example shows only invoke activity. This is applicable simlary for 
all the other activities which allow correlation. (receive/reply etc)


More descriptive the messages are more we can help user fix these errors 
quickly.




Comment 4 Michael Frisino 2006-07-30 18:46:20 UTC
Denis is on vacation. Assigning to Praveen, or I may change it myself.
Comment 5 Ritesh Adval 2006-08-28 19:30:19 UTC
This is very confusing error and should be fixed asap.

Attaching emails  as to people are running into this confusing error and have 
no clue how to fix.
Comment 6 Ritesh Adval 2006-08-28 19:33:55 UTC
Created attachment 33326 [details]
email on people not figuring out how to fix this
Comment 7 Ritesh Adval 2006-08-28 19:35:14 UTC
Created attachment 33327 [details]
another email thread with a different user facing the same problem
Comment 8 Ritesh Adval 2006-08-28 19:36:18 UTC
Created attachment 33328 [details]
attaching another project showing the same error
Comment 9 Ritesh Adval 2006-08-28 19:55:47 UTC
Please fix this one.
Comment 10 Praveen Savur 2006-08-31 03:17:28 UTC
Updated messages to look like below. Reopen this issue if you feel the message
needs to be more descriptive.



C:/temp2/to_delete/propertyalias_bug/BpelModule2/src/corrInvRec_parent.bpel:59,16
The property "{CorrInvRecParent}property" defined in correlation set "corProp1"
does not have a propertyAlias defined in any of the WSDL definitions directly
imported by this BPEL process. You must add a propertyAlias (in one of the
imported WSDL definitions) for the WSDL message-type/BPEL variable type used in
the enclosing <receive>,<reply>,<invoke>,<onMessage>,<onEvent> activity. The
propertyAlias must use one of - messageType-part, type or element attributes
similar to how the BPEL variable is defined.

C:/temp2/to_delete/propertyalias_bug/BpelModule2/src/corrInvRec_parent.bpel:70,16
The property "{CorrInvRecParent}property" defined in correlation set "corProp1"
does not have a propertyAlias defined in any of the WSDL definitions directly
imported by this BPEL process. You must add a propertyAlias (in one of the
imported WSDL definitions) for the WSDL message-type/BPEL variable type used in
the enclosing <receive>,<reply>,<invoke>,<onMessage>,<onEvent> activity. The
propertyAlias must use one of - messageType-part, type or element attributes
similar to how the BPEL variable is defined.
Comment 11 Victoria Zhukovskaya 2007-05-31 11:51:58 UTC
I see the message like above 
NetBeans IDE Dev (Build 200705300000)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
en_US (nb); Cp1252