How to add Proguard rules for a reflection generated class?










0















This is the class in which I'm facing the issue:



import java.lang.reflect.Constructor;

/**
* Keyword validator constructors common to draft v4 and v3
*/
public final class CommonValidatorDictionary

private static final Dictionary<Constructor<? extends KeywordValidator>>
DICTIONARY;

private CommonValidatorDictionary()



public static Dictionary<Constructor<? extends KeywordValidator>> get()

return DICTIONARY;


static
final DictionaryBuilder<Constructor<? extends KeywordValidator>>
builder = Dictionary.newBuilder();

String keyword;
Class<? extends KeywordValidator> c;

/*
* Arrays
*/
keyword = "additionalItems";
c = AdditionalItemsValidator.class;
builder.addEntry(keyword, constructor(c));

keyword = "minItems";
c = MinItemsValidator.class;
builder.addEntry(keyword, constructor(c));

keyword = "maxItems";
c = MaxItemsValidator.class;
builder.addEntry(keyword, constructor(c));

keyword = "uniqueItems";
c = UniqueItemsValidator.class;
builder.addEntry(keyword, constructor(c));

/*
* Numbers and integers
*/
keyword = "minimum";
c = MinimumValidator.class;
builder.addEntry(keyword, constructor(c));

keyword = "maximum";
c = MaximumValidator.class;
builder.addEntry(keyword, constructor(c));

/*
* Objects
*/
keyword = "additionalProperties";
c = AdditionalPropertiesValidator.class;
builder.addEntry(keyword, constructor(c));

/*
* Strings
*/
keyword = "minLength";
c = MinLengthValidator.class;
builder.addEntry(keyword, constructor(c));

keyword = "maxLength";
c = MaxLengthValidator.class;
builder.addEntry(keyword, constructor(c));

keyword = "pattern";
c = PatternValidator.class;
builder.addEntry(keyword, constructor(c));

keyword = "enum";
c = EnumValidator.class;
builder.addEntry(keyword, constructor(c));

DICTIONARY = builder.freeze();


private static Constructor<? extends KeywordValidator> constructor(
final Class<? extends KeywordValidator> c)

try
return c.getConstructor(JsonNode.class);
catch (NoSuchMethodException e)
throw new RuntimeException("No appropriate constructor", e);





These are error log :



