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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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.

Reply via email to