axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thilina Gunarathne (JIRA)" <>
Subject [jira] Created: (AXIS2-1202) ABD generated client cannot handle empty byteArray
Date Wed, 20 Sep 2006 13:39:22 GMT
ABD generated client cannot handle empty byteArray

                 Key: AXIS2-1202
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: databinding
            Reporter: Thilina Gunarathne

Generated ADB client cannot handle empty for a base64Binary data type... This causes the OMException("Can't
find datahandler");.

IMHO throwing of OMException is also *wrong*... This gives the user a feeling that the error
is from OM...

Response message,

<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:soapenv="">
      <soapenv:Header />
         <RetByteArrayResponse xmlns="">
            <RetByteArrayResult xmlns="" />

Bug seems to be with the following generated code in the parse method...

                                       if (reader.hasText()) {
                                            //Do the usual conversion
                                            java.lang.String content = reader.getText();
                                        } else
                                        if (reader.getName().equals(new javax.xml.namespace.QName(,
                                            java.lang.String id =,
(( reader).getBuilder()).getDataHandler(id));
                                        } else {
                                            throw new"Can't
find datahandler");

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message