Uploaded image for project: 'Axis'
  1. Axis
  2. AXIS-2813

getAttachmentsCount() in AttachmentsImpl takes too much time even if there is no attachment...

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.3
    • 1.4.1
    • None
    • None
    • Java 1.5

    Description

      The SOAP response takes too much of time while being processed by the AXIS at server side. I have debugged into the source and found that in getContentType of Message, mAttachments.getAttachmentCount() in following code takes too much of time.
      if (getSendType() != Attachments.SEND_TYPE_NONE && mAttachments != null &&
      0 != mAttachments.getAttachmentCount())

      { ret = mAttachments.getContentType(); }

      In AttachmentsImpl currentMessage is written to ByteArray Output Stream, which is taking too much of time. And since there is so attachment with the current message it is going to give 0 as count. I am wondering why should this happen in getAttachmentsCount().

      Total time taken to process the response by AXIS at server side is around 70 seconds out of which around 30 seconds is taken while writting the message to Bytye Array Stream during getAttachmentsCount()

      Let me know if there is any workaround (or fix) to overcome this issue. Just to bypass from this, I tried overriding the AttachmentsImpl by mentioning the implemntation class in wsdd file but unfortunately default is being picked.

      Attachments

        Activity

          People

            Unassigned Unassigned
            neergupta Neeraj
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: