Skip to main content

getting out of memory when calling web service with >=11Mb mime attachment

2 replies [Last post]
Joined: 2005-12-03

when I invoke a web service stub to submit my attachment
that have size of >11Mb, I will get following error:
Dec 3, 2005 8:54:26 PM com.sun.xml.rpc.server.http.JAXRPCServletDelegate doPost
SEVERE: caught throwable
java.lang.OutOfMemoryError: Java heap space
java.rmi.ServerException: JAXRPCSERVLET28: Missing port information
at com.sun.xml.rpc.client.StreamingSender._raiseFault(
at com.sun.xml.rpc.client.StreamingSender._send(
at lmco.remotesupport.ReportManager_portType_Stub.submitActivityList(

there were total memory 48825984 bytes before web service call is invoked. I doubt out of memory is cause by anything that I do before calling web service.

I was able to send all attachments <=7Mb without any error.

I couldn't figure whether this is limitation of web service. If any one have similiar problem and find a solution for it, please let me know.

following is definition of my web service operation

submitActivityList(String hullDesc
javax.xml.transform.Source hullActivityList,
MimeMultipart attachment)
throws java.rmi.RemoteException {}

any suggestion will be appreciated.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2006-01-23

Hi Annie,

Did you have any result regarding your question?

I am facing a similar problem in my webservice application.


Joined: 2003-06-20


This is not the right forum for general JAX-RPC/JAX-WS questions. This is about the application of alternative binary encodings to XML and the application to Web services.

Please try asking your question on this JAX-WS/JAXB forum instead: