Re: OutOfMemoryError in org.ksoap.transport.HttpTransport.call

Stefan Haustein <[email protected]> Tue, 29 Oct 2002 14:06:21 +0100
Newsgroups gmane.comp.java.enhydra.ksoap
Message-ID <[email protected]>
Hi Dominic,

unfortunately, MIDP for Palm provides only 64 KB of heap space, 
regardless of the actual device memory. The memory representation of the 
String uses at least 9 KB (16 bit Unicode), and additional memory may be 
occupied by other dynamic program resources. Also, assembling the string 
*may* occupy 18 KB if the string needs to be copied to a new location 
because of insufficient buffer space, and the kXML internal data buffer 
may grow to the total string size....

I hope this problem will vanish when the PDAP Reference Implementation 
is available....

Best,
Stefan

Dominic Valentino wrote:
> Help!
> 
> Has anyone seen a java.lang.OutOfMemoryError in the
> HttpTransport.call method?
> 
> The RPC method I'm calling returns a String (which
> happens to be an XML document).  When the return
> String approaches about 4.5K, this error occurs.  For
> Strings of smaller size it works fine.
> 
> Could my problem be that since the String I'm
> returning from the SOAP service is in XML, and there
> are tons of XML characters that need to be un-escaped
> by kXML?  Or could I just be running against some size
> limitation?
> 
> BTW, I running this on a Palm M515.
> 
> Thanks!
> 
> -Dominic  
> 
> __________________________________________________
> Do you Yahoo!?
> HotJobs - Search new jobs daily now
> http://hotjobs.yahoo.com/
> _______________________________________________
> Ksoap mailing list
> [email protected]
> http://www.enhydra.org/mailman/listinfo.cgi/ksoap