I am using spring framework. From a jsp page I am doing an ajax call which gives call to a controller written using spring framework. From this ajax call a json is passed as controller parameters.
I guess that if the json is small then everything is working fine but if the json length increases then I am getting following exception in the tomcat -
org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: Unexpected end-of-input in VALUE_STRING at [Source: org.apache.catalina.connector.CoyoteInputStream@147fb5c4; line: 1, column: 6454794]; nested exception is org.codehaus.jackson.JsonParseException: Unexpected end-of-input in VALUE_STRING at [Source: org.apache.catalina.connector.CoyoteInputStream@147fb5c4; line: 1, column: 6454794]
Above exception is not coming every time for a big json. In the brower console & also in the network tab I am not getting anything(so not able to capture the json).
can some one please help me out in understanding what may be the cause for this issue & how to resolve this. Its really difficult to debug this scenario as its not always getting reproduced.