Are there any specific features unique to GSON that you need ? Maybe you could use the native JSON support from Android platform.
On Tue, Jan 6, 2009 at 4:00 PM, Sean Sullivan <[email protected]> wrote: > > Is anybody using Google's GSON library in an Android application? > > I can't get GSON to work properly on Android's Dalvik VM. The Dalvik > runtime is throwing java.lang.TypeNotPresentException. > > Here is the stack trace: > > E/jpoco.android.ContactsActivity( 251): Type jpoco.client.Contact not present > E/jpoco.android.ContactsActivity( 251): > java.lang.TypeNotPresentException: Type jpoco.client.Contact not > present > E/jpoco.android.ContactsActivity( 251): at > org.apache.harmony.luni.lang.reflect.ImplForType.getRawType(ImplForType.java:63) > E/jpoco.android.ContactsActivity( 251): at > org.apache.harmony.luni.lang.reflect.ImplForType.getResolvedType(ImplForType.java:72) > E/jpoco.android.ContactsActivity( 251): at > org.apache.harmony.luni.lang.reflect.ListOfTypes.getResolvedTypes(ListOfTypes.java:68) > E/jpoco.android.ContactsActivity( 251): at > org.apache.harmony.luni.lang.reflect.ImplForType.getActualTypeArguments(ImplForType.java:40) > E/jpoco.android.ContactsActivity( 251): at > com.google.gson.TypeInfoFactory.getActualType(TypeInfoFactory.java:65) > E/jpoco.android.ContactsActivity( 251): at > com.google.gson.TypeInfoFactory.getTypeInfoForField(TypeInfoFactory.java:54) > E/jpoco.android.ContactsActivity( 251): at > com.google.gson.ObjectNavigator.navigateClassFields(ObjectNavigator.java:136) > E/jpoco.android.ContactsActivity( 251): at > com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:122) > E/jpoco.android.ContactsActivity( 251): at > com.google.gson.JsonDeserializationContextDefault.fromJsonObject(JsonDeserializationContextDefault.java:73) > E/jpoco.android.ContactsActivity( 251): at > com.google.gson.JsonDeserializationContextDefault.deserialize(JsonDeserializationContextDefault.java:49) > E/jpoco.android.ContactsActivity( 251): at > com.google.gson.Gson.fromJson(Gson.java:381) > E/jpoco.android.ContactsActivity( 251): at > com.google.gson.Gson.fromJson(Gson.java:329) > E/jpoco.android.ContactsActivity( 251): at > com.google.gson.Gson.fromJson(Gson.java:305) > E/jpoco.android.ContactsActivity( 251): at > jpoco.io.Deserializer.deserialize(Deserializer.java:63) > E/jpoco.android.ContactsActivity( 251): at > jpoco.client.Client.fromString(Client.java:152) > > > > -- Luciano Resende Apache Tuscany, Apache PhotArk http://people.apache.org/~lresende http://lresende.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

