본문 바로가기

트러블 슈팅

java.lang.IllegalArgumentException: Invalid character found in method name [0x040x010x000x19h/0x00!0x00...]. HTTP method names must be tokens

1. 오류내용


java.lang.IllegalArgumentException: Invalid character found in method name [0x040x010x000x19h/0x00!0x00...]. HTTP method names must be tokens

 

2. 오류 이유 

https가 활성화되지 않았는데 https에 요청을 하는 경우

 

3. 오류 해결

- HTTP 통신 시 https://~~~를 http://~~~로 수정

 

로컬에는 ssh 설정 같은건 한 적이 없으니 당연하게도!! 오류가 떴다ㅠㅠ

이외에도 포트번호를 내가 설정한 것이 아닌(디폴트는 8080) SSH버전 (443)으로 되어있는지 확인해야 한다.


참고

stackoverflow.com/questions/42218237/tomcat-java-lang-illegalargumentexception-invalid-character-found-in-method-na