关于错误日志jfinal-undertow错误日志处理

有位同学给了一个简单方案,配置日志将其关闭即可

<Logger name="io.undertow.server.Connectors" level="OFF"></Logger>



每天都有这种错误日志,对系统不知道有没有影响,知道处理的大佬请指教,谢谢

2019-03-20 03:06:47
[ERROR]-[Thread: XNIO-1 I/O-1]-[io.undertow.server.Connectors.executeRootHandler()]: UT005071: Undertow request failed HttpServerExchange{ CONNECT www.google.com:443 request {Accept=[*/*], Accept-Encoding=[gzip, deflate], User-Agent=[Python/3.5 aiohttp/3.5.2], Host=[www.google.com]} response {Server=[JFinal]}}
java.lang.IllegalArgumentException: UT000068: Servlet path match failed
	at io.undertow.servlet.handlers.ServletPathMatchesData.getServletHandlerByPath(ServletPathMatchesData.java:83)
	at io.undertow.servlet.handlers.ServletPathMatches.getServletHandlerByPath(ServletPathMatches.java:88)
	at io.undertow.servlet.handlers.ServletInitialHandler.handleRequest(ServletInitialHandler.java:151)
	at io.undertow.server.handlers.HttpContinueReadHandler.handleRequest(HttpContinueReadHandler.java:65)
	at io.undertow.server.handlers.PathHandler.handleRequest(PathHandler.java:94)
	at io.undertow.server.handlers.encoding.EncodingHandler.handleRequest(EncodingHandler.java:72)
	at io.undertow.server.handlers.SetHeaderHandler.handleRequest(SetHeaderHandler.java:90)
	at io.undertow.server.Connectors.executeRootHandler(Connectors.java:336)
	at io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:255)
	at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:136)
	at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:59)
	at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
	at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
	at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:88)
	at org.xnio.nio.WorkerThread.run(WorkerThread.java:561)

2019-03-20 03:32:00
[ERROR]-[Thread: XNIO-1 I/O-3]-[io.undertow.server.Connectors.executeRootHandler()]: UT005071: Undertow request failed HttpServerExchange{ CONNECT www.youtube.com:443 request {} response {Server=[JFinal]}}
java.lang.IllegalArgumentException: UT000068: Servlet path match failed
	at io.undertow.servlet.handlers.ServletPathMatchesData.getServletHandlerByPath(ServletPathMatchesData.java:83)
	at io.undertow.servlet.handlers.ServletPathMatches.getServletHandlerByPath(ServletPathMatches.java:88)
	at io.undertow.servlet.handlers.ServletInitialHandler.handleRequest(ServletInitialHandler.java:151)
	at io.undertow.server.handlers.HttpContinueReadHandler.handleRequest(HttpContinueReadHandler.java:65)
	at io.undertow.server.handlers.PathHandler.handleRequest(PathHandler.java:94)
	at io.undertow.server.handlers.encoding.EncodingHandler.handleRequest(EncodingHandler.java:66)
	at io.undertow.server.handlers.SetHeaderHandler.handleRequest(SetHeaderHandler.java:90)
	at io.undertow.server.Connectors.executeRootHandler(Connectors.java:336)
	at io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:255)
	at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:136)
	at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:59)
	at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
	at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
	at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:88)
	at org.xnio.nio.WorkerThread.run(WorkerThread.java:561)


评论区

maapple

2020-02-19 09:59

这个问题知道原因了吗?

hhchor

2020-03-03 11:34

这个问题有解不?

王IT

2020-03-05 16:13

@JFinal 我发现大家都是 服务器上有个问题,本地没有,估计是 肉鸡抓的导致的吧

124653847atqq.com

2020-05-22 13:33

我也有类似问题出现。可能和网络中存在扫描工具有关系,参考https://issues.redhat.com/browse/UNDERTOW-592

124653847atqq.com

2020-05-24 09:16

使用nginx做代理,记录下了详细日志:
111.224.235.80 - - [24/May/2020:00:43:58 +0800] "GET http://wujieliulan.com/ HTTP/1.1" 503 190 "-" "python-requests/2.6.0 CPython/2.7.5 Linux/3.10.0-693.11.1.el7.x86_64"
111.224.235.80 - - [24/May/2020:00:43:58 +0800] "CONNECT www.voanews.com:443 HTTP/1.0" 400 150 "-" "-"
111.224.235.80 - - [24/May/2020:00:43:58 +0800] "GET http://www.baidu.com/ HTTP/1.1" 503 190 "-" "python-requests/2.6.0 CPython/2.7.5 Linux/3.10.0-693.11.1.el7.x86_64"
111.224.235.80 - - [24/May/2020:00:43:58 +0800] "GET http://www.minghui.org/ HTTP/1.1" 503 190 "-" "python-requests/2.6.0 CPython/2.7.5 Linux/3.10.0-693.11.1.el7.x86_64"
111.224.235.80 - - [24/May/2020:00:43:58 +0800] "GET http://www.boxun.com/ HTTP/1.1" 503 190 "-" "python-requests/2.6.0 CPython/2.7.5 Linux/3.10.0-693.11.1.el7.x86_64"
111.224.235.80 - - [24/May/2020:00:43:58 +0800] "GET http://wujieliulan.com/ HTTP/1.1" 503 190 "-" "python-requests/2.6.0 CPython/2.7.5 Linux/3.10.0-693.11.1.el7.x86_64"
111.224.235.80 - - [24/May/2020:00:43:58 +0800] "GET http://www.epochtimes.com/ HTTP/1.1" 503 190 "-" "python-requests/2.6.0 CPython/2.7.5 Linux/3.10.0-693.11.1.el7.x86_64"
111.224.235.80 - - [24/May/2020:00:43:58 +0800] "GET http://www.123cha.com/ HTTP/1.1" 503 190 "-" "python-requests/2.6.0 CPython/2.7.5 Linux/3.10.0-693.11.1.el7.x86_64"
111.224.235.80 - - [24/May/2020:00:43:58 +0800] "GET http://www.baidu.com/ HTTP/1.1" 503 190 "-" "python-requests/2.6.0 CPython/2.7.5 Linux/3.10.0-693.11.1.el7.x86_64"
111.224.235.80 - - [24/May/2020:00:43:58 +0800] "GET http://www.123cha.com/ HTTP/1.1" 503 190 "-" "python-requests/2.6.0 CPython/2.7.5 Linux/3.10.0-693.11.1.el7.x86_64"
111.224.235.80 - - [24/May/2020:00:43:58 +0800] "GET http://www.boxun.com/ HTTP/1.1" 503 190 "-" "python-requests/2.6.0 CPython/2.7.5 Linux/3.10.0-693.11.1.el7.x86_64"
111.224.235.80 - - [24/May/2020:00:43:58 +0800] "GET http://www.bing.com/ HTTP/1.1" 503 190 "-" "python-requests/2.6.0 CPython/2.7.5 Linux/3.10.0-693.11.1.el7.x86_64"
111.224.235.80 - - [24/May/2020:00:43:58 +0800] "CONNECT www.voanews.com:443 HTTP/1.0" 400 150 "-" "-"
应该是爬虫之类的程序

JFinal

2020-05-24 21:06

@124653847atqq.com 这个不需要处理,你无法让外网服务不被这类请求骚扰

如果一定要处理,可以配置一下日志,让这类异常不输出到日志

124653847atqq.com

2020-06-02 08:37

@JFinal 是的。后来是做了个自动解析日志的工具,根据特征解析出对应的ip,然后在nginx上自动配置conf进行拦截,直接返回403。这样这类请求到不了后端jfinal-undertow了

JFinal

2020-06-02 08:40

jiren

2020-08-09 22:41

22:02:31.515 [XNIO-1 I/O-1] ERROR io.undertow.request - UT005071: Undertow request failed HttpServerExchange{ GET stager64}
java.lang.IllegalArgumentException: UT000068: Servlet path match failed
at io.undertow.servlet.handlers.ServletPathMatchesData.getServletHandlerByPath(ServletPathMatchesData.java:83) ~[undertow-servlet-2.0.30.Final.jar:2.0.30.Final]
at io.undertow.servlet.handlers.ServletPathMatches.getServletHandlerByPath(ServletPathMatches.java:88) ~[undertow-servlet-2.0.30.Final.jar:2.0.30.Final]
at io.undertow.servlet.handlers.ServletInitialHandler.handleRequest(ServletInitialHandler.java:146) ~[undertow-servlet-2.0.30.Final.jar:2.0.30.Final]
at io.undertow.server.handlers.HttpContinueReadHandler.handleRequest(HttpContinueReadHandler.java:65) ~[undertow-core-2.0.30.Final.jar:2.0.30.Final]
at io.undertow.server.handlers.PathHandler.handleRequest(PathHandler.java:91) ~[undertow-core-2.0.30.Final.jar:2.0.30.Final]
at io.undertow.server.handlers.encoding.EncodingHandler.handleRequest(EncodingHandler.java:66) ~[undertow-core-2.0.30.Final.jar:2.0.30.Final]
at io.undertow.server.handlers.SetHeaderHandler.handleRequest(SetHeaderHandler.java:90) ~[undertow-core-2.0.30.Final.jar:2.0.30.Final]
at io.undertow.server.protocol.http2.Http2UpgradeHandler.handleRequest(Http2UpgradeHandler.java:102) ~[undertow-core-2.0.30.Final.jar:2.0.30.Final]
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:376) [undertow-core-2.0.30.Final.jar:2.0.30.Final]
at io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:255) [undertow-core-2.0.30.Final.jar:2.0.30.Final]
at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:136) [undertow-core-2.0.30.Final.jar:2.0.30.Final]
at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:59) [undertow-core-2.0.30.Final.jar:2.0.30.Final]
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.3.8.Final.jar:3.3.8.Final]
at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) [xnio-api-3.3.8.Final.jar:3.3.8.Final]
at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:88) [xnio-nio-3.3.8.Final.jar:3.3.8.Final]
at org.xnio.nio.WorkerThread.run(WorkerThread.java:561) [xnio-nio-3.3.8.Final.jar:3.3.8.Final]
22:02:31.926 [XNIO-1 I/O-2] ERROR io.undertow.request - UT005071: Undertow request failed HttpServerExchange{ GET stager}
java.lang.IllegalArgumentException: UT000068: Servlet path match failed
at io.undertow.servlet.handlers.ServletPathMatchesData.getServletHandlerByPath(ServletPathMatchesData.java:83) ~[undertow-servlet-2.0.30.Final.jar:2.0.30.Final]
at io.undertow.servlet.handlers.ServletPathMatches.getServletHandlerByPath(ServletPathMatches.java:88) ~[undertow-servlet-2.0.30.Final.jar:2.0.30.Final]
at io.undertow.servlet.handlers.ServletInitialHandler.handleRequest(ServletInitialHandler.java:146) ~[undertow-servlet-2.0.30.Final.jar:2.0.30.Final]
at io.undertow.server.handlers.HttpContinueReadHandler.handleRequest(HttpContinueReadHandler.java:65) ~[undertow-core-2.0.30.Final.jar:2.0.30.Final]
at io.undertow.server.handlers.PathHandler.handleRequest(PathHandler.java:91) ~[undertow-core-2.0.30.Final.jar:2.0.30.Final]
at io.undertow.server.handlers.encoding.EncodingHandler.handleRequest(EncodingHandler.java:66) ~[undertow-core-2.0.30.Final.jar:2.0.30.Final]
at io.undertow.server.handlers.SetHeaderHandler.handleRequest(SetHeaderHandler.java:90) ~[undertow-core-2.0.30.Final.jar:2.0.30.Final]
at io.undertow.server.protocol.http2.Http2UpgradeHandler.handleRequest(Http2UpgradeHandler.java:102) ~[undertow-core-2.0.30.Final.jar:2.0.30.Final]
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:376) [undertow-core-2.0.30.Final.jar:2.0.30.Final]
at io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:255) [undertow-core-2.0.30.Final.jar:2.0.30.Final]
at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:136) [undertow-core-2.0.30.Final.jar:2.0.30.Final]
at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:59) [undertow-core-2.0.30.Final.jar:2.0.30.Final]
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.3.8.Final.jar:3.3.8.Final]
at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) [xnio-api-3.3.8.Final.jar:3.3.8.Final]
at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:88) [xnio-nio-3.3.8.Final.jar:3.3.8.Final]
at org.xnio.nio.WorkerThread.run(WorkerThread.java:561) [xnio-nio-3.3.8.Final.jar:3.3.8.Final]

iadmireu

2020-09-21 08:26

这个问题很普遍:
2020-09-20 23:04:46
[ERROR]-[Thread: XNIO-9 I/O-2]-[io.undertow.server.Connectors.executeRootHandler()]: UT005071: Undertow request failed HttpServerExchange{ CONNECT www.voanews.com:443}
java.lang.IllegalArgumentException: UT000068: Servlet path match failed
at io.undertow.servlet.handlers.ServletPathMatchesData.getServletHandlerByPath(ServletPathMatchesData.java:83)

laoyezi

2022-08-04 10:05

有好多人,都碰到这样的错误,代码里没有访问www.voanews.com, 却出现访问此网站的错误

JFinal

2023-03-20 01:07

有位同学给了一个简单方案,配置日志将其关闭即可:
<Logger name="io.undertow.server.Connectors" level="OFF"></Logger>

热门反馈

扫码入社