gpt4 book ai didi

java - 处理请求时发生异常 : java.net.URISyntaxException:绝对 URI 中的相对路径

转载 作者:太空宇宙 更新时间:2023-11-04 11:30:54 26 4
gpt4 key购买 nike

刚刚检查了我开发的系统的WildFly日志,发现了以下错误:

2017-05-03 08:48:08,575 ERROR [io.undertow.request] (default task-4) UT005001: An exception occurred processing the request: java.net.URISyntaxException: Relative path in absolute URI: https://www.google.com:443http://www.google.com/
at java.net.URI.checkPath(URI.java:1823)
at java.net.URI.<init>(URI.java:672)
at io.undertow.security.handlers.SinglePortConfidentialityHandler.getRedirectURI(SinglePortConfidentialityHandler.java:51)
at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.getRedirectURI(ServletConfidentialityConstraintHandler.java:83)
at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:49)
at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56)
at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)
at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

除了 https://www.google.com:443http://www.google.com/ 还有 https://testp3.pospr.waw.pl:443http://testp3.pospr.waw.pl/testproxy.php https://www.baidu.com:443http://www.baidu.com/cache/global/img/gs.gif

有人知道可能是什么问题吗?

编辑:在此日志发生几个小时后,出现了 java.lang.OutOfMemoryError: Java heap space 并且系统崩溃了,需要重新启动 WildFly 才能再次启动系统。我无法确定崩溃是否与此错误有关。

最佳答案

我的猜测是有人正在向您发送以下形式的 URL:

http://yoursite.com/https://www.google.com:443http://www.google.com/

尝试从浏览器发送该 URL,看看是否收到类似的错误。

关于java - 处理请求时发生异常 : java.net.URISyntaxException:绝对 URI 中的相对路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43810628/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com