Java : Character decoding failed.

信息 :org.apache.tomcat.util.http.Parameters [DirectJDKLog.java : 173] Character decoding failed. Parameter [param] with value [] has been ignored. Note that the name and value quoted here may be corrupted due to the failed decoding. Use debug level logging to see the original, non-corrupted values.
Note: further occurrences of Parameter errors will be logged at DEBUG level.

原因 :http接口请求,携带参数中含有%, 编码出错,导致数据传输为空。

解决 :param.replaceAll("%" , "%25");

 

上一篇:Android 报错 Password verification failed


下一篇:Cesium-vue:启动失败,error in ./node_modules/cesium/Source/ThirdParty/zip.js Module parse failed: Unexp