SPR-7439 - JSON (jackson) @RequestBody marshalling throws awkward exception
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4474 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
ce707c575d
commit
9e1d02da2b
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
package org.springframework.http.converter.json;
|
||||
|
||||
import java.io.EOFException;
|
||||
import java.io.IOException;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.List;
|
||||
|
|
@ -137,6 +138,9 @@ public class MappingJacksonHttpMessageConverter extends AbstractHttpMessageConve
|
|||
catch (JsonParseException 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
|
||||
|
|
|
|||
Loading…
Reference in New Issue