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 84466 - Not able to show schema components from WSDL validation window
Summary: Not able to show schema components from WSDL validation window
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Shivanand Kini
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-07 20:08 UTC by Nathan Fiedler
Modified: 2006-09-18 23:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace (3.65 KB, text/plain)
2006-09-07 20:08 UTC, Nathan Fiedler
Details
sample files (15.62 KB, application/octet-stream)
2006-09-07 20:09 UTC, Nathan Fiedler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Fiedler 2006-09-07 20:08:14 UTC
Shivanand reports that when clicking on errors in the WSDL validation window, it
will not select the schema nodes in the treeview (columns mode is okay?). It
throws an IllegalArgumentException, possibly because schema.getParent is
returning null. Run validation on GoogleSearch.wsdl in the attached file.
Comment 1 Nathan Fiedler 2006-09-07 20:08:45 UTC
Created attachment 33695 [details]
stack trace
Comment 2 Nathan Fiedler 2006-09-07 20:09:00 UTC
Created attachment 33696 [details]
sample files
Comment 3 Nam Nguyen 2006-09-09 16:56:07 UTC
This indeed works for column view.  Somehow the column view show method ends up
in UIUtilites.findPathFromRoot which compensate the missing segment
'/definitions/types'.  The fix for this bug is to make sure the tree view show
method use the same utilities method for path from root.
Comment 4 bhate 2006-09-13 19:03:25 UTC
Indeed it is because the schema node under types has no parent node. That is
getParentNode on schemanode returns null.
It is issue with wsdl ui.
-->kini
Comment 5 Nam Nguyen 2006-09-13 20:11:57 UTC
Schema api now has getForeignParent() which should return non-null parent
Component if the Schema is an embedded one.
Comment 6 Shivanand Kini 2006-09-14 00:26:07 UTC
Fixed this. The UIUtilities.findPathFromRoot was passing the SchemaComponentNode
instead of the FilterNode.
Now it works fine.
Comment 7 Nathan Fiedler 2006-09-18 23:58:22 UTC
Verified as fixed.