Title: null pntr in WSDL2Java on a wsdl that imports another wsdl

Hi,

I have a service interface EventService.wsdl located at http://localhost:8080/interfaces/ and I create an implementation file MiscEventService.wsdl at E:\wsdls that imports EventService.wsdl. When I run WSDL2Java on MiscEventService.wsdl, I get the following stack trace. Earlier I checked if the imported EventService.wsdl is really parsable by running xml-spy which parsed both the MiscEventService.wsdl and its imported EventService.wsdl correctly. Does anyone know why I get a null pointer here?

Thanks.

-Anirban.

E:\wsdls>java org.apache.axis.wsdl.WSDL2Java -d"Application" -s MiscService.wsdl
WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document at 'ht
tp://localhost:8080/interfaces/EventService.wsdl'.: java.lang.NullPointerExceptio
n
        at java.net.URLConnection.stripOffParameters(Unknown Source)
        at java.net.URLConnection.getContentHandler(Unknown Source)
        at java.net.URLConnection.getContent(Unknown Source)
        at java.net.URL.getContent(Unknown Source)
        at com.ibm.wsdl.util.StringUtils.getContentAsReader(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseImport(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:369)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:358)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:243)
        at java.lang.Thread.run(Unknown Source)

        at com.ibm.wsdl.xml.WSDLReaderImpl.parseImport(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:369)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:358)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:243)
        at java.lang.Thread.run(Unknown Source)

Reply via email to