If anyone else runs into a similar problem, it seems that for me it was my last few lines where I create some Event
s. They had a small error in the JSON, which must cause Gson
to error when constructing them.
private static final Event _NOON_FOR_1_HOUR = _gson.fromJson("{\n" +
" \"starttime\" : \"12:00\",\n" +
" \"duration\" : \"60\"\n" +
" }", Event.class);
private static final Event _NOON_FOR_HALF_HOUR = _gson.fromJson("{\n" +
" \"starttime\" : \"12:00\",\n" +
" \"duration\" : \"30\"\n" +
" }", Event.class);
private static final Event _MIDNIGHT_FOR_1_HOUR = _gson.fromJson("{\n" +
" \"starttime\" : \"0:00\",\n" +
" \"duration\" : \"60\"\n" +
" }", Event.class);
private static final Event _MIDNIGHT_FOR_HALF_HOUR = _gson.fromJson("{\n" +
" \"starttime\" : \"0:00\",\n" +
" \"duration\" : \"30\"\n" +
" }", Event.class);
private static final Event _MIDNIGHT_FOR_12_HOUR = _gson.fromJson("{\n" +
" \"starttime\" : \"0:00\",\n" +
" \"duration\" : \"360\"\n" +
" }", Event.class);
The correction was to remove the "," after the "duration" values. It seems that the stacktrace was extremely cryptic and pretty misleading, indeed.