Issue Details (XML | Word | Printable)

Key: WODEN-193
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: John Kaputin
Reporter: Keith Godwin Chapman
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Woden

Problem parsing a WSDL having XML as the documentation

Created: 10/Jan/08 10:15 AM   Updated: 29/Jan/08 10:09 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: M8

Time Tracking:
Not Specified

File Attachments:
  Size
XML File Licensed for inclusion in ASF works test.wsdl 2008-01-10 04:42 PM Keith Godwin Chapman 3 kB
XML File test.wsdl 2008-01-10 10:18 AM Keith Godwin Chapman 3 kB
Text File Licensed for inclusion in ASF works woden193.patch 2008-01-11 03:12 AM John Kaputin 13 kB

Resolution Date: 29/Jan/08 10:09 PM


 Description  « Hide
I have a situation where I have a WSDL with some XML as its service documentation. Also I do not have a default namespace declared. This means that the xml that I have within the documentation is not namespace qualified. Under this situation Woden throws an error when trying to parse the WSDL with the following exception. I've also attached a WSDL that causes this issue. Do we need a null check in DOMXMLElement that cheks this before creating an URI?

Caused by: java.lang.NullPointerException
        at java.net.URI$Parser.parse(URI.java:3003)
        at java.net.URI.<init>(URI.java:578)
        at org.apache.woden.internal.DOMXMLElement.doGetNamespaceURI (DOMXMLElement.java:101)
        at org.apache.woden.internal.BaseXMLElement.getNamespaceURI(BaseXMLElement.java:80)
        at org.apache.woden.internal.BaseWSDLReader.parseExtensionElement(BaseWSDLReader.java:1532)
        at org.apache.woden.internal.BaseWSDLReader.parseDocumentation(BaseWSDLReader.java:472)
        at org.apache.woden.internal.BaseWSDLReader.parseInterfaceOperation(BaseWSDLReader.java:798)
        at org.apache.woden.internal.BaseWSDLReader.parseInterface (BaseWSDLReader.java:663)
        at org.apache.woden.internal.BaseWSDLReader.parseDescription(BaseWSDLReader.java:429)
        at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:184)
        at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:229)
        at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:264)
        at org.apache.woden.internal.DOMWSDLReader.readWSDL (DOMWSDLReader.java:126)
        at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.readInTheWSDLFile(WSDL20ToAxisServiceBuilder.java:1146)
        at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.<init>( WSDL20ToAxisServiceBuilder.java:148)
        at org.apache.axis2.description.WSDL20ToAllAxisServicesBuilder.<init>(WSDL20ToAllAxisServicesBuilder.java:54)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine .<init>(CodeGenerationEngine.java:109)

Thanks,
Keith.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Keith Godwin Chapman added a comment - 10/Jan/08 10:18 AM
Attaching WSDL

John Kaputin added a comment - 11/Jan/08 03:12 AM
Attached patch file with code fix and supporting test case.

John Kaputin added a comment - 11/Jan/08 03:19 AM
r611032
Fixed NPE and changed WSDL520 error handling so that a null NS uri will not result in this error being reported.

John Kaputin added a comment - 11/Jan/08 03:26 AM
r611033
committed a testcase.

John Kaputin added a comment - 29/Jan/08 10:09 PM
Fixed.