【问题排查】Servlet path match failed

本文详细描述了一次服务器因外部爬虫通过开放端口访问ClickHouse引发的异常,包括错误代码UT005071和UT000068,以及解决过程,包括找出问题根源和提出的应对措施,如限制访问端口或关闭对外端口。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

2022-06-09 01:18:24.814 30882 ERROR [] --- [XNIO-1 I/O-6] io.undertow.request                      : UT005071: Undertow request failed HttpServerExchange{ CONNECT url:port}

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:146)
        at io.undertow.server.handlers.HttpContinueReadHandler.handleRequest(HttpContinueReadHandler.java:83)
        at io.undertow.server.Connectors.executeRootHandler(Connectors.java:376)
        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)

最近服务器突然爆一堆异常

UT005071: Undertow request failed HttpServerExchange{ CONNECT www.voanews.com:443}

UT000068: Servlet path match failed

CONNECT 后面跟着域名或者端口号

查了一下网上,基本都是只有提问,没人回答

后面经过一系列链路排查,最终发现,因为隔壁研发组无法连接clickhouse,所以通过我们的服务提供的接口访问ck,然后就把我们服务的端口对外开放了

导致服务一直被各大搜索引擎的爬虫检索

收集了一下地址列表

hotmail-com.olc.protection.outlook.com: 25

85.206.160.115:80

ip.bablosoft.com:443

api.ipify.org:443

www.baidu.com:443

cn.bing.com:443

www.so.com:443

www.voanews.com:443

check.best-proxies.ru:443

解决办法:

将对外端口关闭, 或者限制访问端口的ip

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值