Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Failed to invoke protected java.text.DateFormat() with no args #35

Closed
moderateepheezy opened this issue Apr 7, 2016 · 1 comment
Closed

Comments

@moderateepheezy
Copy link

I don't understand this error, the piece below logs the error

  Reservoir.getAsync("eventsData", resultType, new ReservoirGetCallback<List<EventsDataList>>(){
             @Override
             public void onSuccess(List<EventsDataList> events) {
                 //success
                 mAdapter.addAll(events);
             }

             @Override
             public void onFailure(Exception e) {
                 //error
                 Log.d("ErrorLog", e.getMessage()); //This is where i get the error 
             }
  });
@anupcowkur
Copy link
Owner

Whatever class you're putting into Reservoir needs a default no-arg constructor since it is required by GSON and Reservoir depends on it. Make sure that this is the case. It isn't a library bug so I'm closing it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants