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 149735 - BPEL doesn't allow empty request to be excecuted
Summary: BPEL doesn't allow empty request to be excecuted
Status: CLOSED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Validation (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-10 11:25 UTC by Sergey Lunegov
Modified: 2009-12-08 00:17 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test project (10.38 KB, application/x-compressed)
2008-10-13 12:58 UTC, Vladimir Yaroslavskiy
Details
Test project (10.38 KB, application/x-compressed)
2008-10-14 15:09 UTC, Vladimir Yaroslavskiy
Details
Last test project (10.54 KB, application/x-compressed)
2009-04-15 14:32 UTC, Vladimir Yaroslavskiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Lunegov 2008-10-10 11:25:21 UTC
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.
Comment 1 Vladimir Yaroslavskiy 2008-10-13 12:29:11 UTC
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.
Comment 2 Vladimir Yaroslavskiy 2008-10-13 12:58:23 UTC
Created attachment 71658 [details]
Test project
Comment 3 Vladimir Yaroslavskiy 2008-10-13 13:01:16 UTC
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.
Comment 4 Vladimir Yaroslavskiy 2008-10-13 13:03:31 UTC
fixed in soa-dev: http://hg.netbeans.org/soa-dev/rev/9594603d2aef
Comment 5 Vladimir Yaroslavskiy 2008-10-14 14:47:05 UTC
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.
Comment 6 Vladimir Yaroslavskiy 2008-10-14 15:07:19 UTC
fixed correction in soa-dev: http://hg.netbeans.org/soa-dev/rev/2edbff4e0c49
Comment 7 Vladimir Yaroslavskiy 2008-10-14 15:09:10 UTC
Created attachment 71773 [details]
Test project
Comment 8 Vladimir Yaroslavskiy 2008-10-14 15:20:06 UTC
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.
Comment 9 hydr0g3n 2009-04-13 18:32:56 UTC
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?
Comment 10 Murali Pottlapelli 2009-04-13 18:59:35 UTC
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.
Comment 11 Vladimir Yaroslavskiy 2009-04-15 14:29:52 UTC
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.
Comment 12 Vladimir Yaroslavskiy 2009-04-15 14:32:30 UTC
Created attachment 80159 [details]
Last test project
Comment 13 umeshvats 2009-12-08 00:16:40 UTC
Tested with 6-dec-09 build. No error message displayed with attached project.
Comment 14 umeshvats 2009-12-08 00:17:03 UTC
Closing ticket.