SPR-7439 - JSON (jackson) @RequestBody marshalling throws awkward exception
This commit is contained in:
parent
4f1e74877a
commit
fa3e9bdfdd
|
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
package org.springframework.http.converter.json;
|
package org.springframework.http.converter.json;
|
||||||
|
|
||||||
|
import java.io.EOFException;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.charset.Charset;
|
import java.nio.charset.Charset;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
@ -137,6 +138,9 @@ public class MappingJacksonHttpMessageConverter extends AbstractHttpMessageConve
|
||||||
catch (JsonParseException ex) {
|
catch (JsonParseException ex) {
|
||||||
throw new HttpMessageNotReadableException("Could not read JSON: " + ex.getMessage(), ex);
|
throw new HttpMessageNotReadableException("Could not read JSON: " + ex.getMessage(), ex);
|
||||||
}
|
}
|
||||||
|
catch (EOFException ex) {
|
||||||
|
throw new HttpMessageNotReadableException("Could not read JSON: " + ex.getMessage(), ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue