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 85956 - Failed to open and validate siebel WSDL file
Summary: Failed to open and validate siebel WSDL file
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: XDM (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Nam Nguyen
URL:
Keywords:
Depends on:
Blocks: 86721
  Show dependency tree
 
Reported: 2006-09-27 20:21 UTC by btu
Modified: 2007-03-29 20:24 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
siebel WSDL file (20.53 KB, application/octet-stream)
2006-09-27 20:21 UTC, btu
Details
Reformatted SiebelAccount.wsdl (39.30 KB, text/xml)
2006-09-28 20:28 UTC, Shivanand Kini
Details
patch in xdm for this issue (14.14 KB, patch)
2006-10-06 09:05 UTC, Nam Nguyen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description btu 2006-09-27 20:21:27 UTC
Can't open siebel WSDL file, it complains that it's not well-formed.  This WSDL
can be opened in soapUI.
Comment 1 btu 2006-09-27 20:21:51 UTC
Created attachment 34617 [details]
siebel WSDL file
Comment 2 Shivanand Kini 2006-09-28 20:17:59 UTC
Moving to xml > wsdltools subcomponent
Comment 3 Shivanand Kini 2006-09-28 20:27:12 UTC
The wsdl is well-formed, but the model doesnt seem to recognize it appropriately. 
I reformatted it and it worked fine. Attaching the PrettySiebelAccount.wsdl

reassigning to wsdl model for further investigation.
Comment 4 Shivanand Kini 2006-09-28 20:28:12 UTC
Created attachment 34671 [details]
Reformatted SiebelAccount.wsdl
Comment 5 Nam Nguyen 2006-09-29 00:59:07 UTC
Verified in release55_dev that fix for 86071 also fix this issue.

*** This issue has been marked as a duplicate of 86071 ***
Comment 6 btu 2006-10-05 00:11:37 UTC
I was able to open the wsdl with the new build but the validation fails.

Here's the message,

XML validation started.


C:/Alaska/jbicomps/test/httpsoapbc/siebel/siebelAccountBpel/src/SiebelAccount.wsdl:8,0

Content is not allowed in prolog.

C:/Alaska/jbicomps/test/httpsoapbc/siebel/siebelAccountBpel/src/SiebelAccount.wsdl:8,0

Content is not allowed in prolog.

2 Error(s),  0 Warning(s).

XML validation finished.
Comment 7 Nam Nguyen 2006-10-05 07:07:09 UTC
The SiebelAccount.wsdl has extra Processing Instruction below the prolog.
XDM parser does not handle this case retain only the last PI set of tokens.

Added 2 unit XDM tests: XMLParserTest.testParsePI(),
AbstracttComponentTest.testProcessingInstruction().
Reopen this issue as XDM's.  
Reassign to Ayub.
Comment 8 Nam Nguyen 2006-10-05 21:20:53 UTC
Upgrade to P1 because this bug causes valid field WSDL documents to not work at
all in our IDE.
Comment 9 Nam Nguyen 2006-10-06 08:03:03 UTC
The validation failure of the test case wsdl is caused by:
(1) XDM parser fails to accumulate processing instructions; only the last one
retained.
(2) PositionFinderVisitor prematurely count whitespace on end tag.

The fix to the parser is simply accumulate current PI tokens to current node
instead replacing its tokens.  The fix for PositionFinderVisitor is to 
count start tag whitespaces tokens after counting attributes tokens, and count
those in end tag after counting lenght of children.

Fix checked in release55:
http://www.netbeans.org/source/browse/xml/xdm/src/org/netbeans/modules/xml/xdm/nodes/XMLSyntaxParser.java?r1=1.2.2.13.2.4&r2=1.2.2.13.2.5&only_with_tag=release55_dev
http://www.netbeans.org/source/browse/xml/xdm/src/org/netbeans/modules/xml/xdm/visitor/PositionFinderVisitor.java?r1=1.2.2.4&r2=1.2.2.4.2.1&only_with_tag=release55_dev
http://www.netbeans.org/source/browse/xml/xdm/test/unit/src/org/netbeans/modules/xml/xdm/nodes/XMLSyntaxParserTest.java?r1=1.1.2.6.2.4&r2=1.1.2.6.2.5&only_with_tag=release55_dev
http://www.netbeans.org/source/browse/xml/xdm/test/unit/src/org/netbeans/modules/xml/xdm/visitor/PositionFinderVisitorTest.java?r1=1.1.2.3&r2=1.1.2.3.2.1&only_with_tag=release55_dev

Comment 10 Nam Nguyen 2006-10-06 09:05:32 UTC
Created attachment 34960 [details]
patch in xdm for this issue
Comment 11 Nam Nguyen 2006-10-06 09:18:31 UTC
Fix merged from release55_dev into release55.

Please pull a release55 continous build zip file to verify.
Comment 12 Nam Nguyen 2006-10-10 02:42:26 UTC
*** Issue 86721 has been marked as a duplicate of this issue. ***
Comment 13 btu 2006-10-10 21:13:44 UTC
I installed java-tools-bunde-main-061010-windows.exe dated on 10/10/06 on 
http://balui.sfbay.sun.com/kits/oriondev/main/latestvetted/installers/
and it still gives me the same prolog error.  Which one should I install?
Comment 14 Nam Nguyen 2006-10-10 23:03:38 UTC
Since we are still use NB IDE release55 RC1 build for current EntPack build, to
verify this you need to get a latest NB IDE release55 continuous build from:
http://nbbuilder.czech:8080/BuildResults?days=1&branch=release55 and overlay it
with EntPack.zip extracted cluster directoties (soa1, xmltoosl1, identity1).
Comment 15 tonybeckham 2007-03-29 20:24:45 UTC
Both PrettySiebel and Seibel WSDLs open w/o any problems, marking as VERIFIED
with build 200703271800