Click here to Skip to main content
16,020,701 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Sir,

My Application is crashing when trying to parsing larger number of xml file using Ksoap2.It is working when i reduce the size of the xml file.

Here it is my LogCat output.

XML
02-13 10:59:28.911: ERROR/AndroidRuntime(381): Uncaught handler: thread Thread-9 exiting due to uncaught exception
02-13 10:59:28.980: ERROR/AndroidRuntime(381): java.lang.OutOfMemoryError
02-13 10:59:28.980: ERROR/AndroidRuntime(381):     at java.nio.CharBuffer.put(CharBuffer.java:624)
02-13 10:59:28.980: ERROR/AndroidRuntime(381):     at java.nio.charset.CharsetDecoder.allocateMore(CharsetDecoder.java:295)
02-13 10:59:28.980: ERROR/AndroidRuntime(381):     at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:250)
02-13 10:59:28.980: ERROR/AndroidRuntime(381):     at java.nio.charset.Charset.decode(Charset.java:768)
02-13 10:59:28.980: ERROR/AndroidRuntime(381):     at java.lang.String.<init>(String.java:238)
02-13 10:59:28.980: ERROR/AndroidRuntime(381):     at java.lang.String.<init>(String.java:193)
02-13 10:59:28.980: ERROR/AndroidRuntime(381):     at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:96)
02-13 10:59:28.980: ERROR/AndroidRuntime(381):     at java.lang.Thread.run(Thread.java:1096)


Please help its very urgent....

Thanks for your help
Posted

1 solution

 
Share this answer
 
Comments
Jacob_cbe 13-Feb-12 2:16am    
Thank's for your valuable help....These links are really very useful...But in android how to increase the heap memory size for a project in eclipse.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900