axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shinde, Uma" <Uma.Shi...@divine.com>
Subject WSDL2Java bug??
Date Thu, 31 Jan 2002 17:05:33 GMT
I'm using the Alpha 3 release. Tried the WSDL2Java on  a wsdl where the <service> had
an empty doucmentation element as follows.

<service name="MyBubbleSoapService">
<documentation></documentation> 
<port name="MyBubbleSoapPort" binding="tns:MyBubbleSoapBinding">
<soap:address location="http://www.mybubble.com:8080/soap/servlet/rpcrouter" /> 
</port>
</service>

This resulted in a null pointer exception. Here's the stack trace.

java.lang.NullPointerException
    at org.apache.axis.wsdl.toJava.JavaWriter.writeComment(JavaWriter.java:200)
    at org.apache.axis.wsdl.toJava.JavaServiceImplWriter.writeFileBody(JavaServiceImplWriter.java:103)
    at org.apache.axis.wsdl.toJava.JavaWriter.write(JavaWriter.java:170)
    at org.apache.axis.wsdl.toJava.JavaServiceWriter.write(JavaServiceWriter.java:95)
    at org.apache.axis.wsdl.toJava.Emitter.emit(Emitter.java:220)
    at org.apache.axis.wsdl.toJava.Emitter.emit(Emitter.java:168)
    at org.apache.axis.wsdl.toJava.Emitter.emit(Emitter.java:135)
    at org.apache.axis.wsdl.WSDL2Java.emit(WSDL2Java.java:353)
    at org.apache.axis.wsdl.WSDL2Java.main(WSDL2Java.java:486)

I did get rid of the exception by adding a space - "<documentation> </documentation>"

Mime
View raw message