2018-11-09 19:39:42.006 6598-13189/com.dxp.aci W/System.err: java.lang.RuntimeException: An error occurred while executing doInBackground()
2018-11-09 19:39:42.006 6598-13189/com.dxp.aci W/System.err: at android.os.AsyncTask$3.done(AsyncTask.java:325)
2018-11-09 19:39:42.006 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
2018-11-09 19:39:42.006 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:242)
2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at java.lang.Thread.run(Thread.java:762)
2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: Caused by: java.lang.NoClassDefFoundError: decurtis.dxp.documentschema.validator.SchemaValidator
2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at decurtis.dxp.documentschema.validator.SchemaValidator.validateDocument(SchemaValidator.java:104)
2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.json_schema_validation.SchemaValidableDocumentUpdater.update(SchemaValidableDocumentUpdater.java:127)
2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.couchbase.lite.Document.update(Document.java:376)
2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.documents.CouchDocumentHelper.saveDocument(CouchDocumentHelper.java:497)
2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.backend.service.ACI.ACIService.postAlert(ACIService.java:216)
2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.backend.feature.ACI.ACIFeature.postAlert(ACIFeature.java:98)
2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.backend.Presenter.ACI.ACIPresenter.postAlert(ACIPresenter.java:537)
2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.ui.dialog.VCICreateEditAlertDialog$1.doInBackground(VCICreateEditAlertDialog.java:186)
2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.ui.dialog.VCICreateEditAlertDialog$1.doInBackground(VCICreateEditAlertDialog.java:167)
2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:305)
2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: ... 3 more
2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: Caused by: java.lang.ExceptionInInitializerError
2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.CommonValidatorDictionary.a(CommonValidatorDictionary.java:54)
2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.DraftV3ValidatorDictionary.(DraftV3ValidatorDictionary.java:59)
2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.DraftV3ValidatorDictionary.a(DraftV3ValidatorDictionary.java:49)
2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.DraftV3Library.(DraftV3Library.java:32)
2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.DraftV3Library.a(DraftV3Library.java:45)
2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.cfg.ValidationConfigurationBuilder.(ValidationConfigurationBuilder.java:63)
2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.cfg.ValidationConfiguration.a(ValidationConfiguration.java:92)
2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.cfg.ValidationConfiguration.b(ValidationConfiguration.java:102)
2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.main.JsonSchemaFactoryBuilder.(JsonSchemaFactoryBuilder.java:68)
2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.main.JsonSchemaFactory.newBuilder(JsonSchemaFactory.java:123)
2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.main.JsonSchemaFactory.byDefault(JsonSchemaFactory.java:113)
2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at decurtis.dxp.documentschema.validator.SchemaValidator.(SchemaValidator.java:48)
2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: ... 14 more
2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: Caused by: java.lang.RuntimeException: No appropriate constructor
2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.CommonValidatorDictionary.a(CommonValidatorDictionary.java:129)
2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.CommonValidatorDictionary.(CommonValidatorDictionary.java:69)
2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: ... 26 more
2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: Caused by: java.lang.NoSuchMethodException: [class com.fasterxml.jackson.databind.JsonNode]
2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at java.lang.Class.getConstructor0(Class.java:2204)
2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at java.lang.Class.getConstructor(Class.java:1683)
2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.CommonValidatorDictionary.a(CommonValidatorDictionary.java:127)










