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/04/10 16:35:33 UTC

DO NOT REPLY [Bug 7923] New: - BeanSerializer ptr exception when only 'setter' present

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=7923>.
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=7923

BeanSerializer ptr exception when only 'setter' present

           Summary: BeanSerializer ptr exception when only 'setter' present
           Product: Axis
           Version: pre-release
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Basic Architecture
        AssignedTo: axis-dev@xml.apache.org
        ReportedBy: chris.peake@ca.com


Similar to bug: 7869
The BeanSerializer.serializer method assumes that a property of a bean has 
a 'getter' by calling Method readMethod = propertyDescriptor[i].getReadMethod.
Then it uses this reference as readMethod.getReturnType.  But 'readMethod' is 
null.  Therefore, a null ptr exception is thrown.

This is actually 'post' beta.  

Reproduction is to use a bean for a return type of a called WS method that has 
only a 'setter' with 'no' getter present.