Skip to main content

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

2 replies [Last post]
annie_weng
Offline
Joined: 2005-12-03
Points: 0

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(StreamingSender.java:510)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:307)
at lmco.remotesupport.ReportManager_portType_Stub.submitActivityList(ReportManager_portType_Stub.java:123)

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.
thanks.

Reply viewing options

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

Hi Annie,

Did you have any result regarding your question?

I am facing a similar problem in my webservice application.

Thanks.
-Elaine

sandoz
Offline
Joined: 2003-06-20
Points: 0

Hi,

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:

http://forums.java.net/jive/forum.jspa?forumID=46

Paul.