axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 16083] New: - WSDL2Java suddenly breaking with NPE
Date Tue, 14 Jan 2003 23:54:54 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16083>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16083

WSDL2Java suddenly breaking with NPE

           Summary: WSDL2Java suddenly breaking with NPE
           Product: Axis
           Version: current (nightly)
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WSDL processing
        AssignedTo: axis-dev@xml.apache.org
        ReportedBy: stevel@apache.org


I think this is a regression, as something that was seemingly working last week
doesn't. though of course it could be I've just change the WSDL, whcih
CapeStudio WSDL editor has created for me. 

java.lang.NullPointerException
        at org.apache.axis.wsdl.toJava.Utils.getNewQName(Utils.java:651)
        at
org.apache.axis.wsdl.toJava.JavaStubWriter.writeOperationMap(JavaStWriter.java:392)
        at
org.apache.axis.wsdl.toJava.JavaStubWriter.writeFileBody(JavaStubWrer.java:162)
        at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:148
        at
org.apache.axis.wsdl.toJava.JavaBindingWriter.generate(JavaBindingWter.java:141)
        at
org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JaGeneratorFactory.java:284)
        at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:324)
        at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:82)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:246)
        at java.lang.Thread.run(Thread.java:536)

We can only get an NPE here if the Qname extracted from a parameter p via
Utils.getXSIType(p); is null. 

I'll try and sanitize the WSDL to a point where it is OK for public distribution
(rename things, remove comments, etc), then attach it.

Mime
View raw message