java.lang.IllegalArgumentException: Invalid character found in method name [0x160x030x0
问题
在使用浏览器访问后端进行测试时,发现出现了以下异常:
java.lang.IllegalArgumentException: Invalid character found in method name [0x160x030x010x020x000x010x000x010xfc0x030x03_60xe20xa5Y0xeau0x17'u/0x860xc1]5l640x840xa1Q,0xa50x810x880xa1l0xf50x11]. HTTP method names must be tokensat org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:417)at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:261)at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:888)at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1597)at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)at java.lang.Thread.run(Thread.java:748)
解决方案
这个异常的意思就是在方法中有非法的参数,可我自己检查了后端接口,发现并没问题,于是我觉得问题应该出在请求上。果然,我发现我写的ajax请求地址写的是 https,可是我并没有加密,是无法用https协议的,将https改为http即可。特此记录。
java.lang.IllegalArgumentException: Invalid character found in method name [0x160x030x0相关推荐
- java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must b
一.错误描述 java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names ...
- java.lang.IllegalArgumentException: Invalid character found in method name [0x160x030x010x020x000x01
springboot项目启动localhost 发送了无效的响应. 在初学springboot时刚启动springboot想要测试是否成功. package com.itheima.controlle ...
- Error parsing HTTP request header...java.lang.IllegalArgumentException: Invalid character found in m
问题描述 http请求,偶尔出现该问题. 2022-04-09 09:28:36,247 INFO [][scheduling-1] c.w.w.task.ApiRequestTask - refre ...
- tomcat配置SSL报错解决:java.lang.IllegalArgumentException: Invalid character (CR or LF) found in method nam
使用CAS单点登陆时,在tomcat的server.xml中配置了https协议的证书认证,但访问时报错: INFO [http-nio-8443-exec-4] org.apache.coyote. ...
- 后台报错java.lang.IllegalArgumentException: Invalid character found in the request target.
问题描述:启动项目后,当点击页面某一个按钮时,项目出错并且后台报java.lang.IllegalArgumentException: Invalid character found in the r ...
- java lang IllegalArgumentException Invalid character found
java.lang.IllegalArgumentException: Invalid character found in the request target. The valid charact ...
- java.lang.IllegalArgumentException: Invalid character found in the request target. The valid charact
Tomcat IllegalArgumentException(Invalid character found in the request target) 问题解决 2018-09-06 线上环境中 ...
- 接口请求返回400状态码,后端代码报错: java.lang.IllegalArgumentException: Invalid character found in the request targ
一. 错误原因: 当在浏览器中访问时 URL中带有特殊字符,如花括号冒号时,就会出现这个错误. 例如:http://localhost:8080/index.do?{id:123} 二. 解决办法 1 ...
- 【Android】java.lang.IllegalArgumentException Illegal character in scheme 异常
在使用字符串拼接成url地址进行数据请求的时候,有时在数据请求的时候会出现 java.lang.IllegalArgumentException: Illegal character in schem ...
最新文章
- 中国游戏中心让计算机死机,win10玩游戏不定时死机
- 重磅:国拨概算5.34亿!“新一代人工智能”重大项目项目申报指南发布
- python函数返回多个变量_Python 3:通过多个函数返回变量
- python3.6 在 windows10 下使用pycrypto
- Ubuntu14.04LST 安装Oracle SQL Developer 4.0.2
- 实用技巧:使用 Google Analytics 跟踪 JS 错误
- 【教训】rm -fr ./* 教训
- 异步社区免费电子书下载爬虫实验攻略
- Python学习_100Days
- 九阴真经战无不胜服务器位置,九阴真经新服“战无不胜”
- 服务器设置自动开机及定时开机
- Java Spider介绍
- 手机用计算机微信运动记步吗,微信运动到底是如何记录步数的?
- 敏捷开发与Scrum区别(敏捷开发(Agile)教程)
- 【内网安全-通讯上线】通讯上线基础知识
- Qt之自定义属性Q_PROPERTY
- restful什么意思_RESTful的真正含义是什么?
- 达梦数据库大小写敏感介绍
- c语言按键控制的步进电机程序,独立按键控制步进电机运转c语言程序
- iMX6平台MAX9288调试