java.lang.IllegalStateException: getInputStream() has already been called for this request该异常的解决方法!

2012-4-6 22:25:42 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet default threw exception
java.lang.IllegalStateException: getInputStream() has already been called for this request
 at org.apache.catalina.connector.Request.getReader(Request.java:1187)
 at org.apache.catalina.connector.RequestFacade.getReader(RequestFacade.java:470)
 at javax.servlet.ServletRequestWrapper.getReader(ServletRequestWrapper.java:248)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。

将对象转换为JSON格式时出错,解决方法保证转换成JSON数据的每个java实体类为可序列化,Serializable就是java提供的通用数据保存和读取的接口

你可能感兴趣的:(java.lang.IllegalStateException: getInputStream() has already been called for this request该异常的解决方法!)