通过
String xmlMsg = HttpKit.readData(getRequest());
获取 post 参数报下面的错误,是什么问题呢?3.3版本
[ERROR]-[Thread: qtp242481580-31]-[com.jfinal.kit.LogKit.error()]: STREAMED java.lang.IllegalStateException: STREAMED at org.eclipse.jetty.server.Request.getReader(Request.java:849) at com.jfinal.kit.HttpKit.readData(HttpKit.java:264) at com.jcbase.controller.auth.BaiduPayApi.payNotify(BaiduPayApi.java:186) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.jfinal.aop.Invocation.invoke(Invocation.java:73) at com.jfinal.plugin.activerecord.tx.Tx.intercept(Tx.java:77)
项目:JFinal
建议在 Controller 中调用 getRawData() 来代替 HttpKit.readData。 前者可以调用无限次数,后者在每次请求到来时只能调用一次