Hey,
I'm testing the 0.6.0-SNAPSHOT and I'm running into issues with joda time serialization. In 0.5.1, datetimes serialized as milliseconds (and worked just fine), now they serialize as fully fledged objects with every little detail of the time involved. This now leads to issues with deserialization:
Caused by: ! com.fasterxml.jackson.databind.JsonMappingException: Can not construct instance of org.joda.time.Chronology, problem: abstract types either need to be mapped to concrete types, have custom deserializer, or be instantiated with additional type information
at [Source: java.util.zip.GZIPInputStream@2947640e; line: 1, column: 376] (through reference chain: uk.gov.ida.hub.shared.dto.IdentityProviderMetadataDto["expires"]->org.joda.time.DateTime["chronology"]).
Any ideas?
Thanks,
David
0.6.0-SNAPSHOT serialization:
expires: {year: 2012,
era: 1,
dayOfYear: 325,
dayOfWeek: 2,
dayOfMonth: 20,
weekOfWeekyear: 47,
weekyear: 2012,
monthOfYear: 11,
yearOfEra: 2012,
yearOfCentury: 12,
centuryOfEra: 20,
millisOfSecond: 275,
millisOfDay: 35220275,
secondOfMinute: 0,
secondOfDay: 35220,
minuteOfHour: 47,
minuteOfDay: 587,
hourOfDay: 9,
millis: 1353404820275,
beforeNow: false,
afterNow: true,
equalNow: false
},
0.5.1 serialization:
expires: 1353406674345,