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.
Summary: | IllegalArgumentException when adding binding; confuses WSDL model for document | ||
---|---|---|---|
Product: | xml | Reporter: | jlautz <jlautz> |
Component: | WSDL Tools | Assignee: | Jun Qian <jqian> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | asif_m, skini, vchellasamy |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Stack trace for first IllegalArgumentException
Stack trace for subsequent IllegalStateException (Add Message action) Screenshot showing "ghost" Binding1 Expected dialog after clicking Add Binding. |
Description
jlautz
2009-04-23 21:42:10 UTC
Created attachment 80796 [details]
Stack trace for first IllegalArgumentException
Created attachment 80797 [details]
Stack trace for subsequent IllegalStateException (Add Message action)
Created attachment 80798 [details]
Screenshot showing "ghost" Binding1
I think the user should not be able to add a new Binding when there is no PortType defined in the WSDL document. The reported issue can be fixed either by disabling the "Add Binding" action or by showing some error message dialog after the "Add Binding" action is invoked if there is no PortType defined. I don't think this is a P1 issue. The automated tests are probably not valid use cases. Downgrading to P3. This is a regression. These tests cases have worked for at least a few releases before now. Jennifer, could you please describe your test case? What does it try to test? The wsdl file ends up in unused state, this is a usability issue which any developer would get into this situation. There should be gui level validation to check if port types has been defined, if not, it should disable the "Add Binding" option or create a default port automatically. We should fix this issue as soon as possible, I would mark this as P1, or atleast P2 issue. This is a valid negative test case which check the validation of wsdl interaction. Screenshot added of original behavior from JavaCAPS 6 kit. Created attachment 80810 [details]
Expected dialog after clicking Add Binding.
Jenifer, thanks for the snapshot for the original behavior. Fixed in soa-dev65 branch: http://hg.netbeans.org/soa-dev65/rev/c43d74492392 Please let me know if you want this fix to be included in gfesbv21 branch after your verification. Thanks for the quick turnaround, Jun! I verified the fix with soadev65 kit sierra_557_20090424_0510. Yes, please could you port the fix to the Glassfish V2.1 branch. Transplanted the fix into gfesbv21 branch: http://hg.netbeans.org/gfesbv21/rev/104974d158f9 Verified on Glassfish ESB 2.1 on windows Vista: PRODUCT_BUILD=20090426-0723 NETBEANS_BUILD=200904151427 NETBEANS_VERSION=6.5.1 SOA_BUILD=090426 NETBEANS_VERSION=Sierra/soarelease Build |