You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2002/07/15 23:52:55 UTC
DO NOT REPLY [Bug 10847] New: -
NPE in Types.writePartType
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=10847>.
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=10847
NPE in Types.writePartType
Summary: NPE in Types.writePartType
Product: Axis
Version: beta-3
Platform: PC
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Basic Architecture
AssignedTo: axis-dev@xml.apache.org
ReportedBy: brian.tinnel@ascentialsoftware.com
There is a comment in org.apache.axis.wsdl.fromJava.Types requesting data if
someone gets a NPE in writePartType.
I can't submit an actual .java or WSDL, but I can describe why I'm getting the
NPE.
I have a java class which contains a method called getInfo(String name, String
id, int seq). I used Java2WSDL to create a WSDL and then I used WSDL2Java to
create (amoung other things) a deploy.wsdd which I then used to deploy the
service. In the deploy.wsdd is the following definition of my operation:
<operation name="getInfo" qname="operNS:GetInfo"
xmlns:operNS="http://test.ascentialsoftware.com/" returnQName="return" >
<parameter name="name" type="tns:string"
xmlns:tns="http://schemas.xmlsoap.org/soap/encoding/"/>
<parameter name="id" type="tns:string"
xmlns:tns="http://schemas.xmlsoap.org/soap/encoding/"/>
<parameter name="seq" type="tns:int"
xmlns:tns="http://www.w3.org/2001/XMLSchema"/>
</operation>
The allowed methods parameter is:
<parameter name="allowedMethods" value="getInfo"/>
Note the difference in case between the name=, qname= and value= attributes.
If I leave this alone I get a NPE in Types.writePartType, if I change the
name="getInfo" to name="GetInfo" and the value="getInfo" to value="GetInfo",
everything works correctly. Any other combinations fail with the NPE.