Uncaught handler: thread main exiting due to uncaught exception
<p>My code runs perfectly on 4.x, not with 2.1 I've this error. I added some sharepreferences to my code. How I investigate?</p>

<pre><code>01-05 17:10:30.340: E/AndroidRuntime(292): java.lang.StackOverflowError
01-05 17:10:30.340: E/AndroidRuntime(292):  at java.nio.BaseByteBuffer.&lt;init&gt;(BaseByteBuffer.java:28)
01-05 17:10:30.340: E/AndroidRuntime(292):  at java.nio.HeapByteBuffer.&lt;init&gt;(HeapByteBuffer.java:49)
01-05 17:10:30.340: E/AndroidRuntime(292):  at java.nio.HeapByteBuffer.&lt;init&gt;(HeapByteBuffer.java:41)
01-05 17:10:30.340: E/AndroidRuntime(292):  at java.nio.ReadWriteHeapByteBuffer.&lt;init&gt;(ReadWriteHeapByteBuffer.java:45)
01-05 17:10:30.340: E/AndroidRuntime(292):  at java.nio.BufferFactory.newByteBuffer(BufferFactory.java:40)
01-05 17:10:30.340: E/AndroidRuntime(292):  at java.nio.ByteBuffer.wrap(ByteBuffer.java:87)
01-05 17:10:30.340: E/AndroidRuntime(292):  at java.nio.charset.CharsetEncoder.isLegalReplacement(CharsetEncoder.java:692)
01-05 17:10:30.340: E/AndroidRuntime(292):  at java.nio.charset.CharsetEncoder.replaceWith(CharsetEncoder.java:804)
01-05 17:10:30.340: E/AndroidRuntime(292):  at java.nio.charset.CharsetEncoder.&lt;init&gt;(CharsetEncoder.java:205)
01-05 17:10:30.340: E/AndroidRuntime(292):  at com.ibm.icu4jni.charset.CharsetEncoderICU.&lt;init&gt;(CharsetEncoderICU.java:75)
01-05 17:10:30.340: E/AndroidRuntime(292):  at com.ibm.icu4jni.charset.CharsetICU.newEncoder(CharsetICU.java:74)
01-05 17:10:30.340: E/AndroidRuntime(292):  at com.android.internal.util.FastXmlSerializer.setOutput(FastXmlSerializer.java:292)
</code></pre>
