Can you attach your original WSDL file ?

Also provide following details ?

1.) Woden version ?
2.) What are the versions of xml-schema and Xerces  jar files on your
classpath  ?

Alternatively you can download latest Woden distribution from here [1]
and try to run your program only with Jar files available on Woden
distribution.


[1] - http://www.apache.org/dist/ws/woden/1.0M9/

Thanks !



On Thu, Apr 28, 2011 at 11:41 PM, RJ <[email protected]> wrote:
> I am using woden to parse wsdl files and Xerces2 Java 2.11.0 (XML Schema 1.1)
> (Beta) to parse xsd documents.
>   WSDLFactory factory = WSDLFactory.newInstance();
>               WSDLReader reader = factory.newWSDLReader();
>               reader.setFeature(WSDLReader.FEATURE_VALIDATION, true);
>               String wsdlurl = "E://apps//metacenter_home//xsd//greath.wsdl";
>               Description descComp = reader.readWSDL(wsdlurl);
>
> When I do so I get the following exception while execution the above code.
>
> java.lang.NullPointerException
>      at java.util.StringTokenizer.<init>(StringTokenizer.java:182)
>      at java.util.StringTokenizer.<init>(StringTokenizer.java:204)
>      at org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl.getActualValue(Unknown
> Source)
>      at org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl.validate(Unknown Source)
>      at org.apache.xerces.impl.xs.util.XSTypeHelper.isValueValidForASimpleType
> (Unknown Source)
>      at
> org.apache.xerces.impl.xs.util.XSTypeHelper.isAtomicValueValidForAnUnion
> (Unknown Source)
>      at org.apache.xerces.impl.xs.XMLSchemaValidator.addDefaultAttributes
> (Unknown Source)
>      at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement
> (Unknown Source)
>      at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown
> Source)
>      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement
> (Unknown Source)
>      at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.
> dispatch(Unknown Source)
>      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
> (Unknown Source)
>      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>      at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
>      at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
>      at org.apache.woden.internal.DOMWSDLReader.getDocument
> (DOMWSDLReader.java:796)
>      at org.apache.woden.internal.DOMWSDLReader.readWSDL
> (DOMWSDLReader.java:296)
>      at org.apache.woden.internal.DOMWSDLReader.readWSDL
> (DOMWSDLReader.java:157)
> Link:
> Xerces2 Java 2.11.0 (XML Schema 1.1) (Beta) - zip
>
> Could you tell me what I am doing wrong?
>
> Thanks
> Rachna
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://people.apache.org/~sagara/

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to