share|improve this question


























    0















    This is the class in which I'm facing the issue:



    import java.lang.reflect.Constructor;

    /**
    * Keyword validator constructors common to draft v4 and v3
    */
    public final class CommonValidatorDictionary

    private static final Dictionary<Constructor<? extends KeywordValidator>>
    DICTIONARY;

    private CommonValidatorDictionary()



    public static Dictionary<Constructor<? extends KeywordValidator>> get()

    return DICTIONARY;


    static
    final DictionaryBuilder<Constructor<? extends KeywordValidator>>
    builder = Dictionary.newBuilder();

    String keyword;
    Class<? extends KeywordValidator> c;

    /*
    * Arrays
    */
    keyword = "additionalItems";
    c = AdditionalItemsValidator.class;
    builder.addEntry(keyword, constructor(c));

    keyword = "minItems";
    c = MinItemsValidator.class;
    builder.addEntry(keyword, constructor(c));

    keyword = "maxItems";
    c = MaxItemsValidator.class;
    builder.addEntry(keyword, constructor(c));

    keyword = "uniqueItems";
    c = UniqueItemsValidator.class;
    builder.addEntry(keyword, constructor(c));

    /*
    * Numbers and integers
    */
    keyword = "minimum";
    c = MinimumValidator.class;
    builder.addEntry(keyword, constructor(c));

    keyword = "maximum";
    c = MaximumValidator.class;
    builder.addEntry(keyword, constructor(c));

    /*
    * Objects
    */
    keyword = "additionalProperties";
    c = AdditionalPropertiesValidator.class;
    builder.addEntry(keyword, constructor(c));

    /*
    * Strings
    */
    keyword = "minLength";
    c = MinLengthValidator.class;
    builder.addEntry(keyword, constructor(c));

    keyword = "maxLength";
    c = MaxLengthValidator.class;
    builder.addEntry(keyword, constructor(c));

    keyword = "pattern";
    c = PatternValidator.class;
    builder.addEntry(keyword, constructor(c));

    keyword = "enum";
    c = EnumValidator.class;
    builder.addEntry(keyword, constructor(c));

    DICTIONARY = builder.freeze();


    private static Constructor<? extends KeywordValidator> constructor(
    final Class<? extends KeywordValidator> c)

    try
    return c.getConstructor(JsonNode.class);
    catch (NoSuchMethodException e)
    throw new RuntimeException("No appropriate constructor", e);





    These are error log :



    2018-11-09 19:39:42.006 6598-13189/com.dxp.aci W/System.err: java.lang.RuntimeException: An error occurred while executing doInBackground()
    2018-11-09 19:39:42.006 6598-13189/com.dxp.aci W/System.err: at android.os.AsyncTask$3.done(AsyncTask.java:325)
    2018-11-09 19:39:42.006 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
    2018-11-09 19:39:42.006 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
    2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:242)
    2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
    2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
    2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at java.lang.Thread.run(Thread.java:762)
    2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: Caused by: java.lang.NoClassDefFoundError: decurtis.dxp.documentschema.validator.SchemaValidator
    2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at decurtis.dxp.documentschema.validator.SchemaValidator.validateDocument(SchemaValidator.java:104)
    2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.json_schema_validation.SchemaValidableDocumentUpdater.update(SchemaValidableDocumentUpdater.java:127)
    2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.couchbase.lite.Document.update(Document.java:376)
    2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.documents.CouchDocumentHelper.saveDocument(CouchDocumentHelper.java:497)
    2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.backend.service.ACI.ACIService.postAlert(ACIService.java:216)
    2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.backend.feature.ACI.ACIFeature.postAlert(ACIFeature.java:98)
    2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.backend.Presenter.ACI.ACIPresenter.postAlert(ACIPresenter.java:537)
    2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.ui.dialog.VCICreateEditAlertDialog$1.doInBackground(VCICreateEditAlertDialog.java:186)
    2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.ui.dialog.VCICreateEditAlertDialog$1.doInBackground(VCICreateEditAlertDialog.java:167)
    2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:305)
    2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
    2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: ... 3 more
    2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: Caused by: java.lang.ExceptionInInitializerError
    2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.CommonValidatorDictionary.a(CommonValidatorDictionary.java:54)
    2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.DraftV3ValidatorDictionary.(DraftV3ValidatorDictionary.java:59)
    2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.DraftV3ValidatorDictionary.a(DraftV3ValidatorDictionary.java:49)
    2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.DraftV3Library.(DraftV3Library.java:32)
    2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.DraftV3Library.a(DraftV3Library.java:45)
    2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.cfg.ValidationConfigurationBuilder.(ValidationConfigurationBuilder.java:63)
    2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.cfg.ValidationConfiguration.a(ValidationConfiguration.java:92)
    2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.cfg.ValidationConfiguration.b(ValidationConfiguration.java:102)
    2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.main.JsonSchemaFactoryBuilder.(JsonSchemaFactoryBuilder.java:68)
    2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.main.JsonSchemaFactory.newBuilder(JsonSchemaFactory.java:123)
    2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.main.JsonSchemaFactory.byDefault(JsonSchemaFactory.java:113)
    2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at decurtis.dxp.documentschema.validator.SchemaValidator.(SchemaValidator.java:48)
    2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: ... 14 more
    2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: Caused by: java.lang.RuntimeException: No appropriate constructor
    2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.CommonValidatorDictionary.a(CommonValidatorDictionary.java:129)
    2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.CommonValidatorDictionary.(CommonValidatorDictionary.java:69)
    2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: ... 26 more
    2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: Caused by: java.lang.NoSuchMethodException: [class com.fasterxml.jackson.databind.JsonNode]
    2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at java.lang.Class.getConstructor0(Class.java:2204)
    2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at java.lang.Class.getConstructor(Class.java:1683)
    2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.CommonValidatorDictionary.a(CommonValidatorDictionary.java:127)










    share|improve this question
























      0












      0








      0


      0






      This is the class in which I'm facing the issue:



      import java.lang.reflect.Constructor;

      /**
      * Keyword validator constructors common to draft v4 and v3
      */
      public final class CommonValidatorDictionary

      private static final Dictionary<Constructor<? extends KeywordValidator>>
      DICTIONARY;

      private CommonValidatorDictionary()



      public static Dictionary<Constructor<? extends KeywordValidator>> get()

      return DICTIONARY;


      static
      final DictionaryBuilder<Constructor<? extends KeywordValidator>>
      builder = Dictionary.newBuilder();

      String keyword;
      Class<? extends KeywordValidator> c;

      /*
      * Arrays
      */
      keyword = "additionalItems";
      c = AdditionalItemsValidator.class;
      builder.addEntry(keyword, constructor(c));

      keyword = "minItems";
      c = MinItemsValidator.class;
      builder.addEntry(keyword, constructor(c));

      keyword = "maxItems";
      c = MaxItemsValidator.class;
      builder.addEntry(keyword, constructor(c));

      keyword = "uniqueItems";
      c = UniqueItemsValidator.class;
      builder.addEntry(keyword, constructor(c));

      /*
      * Numbers and integers
      */
      keyword = "minimum";
      c = MinimumValidator.class;
      builder.addEntry(keyword, constructor(c));

      keyword = "maximum";
      c = MaximumValidator.class;
      builder.addEntry(keyword, constructor(c));

      /*
      * Objects
      */
      keyword = "additionalProperties";
      c = AdditionalPropertiesValidator.class;
      builder.addEntry(keyword, constructor(c));

      /*
      * Strings
      */
      keyword = "minLength";
      c = MinLengthValidator.class;
      builder.addEntry(keyword, constructor(c));

      keyword = "maxLength";
      c = MaxLengthValidator.class;
      builder.addEntry(keyword, constructor(c));

      keyword = "pattern";
      c = PatternValidator.class;
      builder.addEntry(keyword, constructor(c));

      keyword = "enum";
      c = EnumValidator.class;
      builder.addEntry(keyword, constructor(c));

      DICTIONARY = builder.freeze();


      private static Constructor<? extends KeywordValidator> constructor(
      final Class<? extends KeywordValidator> c)

      try
      return c.getConstructor(JsonNode.class);
      catch (NoSuchMethodException e)
      throw new RuntimeException("No appropriate constructor", e);





      These are error log :



      2018-11-09 19:39:42.006 6598-13189/com.dxp.aci W/System.err: java.lang.RuntimeException: An error occurred while executing doInBackground()
      2018-11-09 19:39:42.006 6598-13189/com.dxp.aci W/System.err: at android.os.AsyncTask$3.done(AsyncTask.java:325)
      2018-11-09 19:39:42.006 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
      2018-11-09 19:39:42.006 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:242)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at java.lang.Thread.run(Thread.java:762)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: Caused by: java.lang.NoClassDefFoundError: decurtis.dxp.documentschema.validator.SchemaValidator
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at decurtis.dxp.documentschema.validator.SchemaValidator.validateDocument(SchemaValidator.java:104)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.json_schema_validation.SchemaValidableDocumentUpdater.update(SchemaValidableDocumentUpdater.java:127)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.couchbase.lite.Document.update(Document.java:376)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.documents.CouchDocumentHelper.saveDocument(CouchDocumentHelper.java:497)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.backend.service.ACI.ACIService.postAlert(ACIService.java:216)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.backend.feature.ACI.ACIFeature.postAlert(ACIFeature.java:98)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.backend.Presenter.ACI.ACIPresenter.postAlert(ACIPresenter.java:537)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.ui.dialog.VCICreateEditAlertDialog$1.doInBackground(VCICreateEditAlertDialog.java:186)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.ui.dialog.VCICreateEditAlertDialog$1.doInBackground(VCICreateEditAlertDialog.java:167)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:305)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: ... 3 more
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: Caused by: java.lang.ExceptionInInitializerError
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.CommonValidatorDictionary.a(CommonValidatorDictionary.java:54)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.DraftV3ValidatorDictionary.(DraftV3ValidatorDictionary.java:59)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.DraftV3ValidatorDictionary.a(DraftV3ValidatorDictionary.java:49)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.DraftV3Library.(DraftV3Library.java:32)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.DraftV3Library.a(DraftV3Library.java:45)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.cfg.ValidationConfigurationBuilder.(ValidationConfigurationBuilder.java:63)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.cfg.ValidationConfiguration.a(ValidationConfiguration.java:92)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.cfg.ValidationConfiguration.b(ValidationConfiguration.java:102)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.main.JsonSchemaFactoryBuilder.(JsonSchemaFactoryBuilder.java:68)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.main.JsonSchemaFactory.newBuilder(JsonSchemaFactory.java:123)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.main.JsonSchemaFactory.byDefault(JsonSchemaFactory.java:113)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at decurtis.dxp.documentschema.validator.SchemaValidator.(SchemaValidator.java:48)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: ... 14 more
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: Caused by: java.lang.RuntimeException: No appropriate constructor
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.CommonValidatorDictionary.a(CommonValidatorDictionary.java:129)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.CommonValidatorDictionary.(CommonValidatorDictionary.java:69)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: ... 26 more
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: Caused by: java.lang.NoSuchMethodException: [class com.fasterxml.jackson.databind.JsonNode]
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at java.lang.Class.getConstructor0(Class.java:2204)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at java.lang.Class.getConstructor(Class.java:1683)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.CommonValidatorDictionary.a(CommonValidatorDictionary.java:127)










      share|improve this question














      This is the class in which I'm facing the issue:



      import java.lang.reflect.Constructor;

      /**
      * Keyword validator constructors common to draft v4 and v3
      */
      public final class CommonValidatorDictionary

      private static final Dictionary<Constructor<? extends KeywordValidator>>
      DICTIONARY;

      private CommonValidatorDictionary()



      public static Dictionary<Constructor<? extends KeywordValidator>> get()

      return DICTIONARY;


      static
      final DictionaryBuilder<Constructor<? extends KeywordValidator>>
      builder = Dictionary.newBuilder();

      String keyword;
      Class<? extends KeywordValidator> c;

      /*
      * Arrays
      */
      keyword = "additionalItems";
      c = AdditionalItemsValidator.class;
      builder.addEntry(keyword, constructor(c));

      keyword = "minItems";
      c = MinItemsValidator.class;
      builder.addEntry(keyword, constructor(c));

      keyword = "maxItems";
      c = MaxItemsValidator.class;
      builder.addEntry(keyword, constructor(c));

      keyword = "uniqueItems";
      c = UniqueItemsValidator.class;
      builder.addEntry(keyword, constructor(c));

      /*
      * Numbers and integers
      */
      keyword = "minimum";
      c = MinimumValidator.class;
      builder.addEntry(keyword, constructor(c));

      keyword = "maximum";
      c = MaximumValidator.class;
      builder.addEntry(keyword, constructor(c));

      /*
      * Objects
      */
      keyword = "additionalProperties";
      c = AdditionalPropertiesValidator.class;
      builder.addEntry(keyword, constructor(c));

      /*
      * Strings
      */
      keyword = "minLength";
      c = MinLengthValidator.class;
      builder.addEntry(keyword, constructor(c));

      keyword = "maxLength";
      c = MaxLengthValidator.class;
      builder.addEntry(keyword, constructor(c));

      keyword = "pattern";
      c = PatternValidator.class;
      builder.addEntry(keyword, constructor(c));

      keyword = "enum";
      c = EnumValidator.class;
      builder.addEntry(keyword, constructor(c));

      DICTIONARY = builder.freeze();


      private static Constructor<? extends KeywordValidator> constructor(
      final Class<? extends KeywordValidator> c)

      try
      return c.getConstructor(JsonNode.class);
      catch (NoSuchMethodException e)
      throw new RuntimeException("No appropriate constructor", e);





      These are error log :



      2018-11-09 19:39:42.006 6598-13189/com.dxp.aci W/System.err: java.lang.RuntimeException: An error occurred while executing doInBackground()
      2018-11-09 19:39:42.006 6598-13189/com.dxp.aci W/System.err: at android.os.AsyncTask$3.done(AsyncTask.java:325)
      2018-11-09 19:39:42.006 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
      2018-11-09 19:39:42.006 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:242)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at java.lang.Thread.run(Thread.java:762)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: Caused by: java.lang.NoClassDefFoundError: decurtis.dxp.documentschema.validator.SchemaValidator
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at decurtis.dxp.documentschema.validator.SchemaValidator.validateDocument(SchemaValidator.java:104)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.json_schema_validation.SchemaValidableDocumentUpdater.update(SchemaValidableDocumentUpdater.java:127)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.couchbase.lite.Document.update(Document.java:376)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.documents.CouchDocumentHelper.saveDocument(CouchDocumentHelper.java:497)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.backend.service.ACI.ACIService.postAlert(ACIService.java:216)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.backend.feature.ACI.ACIFeature.postAlert(ACIFeature.java:98)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.backend.Presenter.ACI.ACIPresenter.postAlert(ACIPresenter.java:537)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.ui.dialog.VCICreateEditAlertDialog$1.doInBackground(VCICreateEditAlertDialog.java:186)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at com.android.embarkation.ui.dialog.VCICreateEditAlertDialog$1.doInBackground(VCICreateEditAlertDialog.java:167)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:305)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: ... 3 more
      2018-11-09 19:39:42.007 6598-13189/com.dxp.aci W/System.err: Caused by: java.lang.ExceptionInInitializerError
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.CommonValidatorDictionary.a(CommonValidatorDictionary.java:54)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.DraftV3ValidatorDictionary.(DraftV3ValidatorDictionary.java:59)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.DraftV3ValidatorDictionary.a(DraftV3ValidatorDictionary.java:49)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.DraftV3Library.(DraftV3Library.java:32)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.DraftV3Library.a(DraftV3Library.java:45)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.cfg.ValidationConfigurationBuilder.(ValidationConfigurationBuilder.java:63)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.cfg.ValidationConfiguration.a(ValidationConfiguration.java:92)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.cfg.ValidationConfiguration.b(ValidationConfiguration.java:102)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.main.JsonSchemaFactoryBuilder.(JsonSchemaFactoryBuilder.java:68)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.main.JsonSchemaFactory.newBuilder(JsonSchemaFactory.java:123)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.main.JsonSchemaFactory.byDefault(JsonSchemaFactory.java:113)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at decurtis.dxp.documentschema.validator.SchemaValidator.(SchemaValidator.java:48)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: ... 14 more
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: Caused by: java.lang.RuntimeException: No appropriate constructor
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.CommonValidatorDictionary.a(CommonValidatorDictionary.java:129)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.CommonValidatorDictionary.(CommonValidatorDictionary.java:69)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: ... 26 more
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: Caused by: java.lang.NoSuchMethodException: [class com.fasterxml.jackson.databind.JsonNode]
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at java.lang.Class.getConstructor0(Class.java:2204)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at java.lang.Class.getConstructor(Class.java:1683)
      2018-11-09 19:39:42.008 6598-13189/com.dxp.aci W/System.err: at com.github.fge.jsonschema.library.validator.CommonValidatorDictionary.a(CommonValidatorDictionary.java:127)







      android proguard android-proguard json-schema-validator






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 13 '18 at 14:15









      Puneet GuptaPuneet Gupta

      717




      717






















          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53282986%2fhow-to-add-proguard-rules-for-a-reflection-generated-class%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53282986%2fhow-to-add-proguard-rules-for-a-reflection-generated-class%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to how show current date and time by default on contact form 7 in WordPress without taking input from user in datetimepicker

          Darth Vader #20

          Ondo