You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Chris Burnley <ch...@viator.com> on 2002/04/11 08:31:51 UTC

Nullpointer exception when importing schemas

I get the following when running WSDL2Java on a reasonably simple wsdl
file. 


java.lang.NullPointerException
        at java.net.URL.<init>(URL.java:294)
        at java.net.URL.<init>(URL.java:224)
        at java.net.URL.<init>(URL.java:243)
        at org.apache.axis.wsdl.toJava.SymbolTable.getURL(Unknown
Source)
        at org.apache.axis.wsdl.toJava.SymbolTable.populate(Unknown
Source)
        at org.apache.axis.wsdl.toJava.SymbolTable.add(Unknown Source)
        at org.apache.axis.wsdl.toJava.Emitter.emit(Unknown Source)
        at org.apache.axis.wsdl.toJava.Emitter.emit(Unknown Source)
        at org.apache.axis.wsdl.WSDL2Java$WSDLRunnable.run(Unknown
Source)
        at java.lang.Thread.run(Thread.java:484)


My wsdl looks something like this:

<definitions name="Name">
...
        <import namespace="http://www.xyz.com/schema/Foo"
                schemaLocation="Foo.xsd"/>
...
</definitions>


Any ideas?