今天根据开发需求,需要在发布后台中创建一个书本,专栏中每本书的章节数需要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: 问题的解决方法相关推荐

  1. converter.HttpMessageNotReadableException: JSON parse error: default constructor not found. 的解决办法

    问题概述 在项目开发过程中为了达到更快捷,更精简的代码开发效果,使用了比较流行的Lombok插件,但是在启动进行接口调用的时候遇到了梗, 如下图: 具体详细信息:" org.springfr ...

  2. org.springframework.http.converter.HttpMessageNotReadableException异常解决

    问题现场还原 最近研发过程中,后台代码是这么写的: @ApiImplicitParam(name = "X-Token", value = "登陆用户Token" ...

  3. ***.http.converter.HttpMessageNotReadableException: I/O error while reading input message; 的解决办法

    问题概述 在通过vue-element-admin进行项目的前端脚手架搭建完成后, 前后端数据链路联调时,Request 是发送到后端了, 但是后端报错,错误信息" org.springfr ...

  4. Jquery中使用ajax请求SSM后台时提示:org.springframework.http.converter.HttpMessageNotReadableException: Could no

    场景 Jquery中使用ajax向SSM后台请求数据时提示: org.springframework.http.converter.HttpMessageNotReadableException: C ...

  5. org.springframework.http.converter.HttpMessageNotReadableException: Required request body is(亲测)

    我遇到这个问题的时候看到request body这个字眼想到了和后端接口@RequestBody这个注解有关 然后看接口的时候就明白了,我在参数列表中使用了@RequestBody进行参数获取 但是接 ...

  6. Resolved [org.springframework.http.converter.HttpMessageNotReadableException: Required request body

    idea报错信息:Resolved [org.springframework.http.converter.HttpMessageNotReadableException: Required requ ...

  7. 异常:org.springframework.http.converter.HttpMessageNotReadableException

    异常:org.springframework.http.converter.HttpMessageNotReadableException 参考文章: (1)异常:org.springframewor ...

  8. 关于报错:Failed to read HTTP message: org.springframework.http.converter.HttpMessageNotReadableException

    关于这个报错:Failed to read HTTP message: org.springframework.http.converter.HttpMessageNotReadableExcepti ...

  9. VMware vSphere Client中启动虚拟机提示No boot filename received/Operating System not found解决方法

    VMware vSphere Client中启动虚拟机提示No boot filename received/Operating System not found解决方法 参考文章: (1)VMwar ...

最新文章

  1. 2018.10.25-dtoj-2903-蛋糕(cake)
  2. centos上用yum安装rar/unrar
  3. PAT甲级1098 Insertion or Heap Sort:[C++题解]堆排序和插入排序
  4. 通过防火墙堵住×××安全漏洞
  5. m40型工业机器人_工业机器人4大控制方式,你知道几种?
  6. 午餐前如何安装OpenStack Cloud
  7. Vue.js 极简小例:读值、样式调用、if判断、a 标签、点击事件、管道
  8. 数据库大咖解读“新基建”,墨天轮四重好礼相送!
  9. 【华为云技术分享】ARMv8-A存储模型概述(1)
  10. 3198元起!魅族16s开启预约:4月28日全渠道首发
  11. mysql 出现 quot_mysql 出现 quot;the table is fullquot;的问题 - tmuffamd - ITeye博客
  12. Python 基于项目自动生成 requirements.txt 文件
  13. 正态分布下贝叶斯决策的特例(二)
  14. vue项目中,网页地址栏添加小图标
  15. 新手前端程序员就职指南之 - 入职第一天
  16. 整数幂C语言1005,zzuli1005: 整数幂 - 菜鸟头头
  17. 韶音耳机连不上电脑_骨传导耳机怎么连接电脑
  18. Nature子刊 | AI驱动的药物开发是一把双刃剑
  19. [宋史学习] 结合水浒传看职役
  20. 3月二手住宅市场缓慢回温

热门文章

  1. [转载]每周问问你的团队这10个问题
  2. 【数据分享】世界国家时区划分(含世界国家时区)
  3. mobileconfigs.php,爱搞机 | iPhone 现在就能用上“5G”啦!速度飞快!
  4. 登记一个软件著作权要钱吗?要多少钱?去哪里登记?
  5. java string设置编码_详解Java中String类型与默认字符编码
  6. php调用支付宝微信支付接口 免签约 实测能用
  7. 淘宝、1688采集商品信息详情API
  8. Jmeter从入门、安装、配置详解
  9. 群体智能优化算法之鲸鱼优化算法
  10. 有必要考「银行从业资格证」吗?