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 104220 - WSDL Validation triggers SAXParseException
Summary: WSDL Validation triggers SAXParseException
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: WSDL Tools (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: Shivanand Kini
URL:
Keywords:
Depends on: 104233 104234
Blocks:
  Show dependency tree
 
Reported: 2007-05-17 23:04 UTC by jlautz
Modified: 2007-05-29 16:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jlautz 2007-05-17 23:04:15 UTC
Seen in NetBeans IDE Dev (Build 2007051612000)
1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06
Windows XP version 5.1 running on x86
en_US (nb); Cp1252

1. Create a new WSDL document using the WSDL wizard.
2. Click the Validate XML button.

Get a SAXException with the following stack trace:

org.xml.sax.SAXParseException: src-attribute.2: : The property 'default' is
present in attribute 'location', so the value of 'use' must be 'optional'.
	at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
	at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
	at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
	at
com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaError(XSDHandler.java:2525)
	at
com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDAbstractTraverser.reportSchemaError(XSDAbstractTraverser.java:706)
	at
com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDAttributeTraverser.traverseLocal(XSDAttributeTraverser.java:140)
	at
com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDAbstractTraverser.traverseAttrsAndAttrGrps(XSDAbstractTraverser.java:610)
	at
com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexTypeTraverser.processComplexContent(XSDComplexTypeTraverser.java:1059)
	at
com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexTypeTraverser.traverseComplexContent(XSDComplexTypeTraverser.java:774)
	at
com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexTypeTraverser.traverseComplexTypeDecl(XSDComplexTypeTraverser.java:260)
	at
com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexTypeTraverser.traverseGlobal(XSDComplexTypeTraverser.java:160)
	at
com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getGlobalDecl(XSDHandler.java:1534)
	at
com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDElementTraverser.traverseNamedElement(XSDElementTraverser.java:369)
	at
com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDElementTraverser.traverseGlobal(XSDElementTraverser.java:214)
	at
com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.traverseSchemas(XSDHandler.java:1258)
	at
com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:579)
	at
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:552)
	at
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:519)
	at
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:485)
	at
com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.newSchema(XMLSchemaFactory.java:206)
	at
org.netbeans.modules.xml.xam.spi.XsdBasedValidator.getCompiledSchema(XsdBasedValidator.java:204)
	at
org.netbeans.modules.xml.wsdl.validator.WSDLSchemaValidator.getSchema(WSDLSchemaValidator.java:80)
	at
org.netbeans.modules.xml.xam.spi.XsdBasedValidator.validate(XsdBasedValidator.java:90)
	at org.netbeans.modules.xml.xam.spi.Validation.validate(Validation.java:78)
	at
org.netbeans.modules.xml.validation.ValidationOutputWindowController.validate(ValidationOutputWindowController.java:64)
	at
org.netbeans.modules.xml.validation.ValidateAction$RunAction.run(ValidateAction.java:90)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
Comment 1 jlautz 2007-05-17 23:04:48 UTC
This issue affects a lot of the automated WSDL tests.
Comment 2 Shivanand Kini 2007-05-18 01:50:45 UTC
Created two P1 bugs to binding components to fix their schemas.
Comment 3 Shivanand Kini 2007-05-18 20:57:02 UTC
Resolving this as fixed, since dependencies have been fixed
Comment 4 jlautz 2007-05-29 16:28:05 UTC
Verified on NetBeans IDE Dev (Build 200705251200)
1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06
Windows XP version 5.1 running on x86
en_US (nb); Cp1252

Cannot reproduce the SAXParseException in the described scenario.