Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6798423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:43:41+00:00 2026-05-26T18:43:41+00:00

I have an Android app which uses Jackson parser for JSON parsing. After I’ve

  • 0

I have an Android app which uses Jackson parser for JSON parsing. After I’ve ran Proguard on the classes I started to get null values on each and every member of the de-serialized classes.
For example, if I have a object:

public class Service{
    private String name;
    private String version;
    ... getters, setters and stuff
}

and I receive a JSON with list of those objects:

[{"name":"service1","version":"1.1"},{"name":"service2","version":"1.0"}]

then I do:

objectMapper.readValue(jsonString,new TypeReference<List<Service>>() {})

what I get is a list with 2 Service objects where all members are null.

Any ideas?

Thanks

UPDATE

I’ve missed ProGuard warnings:

org.codehaus.jackson.map.deser.EnumSetDeserializer: can't find referenced method 'EnumDeserializer(org.codehaus.jackson.map.deser.EnumResolver)' in class     org.codehaus.jackson.map.deser.EnumDeserializer
org.codehaus.jackson.map.deser.impl.StringCollectionDeserializer: can't find referenced method 'org.codehaus.jackson.map.JsonMappingException instantiationException(java.lang.Class,java.lang.Exception)' in class org.codehaus.jackson.map.DeserializationContext

fixed those with:

-dontskipnonpubliclibraryclassmembers

and that did it.

Alex

P.S.

Here’s the proguard.conf, all the libraries are added by Maven plugin

-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference

-dontoptimize
-dontnote
-dontskipnonpubliclibraryclasses
-printmapping map.txt
-printseeds seed.txt
-ignorewarnings

-keepclassmembers class * {  @com.google.api.client.util.Key <fields>;}

-keepattributes Signature,RuntimeVisibleAnnotations,AnnotationDefault
-keepattributes *Annotation*

-keepclasseswithmembers public class * {    public static void main(java.lang.String[]);}

-keepclassmembers public class com.anydo.client.model** { * ; }
-keepclassmembers public class com.anydo.common.dto** { * ;}
-keep class com.j256.** {*;}

-dontskipnonpubliclibraryclassmembers


-keepclasseswithmembernames class * {
    native <methods>;
}

-keepclasseswithmembernames class * {
    public <init>(android.content.Context, android.util.AttributeSet);
}

-keepclasseswithmembernames class * {
    public <init>(android.content.Context, android.util.AttributeSet, int);
}

-keepclassmembers enum * {
    public static **[] values();
    public static ** valueOf(java.lang.String);
}

-keep class * implements android.os.Parcelable {
  public static final android.os.Parcelable$Creator *;
}

-keepclassmembers class **.R$* {
    public static <fields>;
}

#ACRA
-keep class org.acra.ACRA {
        *;
}

# keep this around for some enums that ACRA needs
-keep class org.acra.ReportingInteractionMode { *; }
# keep this otherwise it is removed by ProGuard
-keep public class org.acra.ErrorReporter
{
public void addCustomData(java.lang.String,java.lang.String);
}

# keep this otherwise it is removed by ProGuard
-keep public class org.acra.ErrorReporter
{
public org.acra.ErrorReporter$ReportsSenderWorker handleSilentException(java.lang.Throwable);
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:43:42+00:00Added an answer on May 26, 2026 at 6:43 pm

    It looks like you’re combining different versions of the jackson-mapper jar in a single project.

    jackson-mapper-asl-1.7.9.jar contains

    • org.codehaus.jackson.map.deser.EnumSetDeserializer
    • org.codehaus.jackson.map.deser.EnumDeserializer with constructor
      EnumDeserializer(org.codehaus.jackson.map.deser.EnumResolver)

    jackson-mapper-asl-1.9.2.jar contains

    • org.codehaus.jackson.map.deser.std.EnumSetDeserializer
    • org.codehaus.jackson.map.deser.EnumDeserializer with constructor
      EnumDeserializer(org.codehaus.jackson.map.util.EnumResolver)

    Notice the different packages for EnumSetDeserializer and the different constructors for EnumDeserializer. ProGuard can’t resolve the reference of the 1.7.9 EnumSetDeserializer to the constructor of the 1.9.2 EnumDeserializer on the same class path, and it rightly warns about it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app on the android market, which uses the mapview to display
I have an app in android which uses an autocomplete for a query in
I have an android app which uses camera. I am using a socket connection
I have an Android app which by preference uses external storage if available to
I have an app released on the android market which uses sqlite and displays
I am developing my first Android app. I have a ListActivity which uses the
I have an Android app which uses an SSLSocketFactory to load a pkcs12 certificate
I have an Android app which uses a bit of OpenGL running on a
I have a service class in my Android app which uses a timer. The
So I'm writing an Android app which uses a large c++ library. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.