Date format changed in Payara 5 (Long does not work anymore ) — org.eclipse.yasson.YassonProperties#ZERO_TIME_PARSE_DEFAULTING
问题 Using Payara 4.174 and receive in backend the date as a long, for example 1540545780000. Now, I upgraded to Payara version 5. public User { String name; Date birthdate; } @POST @Path("/user/) public void createUser(User user) { ... } json call { name: "name", birthdate: 1540545780000 } Now The call brakes with the following error: Caused by: javax.json.bind.JsonbException: Error parsing class java.util.Date from value: 1540545780000. Check your @JsonbDateFormat has all time units for class