在JME中遇到org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: 问题的解决方法
今天根据开发需求,需要在发布后台中创建一个书本,专栏中每本书的章节数需要200个左右,于是我想到了使用Jmeter工具帮助我完成这一任务,可是在实践过程中遇到了很多问题,后来解决了这些问题,因此,记录下这些问题从何而来,如何解决,希望以后不要再犯这种错误~
报错1:
org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Unrecognized token 'isListAll': was expecting ('true', 'false' or 'null'); nested exception is com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'isListAll': was expecting ('true', 'false' or 'null')
报错2:
org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Unexpected character ('-' (code 45)) in numeric value: expected digit (0-9) to follow minus sign, for valid numeric value; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character ('-' (code 45)) in numeric value: expected digit (0-9) to follow minus sign, for valid numeric value
报错3:
org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Unexpected character ('%' (code 37)): expected a valid value (number, String, array, object, 'true', 'false' or 'null'); nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character ('%' (code 37)): expected a valid value (number, String, array, object, 'true','false' or 'null')
错误原因:
经过百度翻译和在网上查询,问题定位为JSON解析错误,也就是在Http请求中写的参数有问题或者参数在脚本执行时转换有问题
解决方案:
将原来“参数”格式修改为“消息体数据”,如下所示:
1、将接口中POST请求中的Request Payload参数使用 view source模式打开,并在view source模式下的内容
将复制的内容,填入“消息体数据”底下的空白格中,即可解决这个问题~
在JME中遇到org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: 问题的解决方法相关推荐
- converter.HttpMessageNotReadableException: JSON parse error: default constructor not found. 的解决办法
问题概述 在项目开发过程中为了达到更快捷,更精简的代码开发效果,使用了比较流行的Lombok插件,但是在启动进行接口调用的时候遇到了梗, 如下图: 具体详细信息:" org.springfr ...
- org.springframework.http.converter.HttpMessageNotReadableException异常解决
问题现场还原 最近研发过程中,后台代码是这么写的: @ApiImplicitParam(name = "X-Token", value = "登陆用户Token" ...
- ***.http.converter.HttpMessageNotReadableException: I/O error while reading input message; 的解决办法
问题概述 在通过vue-element-admin进行项目的前端脚手架搭建完成后, 前后端数据链路联调时,Request 是发送到后端了, 但是后端报错,错误信息" org.springfr ...
- Jquery中使用ajax请求SSM后台时提示:org.springframework.http.converter.HttpMessageNotReadableException: Could no
场景 Jquery中使用ajax向SSM后台请求数据时提示: org.springframework.http.converter.HttpMessageNotReadableException: C ...
- org.springframework.http.converter.HttpMessageNotReadableException: Required request body is(亲测)
我遇到这个问题的时候看到request body这个字眼想到了和后端接口@RequestBody这个注解有关 然后看接口的时候就明白了,我在参数列表中使用了@RequestBody进行参数获取 但是接 ...
- Resolved [org.springframework.http.converter.HttpMessageNotReadableException: Required request body
idea报错信息:Resolved [org.springframework.http.converter.HttpMessageNotReadableException: Required requ ...
- 异常:org.springframework.http.converter.HttpMessageNotReadableException
异常:org.springframework.http.converter.HttpMessageNotReadableException 参考文章: (1)异常:org.springframewor ...
- 关于报错:Failed to read HTTP message: org.springframework.http.converter.HttpMessageNotReadableException
关于这个报错:Failed to read HTTP message: org.springframework.http.converter.HttpMessageNotReadableExcepti ...
- VMware vSphere Client中启动虚拟机提示No boot filename received/Operating System not found解决方法
VMware vSphere Client中启动虚拟机提示No boot filename received/Operating System not found解决方法 参考文章: (1)VMwar ...
最新文章
- 2018.10.25-dtoj-2903-蛋糕(cake)
- centos上用yum安装rar/unrar
- PAT甲级1098 Insertion or Heap Sort:[C++题解]堆排序和插入排序
- 通过防火墙堵住×××安全漏洞
- m40型工业机器人_工业机器人4大控制方式,你知道几种?
- 午餐前如何安装OpenStack Cloud
- Vue.js 极简小例:读值、样式调用、if判断、a 标签、点击事件、管道
- 数据库大咖解读“新基建”,墨天轮四重好礼相送!
- 【华为云技术分享】ARMv8-A存储模型概述(1)
- 3198元起!魅族16s开启预约:4月28日全渠道首发
- mysql 出现 quot_mysql 出现 quot;the table is fullquot;的问题 - tmuffamd - ITeye博客
- Python 基于项目自动生成 requirements.txt 文件
- 正态分布下贝叶斯决策的特例(二)
- vue项目中,网页地址栏添加小图标
- 新手前端程序员就职指南之 - 入职第一天
- 整数幂C语言1005,zzuli1005: 整数幂 - 菜鸟头头
- 韶音耳机连不上电脑_骨传导耳机怎么连接电脑
- Nature子刊 | AI驱动的药物开发是一把双刃剑
- [宋史学习] 结合水浒传看职役
- 3月二手住宅市场缓慢回温
热门文章
- [转载]每周问问你的团队这10个问题
- 【数据分享】世界国家时区划分(含世界国家时区)
- mobileconfigs.php,爱搞机 | iPhone 现在就能用上“5G”啦!速度飞快!
- 登记一个软件著作权要钱吗?要多少钱?去哪里登记?
- java string设置编码_详解Java中String类型与默认字符编码
- php调用支付宝微信支付接口 免签约 实测能用
- 淘宝、1688采集商品信息详情API
- Jmeter从入门、安装、配置详解
- 群体智能优化算法之鲸鱼优化算法
- 有必要考「银行从业资格证」吗?