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.
Steps to reproduce 1. Create New WSDL 2. Select "Concrete type" in the wsdl wizzard 3. Select "File" from the drop down 4. Select "Solcited Read" 5. Follow the wizard and create a WSDL 6. Use the created wsdl in your BPEL to invoke 7. Try to build it you will get the following error BPEL requires the input and output variables to be created. But there us request/reply pattern when input (and probably output) is empty.
we are planning to change the validation in the following way: - if input message of requested PL doesn't have part then we don't require to create and use the input variable in BPEL invoke.
Created attachment 71658 [details] Test project
How to verify: 1. Open attached project 2. Open Synchronous.bpel document 3. Validate it, there should not be error "For <invoke>, one-way invocation requires only the inputVariable ... " 4. Open wsdl.wsdl file, uncomment par "part1" in message "PollInputMessage" 5. Save it and validate bpel again 6. The error must be.
fixed in soa-dev: http://hg.netbeans.org/soa-dev/rev/9594603d2aef
updated rules: 1. Variable needs to be associated with Receive/Invoke activity's input/output 2. If a variable is associated with message type with no parts, no need for initialization before it is used.
fixed correction in soa-dev: http://hg.netbeans.org/soa-dev/rev/2edbff4e0c49
Created attachment 71773 [details] Test project
Steps to verification: 1. Open attached corrected project BpelModule 2. Open Synchronous.bpel document 3. Validate it, there should *not* be error ERROR: The variable "PollIn" is not initialized, but used.
I'm using NetBeans 6.5.1 and I noticed this problem. I tried to validate your test project with Netbeans 6.5.1 and I get the following error too: /home/chris/NetBeansProjects/BpelModule/src/Synchronous.bpel:64: 8 ERROR: The variable "PollIn" is not initialized, but used. Is this a regression or is there another way to do this now?
It is the variation of the same bug. It should be 1. Variable is associated with messaging activity and its message type is with no parts, no need for initialization before it is used. 2. It is OK to associate no variable for input or/and output a given messaging activity, if the associated message type is with no parts.
I tried with the latest GlassFish ESB v2.1 Nightly build (Unstable) from https://open-esb.dev.java.net/Downloads.html 1. I open the latest test project (see last attachment) 2. Invoke validation for the bpel document 3. See that there is *no* error "The variable "PollIn" is not initialized, but used." Note, if you use NetBeans 6.5.1 from http://www.netbeans.org, the NetBeans 6.5.1 does not contain this fix. The fix is in GlassFish ESB only.
Created attachment 80159 [details] Last test project
Tested with 6-dec-09 build. No error message displayed with attached project.
Closing ticket.