I'm getting this error while trying to parse from my server to my client. I am developing a servlet, and when I have to retrieve the date from my client, I got this error. I know the problem is the date can not be parsed but why? I'm passing the same object from my server to my client so why is not possible to parse? This is the object which is received from the server.
private String dni;
private String name;
private int habitacion;
private Date fechaIngreso;
private String refHospital;
private Date fechaSalida;
@JsonbTypeAdapter( LinkJsonbAdapter.class )
private Link link;
public IngresadoJson(String name, int habitacion, Date fechaIngreso, Date fechaSalida, String refHospital,String dni, Link link) {
this.name = name;
this.habitacion = habitacion;
this.fechaIngreso = fechaIngreso;
this.refHospital = refHospital;
this.link = link;
this.fechaSalida = fechaSalida;
this.dni= dni;
}
// Getters and setters omitted for brevity