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 86525 - documentation element for partnerlinktype element leads to ClassCastException
Summary: documentation element for partnerlinktype element leads to ClassCastException
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: WSDL Tools (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Shivanand Kini
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-05 00:12 UTC by jlautz
Modified: 2006-10-10 08:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace for ClassCastException. (2.03 KB, application/octet-stream)
2006-10-05 00:15 UTC, jlautz
Details
Screen shot showing that the source and WSDL editor are out-of-sync. (2.93 MB, application/octet-stream)
2006-10-05 00:15 UTC, jlautz
Details
WSDL file at end of scenario. (2.52 KB, application/octet-stream)
2006-10-05 00:17 UTC, jlautz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jlautz 2006-10-05 00:12:30 UTC
Seen on Windows XP with NB 55 061003 and JDK 1.5.0_07:

1. Create a WSDL document using the default values of the WSDL wizard.
2. In the WSDL editor, select the generated partnerlinktype node and in the
context menu, choose Add -> documentation.
3. In the properties pane for the documentation element, add text in the Text field.
4. Run XML Validation.
==> I get the following validation message:

XML validation started.
C:/cokebuilds/projects/WSDLInterestingTests/src/partnerlinkdocerror.wsdl:42,8
cvc-complex-type.2.4.a: Invalid content was found starting with element
'plink:documentation'. One of
'{"http://schemas.xmlsoap.org/ws/2004/03/partner-link/":role}' is expected.

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

5. I try to delete the documentation node.
==> I get a ClassCastException (stack trace attached).
6. I delete the documentation element in the source view.
==> When I switch back to the WSDL editor, the documentation node is still
shown. (screenshot attached) 

Resulting WSDL file attached.
Comment 1 jlautz 2006-10-05 00:15:22 UTC
Created attachment 34886 [details]
Stack trace for ClassCastException.
Comment 2 jlautz 2006-10-05 00:15:54 UTC
Created attachment 34887 [details]
Screen shot showing that the source and WSDL editor are out-of-sync.
Comment 3 jlautz 2006-10-05 00:17:03 UTC
Created attachment 34888 [details]
WSDL file at end of scenario.
Comment 4 Shivanand Kini 2006-10-06 03:24:04 UTC
Fixed in release55_dev
Comment 5 Shivanand Kini 2006-10-07 02:43:34 UTC
Fixed this in release55. 

Code reviewed by Nam and Ritesh.
Comment 6 gc140975 2006-10-10 08:24:49 UTC
Verified the build 061009_1 found the bug is fixed

I did the steps as in steps-to reproduce,I did not see any validation failures 
or errors and also any class cast exception after deleting the documentation 
element and switching between source view to design view