undertow 报错问题

2020-05-20 09:11:21.484 ERROR 119259 --- [XNIO-1 task-58] io.undertow.request                      : UT005023: Exception handling request to /favicon.ico


java.lang.IllegalArgumentException: UT000173: An invalid control character [179] was present in the cookie value or attribute

at io.undertow.util.LegacyCookieSupport.isHttpSeparator(LegacyCookieSupport.java:149)




2020-05-20 09:11:21.489 ERROR 119259 --- [XNIO-1 task-58] io.undertow.request                      : UT005022: Exception generating error page /error


java.lang.RuntimeException: java.lang.IllegalArgumentException: UT000173: An invalid control

2020-05-20 09:11:21.489 ERROR 119259 --- [XNIO-1 task-58] io.undertow.request                      : UT005071: Undertow request failed HttpServerExchange{ GET /error}


java.lang.IllegalArgumentException: UT000173: An invalid control character [179] was present in the cookie value or attribute

at io.undertow.util.LegacyCookieSupport.isHttpSeparator(LegacyCookieSupport.java:149)


评论区

JFinal

2020-05-21 18:12

cookie 中有不合法字符, 打开 chrome 浏览器的开发者工具,然后鼠标右键删掉所有 cookie 即可

当然,删掉以后,要确保代码中没有 cookie 在存放非法字符

cookie 非法字符可以搜索一下