android - Saving object with linkedlist - error on API 10 -


when saving object linkedlist on android api 10 obtain error:

08-10 14:37:45.091: e/androidruntime(29845): fatal exception: thread-17 08-10 14:37:45.091: e/androidruntime(29845): java.lang.illegalargumentexception: no char field 'exponential' 08-10 14:37:45.091: e/androidruntime(29845):    @ java.io.emulatedfields.put(emulatedfields.java:459) 08-10 14:37:45.091: e/androidruntime(29845):    @ java.io.emulatedfieldsfordumping.put(emulatedfieldsfordumping.java:83) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.text.decimalformatsymbols.writeobject(decimalformatsymbols.java:591) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.lang.reflect.method.invokenative(native method) 08-10 14:37:45.091: e/androidruntime(29845):    @ java.lang.reflect.method.invoke(method.java:507) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writehierarchy(objectoutputstream.java:1219) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writenewobject(objectoutputstream.java:1575) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writeobjectinternal(objectoutputstream.java:1847) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writeobject(objectoutputstream.java:1689) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writeobject(objectoutputstream.java:1653) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writefieldvalues(objectoutputstream.java:1062) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writefields(objectoutputstream.java:1008) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.text.decimalformat.writeobject(decimalformat.java:1215) 08-10 14:37:45.091: e/androidruntime(29845):    @ java.lang.reflect.method.invokenative(native method) 08-10 14:37:45.091: e/androidruntime(29845):    @ java.lang.reflect.method.invoke(method.java:507) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writehierarchy(objectoutputstream.java:1219) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writenewobject(objectoutputstream.java:1575) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writeobjectinternal(objectoutputstream.java:1847) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writeobject(objectoutputstream.java:1689) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writeobject(objectoutputstream.java:1653) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writefieldvalues(objectoutputstream.java:1143) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.defaultwriteobject(objectoutputstream.java:413) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writehierarchy(objectoutputstream.java:1241) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writehierarchy(objectoutputstream.java:1205) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writenewobject(objectoutputstream.java:1575) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writeobjectinternal(objectoutputstream.java:1847) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writeobject(objectoutputstream.java:1689) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writeobject(objectoutputstream.java:1653) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writefieldvalues(objectoutputstream.java:1143) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.defaultwriteobject(objectoutputstream.java:413) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writehierarchy(objectoutputstream.java:1241) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writenewobject(objectoutputstream.java:1575) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writeobjectinternal(objectoutputstream.java:1847) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writeobject(objectoutputstream.java:1689) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writeobject(objectoutputstream.java:1653) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.util.linkedlist.writeobject(linkedlist.java:973) 08-10 14:37:45.091: e/androidruntime(29845):    @ java.lang.reflect.method.invokenative(native method) 08-10 14:37:45.091: e/androidruntime(29845):    @ java.lang.reflect.method.invoke(method.java:507) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writehierarchy(objectoutputstream.java:1219) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writenewobject(objectoutputstream.java:1575) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writeobjectinternal(objectoutputstream.java:1847) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writeobject(objectoutputstream.java:1689) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writeobject(objectoutputstream.java:1653) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writefieldvalues(objectoutputstream.java:1143) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.defaultwriteobject(objectoutputstream.java:413) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writehierarchy(objectoutputstream.java:1241) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writenewobject(objectoutputstream.java:1575) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writeobjectinternal(objectoutputstream.java:1847) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writeobject(objectoutputstream.java:1689) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writeobject(objectoutputstream.java:1653) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.util.linkedlist.writeobject(linkedlist.java:973) 08-10 14:37:45.091: e/androidruntime(29845):    @ java.lang.reflect.method.invokenative(native method) 08-10 14:37:45.091: e/androidruntime(29845):    @ java.lang.reflect.method.invoke(method.java:507) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writehierarchy(objectoutputstream.java:1219) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.objectoutputstream.writenewobject(objectoutputstream.java:1575) 08-10 14:37:45.091: e/androidruntime(29845):  @ java.io.ob 

i don't glitch , don't think linkedlist problem since api 1, never less doesn't occur on android api 18, idea where's problem?

saving:

fileoutputstream fos = null;     try {         fos = openfileoutput("shelf.obj", context.mode_private);         objectoutputstream out = new objectoutputstream(fos);         out.writeobject(listofshelfs);         out.close();         fos.close();     } catch (filenotfoundexception e) {         //catch     } catch (ioexception e) {         //catch     } 

object save:

private static hashmap<string, messageshelf> listofshelfs = new hashmap<string, messageshelf>(); 

messageshelf:

public class messageshelf implements serializable{ private static final long serialversionuid = 1l; public friend correspodent; calendar lastseen; calendar lastsend; boolean secure; queue<messagelist> historymessageslists=new linkedlist<messagelist>(); public string lastmessagebody = ""; public calendar lastdate;} 

this seems bug 14495: android 2.3 , 3.0's decimalformatsymbols serialization broken.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -