[wsas-java-user] RE: Large Attachments

thilina at wso2.com thilina at wso2.com
Mon Aug 20 04:46:47 PDT 2007


Hi Greg,
Apologies for the late jumping in.. I was traveling and lost track of this
thread...

Are you still getting the heap space errors, even with the MTOM sample.  I
assume you are getting the heap error from the server side. Can you send
us your axis2.xml or atleast the attachment related parts. Do you have
file caching enabled in your axis2.xml or atleast in your services.xml.

thanks,
Thilina

> I did not get the attached client, but I was able to deploy the service
> and
> use an ADB generated client to invoke it. I tried a 20M file and get the
> same heap space errors as I do when I run my other services. This is on
> RHEL5, JDK 1.5. Any other ideas? Thanks for the assistance.
>
> -----Original Message-----
> From: wsas-java-user-bounces at wso2.org
> [mailto:wsas-java-user-bounces at wso2.org] On Behalf Of Charitha Kankanamge
> Sent: Monday, August 13, 2007 12:42 PM
> To: wsas-java-user at wso2.org
> Cc: wsf-php-user at wso2.org
> Subject: Re: [wsas-java-user] RE: Large Attachments
>
> Hi Greg,
> Can you please deploy the attached sample-mtom.aar in your WSAS instance
> and try to invoke it using the attached client (Yes. it is the Axis2
> MTOM sample) ? I was able to send ~120MB attachement with the attached
> sample service and client in WSAS 2.0 (Winxp, JDK.5). Please let us know
> if you experience the same issue with the attached code.
>
> regards
> Charitha
>
>
> Skinner, Gregory W. wrote:
>
>>Thanks Samisa. I did try increasing the POST size limit, and yes it does
>>eliminate the problem of sending the SOAP message, however there still
> seems
>>to be a problem in the WSAS. The submission from PHP goes fine, but the
>>server logs indicate the following:
>>
>>ERROR [2007-08-13 14:46:06,531]  java.lang.OutOfMemoryError: Java heap
> space
>>ERROR [2007-08-13 14:46:06,532]  Servlet.service() for servlet
>> WSASServlet
>>threw exception
>>java.lang.NullPointerException
>>
>>And, the response from the service is still the same:
>>
>> The received SOAP Message could not be serialized :
>>org.apache.axiom.om.OMException: org.apache.axiom.om.OMException:
> Referenced
>>Attachment not found in the MIME Message. ContentID:cid
>>
>>
>>I'll cross post this to the WSAS group to see if they have any
>> suggestions
>>as well.
>>
>>
>>-----Original Message-----
>>From: wsf-php-user-bounces at wso2.org
>> [mailto:wsf-php-user-bounces at wso2.org]
>>On Behalf Of Samisa Abeysinghe
>>Sent: Monday, August 13, 2007 12:09 AM
>>To: wsf-php-user at wso2.org
>>Subject: Re: [wsf-php-user] Large Attachments
>>
>>Hi Greg,
>>    I have good news for you, I found the solution to the problem and it
>>is not a bug as well.
>>    It is something to do with a setting in php.ini file.
>>Please try setting:
>>; Maximum size of POST data that PHP will accept.
>>post_max_size = 80M
>>
>>The default size for this is 8M. When I increased that to 80M, the
>>problem was gone.
>>
>>Thanks,
>>Samisa...
>>
>>Samisa Abeysinghe wrote:
>>
>>
>>>I tested with both upload and download clients with an attachment of
>>>size 30MB.
>>>Download works, but I run into problems similar to those that you are
>>>facing with upload.
>>>
>>>We will look into the problem to see what exactly is going wrong.
>>>
>>>Samisa...
>>>
>>>Skinner, Gregory W. wrote:
>>>
>>>
>>>>I am also having problems with this while using the WSAS.
>>>>
>>>>
>>>>------------------------------------------------------------------------
>>>>    *From:* wsf-php-user-bounces at wso2.org
>>>>    [mailto:wsf-php-user-bounces at wso2.org] *On Behalf Of *Thilina
>>>>    Gunarathne
>>>>    *Sent:* Thursday, August 09, 2007 10:50 PM
>>>>    *To:* wsf-php-user at wso2.org
>>>>    *Subject:* RE: [wsf-php-user] Large Attachments
>>>>
>>>>    Hi Greg,
>>>>
>>>>    >I am unable to find anything in the logs about this error, but it
>>>>    appears as though it is related to the JVM heap overflow that I am
>>>>    also experiencing on a Tomcat/Axis2 installation. I have enabled
>>>>    server >side caching for the broken service, but that does not
>>>>    seem to do anything.
>>>>
>>>>    We'll be able to give a helping hand to your Axis2/java problem if
>>>>    you could provide little more information about your Axis2
>>>>    service.. You may be trying to load the received attachment to the
>>>>    memory in the server side by building the full object model.
>>>>
>>>>    Thanks,
>>>>
>>>>    Thilina
>>>>
>>>>    Could these two problems be related. If so, how can I enable large
>>>>    file attachments in the framework. Also, does anyone have any idea
>>>>    why Axis would be giving me such issues?
>>>>
>>>>    Thanks,
>>>>    Greg
>>>>
>>>>------------------------------------------------------------------------
>>>>
>>>>_______________________________________________
>>>>Wsf-php-user mailing list
>>>>Wsf-php-user at wso2.org
>>>>http://wso2.org/cgi-bin/mailman/listinfo/wsf-php-user
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>Wsas-java-user mailing list
>>Wsas-java-user at wso2.org
>>http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-user
>>
>>
>
> _______________________________________________
> Wsas-java-user mailing list
> Wsas-java-user at wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-user
>




More information about the Wsas-java-user mailing list