axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ryan.cup...@kodak.com
Subject Nulll Pointer Exception with java2wsdl
Date Tue, 18 Feb 2003 20:37:35 GMT
Hello, 
 I am guessing that I am probably doing something wrong as it looks like a 
string parsing problem but I am not sure what. I get a null pointer 
exception attempting to run the target below.

Null Pointer Exception:
java2wsdl
Using CLASSPATH C:\Documents and Settings\L507107\My 
Documents\Development\GMPServer\bin\Webs\bin
java.lang.NullPointerException
        at java.util.StringTokenizer.<init>(Unknown Source)
        at java.util.StringTokenizer.<init>(Unknown Source)
        at 
org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask.execute(Java2WsdlAntTask.java:177)
        at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166)
        at org.apache.tools.ant.Task.perform(Task.java:319)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
        at 
com.intellij.rt.ant.execution.AntMain.runBuild(AntMain.java:493)
        at com.intellij.rt.ant.execution.AntMain.start(AntMain.java:166)
        at com.intellij.rt.ant.execution.AntMain.main(AntMain.java:191) 


Ant Snippet:

    <target name="compile" depends="setup">
        <taskdef name="java2wsdl" 
classname="org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask"/>
        <javac srcdir="${webs.src}" destdir="${webs.bin}"/>
        <java2wsdl
            classname="com/kodak/sis/gmp/webapp/services/GMPService"
            location="http://localhost:8080/axis/services/GMPService"
            namespace="http://kodak.com"
            output="GMPService.wsdl"
        >
            <classpath>
                <pathelement location="${webs.bin}"/>
            </classpath>
        </java2wsdl>
    </target>

Thanks!

Mime
View raw message