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 146850 - BPEL Validation Error: WSDL message with no part
Summary: BPEL Validation Error: WSDL message with no part
Status: VERIFIED WORKSFORME
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Validation (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-10 21:37 UTC by nnahata
Modified: 2009-12-07 10:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
WSDL with message that has no <part> element (2.16 KB, text/plain)
2008-09-10 21:40 UTC, nnahata
Details
Bpel process that invokes syncRead wsdl (2.61 KB, text/plain)
2008-09-10 21:41 UTC, nnahata
Details
trigger wsdl (2.17 KB, text/plain)
2008-09-10 21:41 UTC, nnahata
Details
Test project (7.62 KB, application/x-compressed)
2008-09-11 11:13 UTC, Vladimir Yaroslavskiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nnahata 2008-09-10 21:37:49 UTC
I have a WSDL message which does not contain any part elements:

<definitions ...>
  <message name="SolicitReadInputMessage">
  </message>

When using this WSDL with invoke activity, BPEL gives a validation error:

           ERROR: The variable "ReadIn" is not initialized, but used.

This error goes away if the message has a part definition:

<message name="SolicitReadInputMessage">
       <part name="part1" type="xsd:string"/>
   </message>

This seems like a BPEL validation bug as I believe messages with no-parts should be allowed.
Comment 1 nnahata 2008-09-10 21:40:33 UTC
Created attachment 69583 [details]
WSDL with message that has no <part> element
Comment 2 nnahata 2008-09-10 21:41:20 UTC
Created attachment 69584 [details]
Bpel process that invokes syncRead wsdl
Comment 3 nnahata 2008-09-10 21:41:47 UTC
Created attachment 69585 [details]
trigger wsdl
Comment 4 Sergey Lunegov 2008-09-11 10:45:57 UTC
Vladimir, please look at this ASAP.
Comment 5 Vladimir Yaroslavskiy 2008-09-11 11:12:30 UTC
I don't see any validation errors in BPEL. I created project (see attachment) with provided bpel and wsdl files,
validated BPEL file, there is only one warning about not used variable:

XML validation started.

C:/Documents and Settings/v1v/My Documents/NetBeansProjects/BpelModule/src/newProcess2.bpel:20,8
WARNING: The variable "PollIn" is initialized and not used.

0 Error(s),  1 Warning(s).
XML validation finished.

If you look at the variable "PollIn", you find that it is initialized in receive activity "Receive1" and never used, so
warning (not error) is shown.
Comment 6 Vladimir Yaroslavskiy 2008-09-11 11:13:23 UTC
Created attachment 69632 [details]
Test project
Comment 7 Venu V 2008-09-19 19:59:49 UTC
Using GlassFish ESB build 20080918, the bpel editor throws validation error,  please fix this issue, we need this
feature ability to read a file from the middle of bpel process for Glassfish ESB release.  
Comment 8 Sergey Lunegov 2008-09-22 12:03:12 UTC
Please attach project where issue is reproducible. We couldn't do it with given WSDLs and BPEL.
Comment 9 Sergey Lunegov 2008-09-23 15:21:43 UTC
Issue is not reproducible. Moreover looks like issue is invalid.
Comment 10 _ alexpetrov 2009-12-07 10:22:27 UTC
Verified on:
gfesbv22_620_20091207_1714
Product Version: NetBeans IDE 6.7.1 (Build 200911291800)
Java: 1.5.0_22; Java HotSpot(TM) Client VM 1.5.0_22-b03
System: Linux version 2.6.31-14-generic running on i386; UTF-8; en_US (nb)