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 15029] New: - BeanSerializer.writeSchema(Class,Types) property descriptor inheritance bug
Date Tue, 03 Dec 2002 17:36:46 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=15029>.
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=15029

BeanSerializer.writeSchema(Class,Types) property descriptor inheritance bug

           Summary: BeanSerializer.writeSchema(Class,Types) property
                    descriptor inheritance bug
           Product: Axis
           Version: current (nightly)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Serialization/Deserialization
        AssignedTo: axis-dev@xml.apache.org
        ReportedBy: martin.kalen@curalia.se


The method writeSchema(Class,Types) in BeanSerializer has a typo on line 315
that will generate NullPointerException when using certain inheritance between
classes surfaced in the WSDL-description.

superPd = typeDesc.getPropertyDescriptors();
should be changed to
superPd = superTypeDesc.getPropertyDescriptors();

I am attaching a trivial patch and testcase. Try deploying this service and
accessing the "?WSDL"-URL to reproduce the exceptions. Patch BeanSerializer and
the WSDL works.

Use Ant to build. Target "generate-server" will compile required classes,
generate WSDL, and server-side stubs. Target "deploy" will copy the WebService
to a tomcat4 installation and run the AdminClient with this service. The default
target "all" will do all of this. Change the Ant-script's property
"tomcat.impl.dir" to the Tomcat4 basedir if you want automatic deployment.

Mime
View raw message