當我使用「\」作爲URI路徑定界符,我得到Tomcat中8.5.15.Below一個IllegalArgumentException的錯誤消息: -Tomcat.8.5.15不接受在URI「」和投擲拋出:IllegalArgumentException
org.apache.coyote.http11.Http11Processor.service解析HTTP請求標頭時出錯 注意:在DEBUG級別會記錄進一步的HTTP標頭解析錯誤。 java.lang.IllegalArgumentException:在請求目標中找到無效的字符。有效字符在org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:472) (位於org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:683))的RFC 7230和RFC 3986 中定義) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol $ ConnectionHandler.process(AbstractProtocol.java:861) at org.apache.tomcat.util.net .NioEndpoint $ SocketProcessor.doRun(NioEndpoint.java:1455) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor $ Worker.run(Unknown Source) a牛逼org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run(TaskThread.java:61) 在java.lang.Thread.run(來源不明)
繞過這個問題,我試圖添加 org.apache.catalina.connector。 CoyoteAdapter.ALLOW_BACKSLASH = true 在catalina.properties中,我仍然無法解決問題。
0
A
回答
0
\被用作許多編程語言(包括Java)中的轉義序列。
將每個「\」替換爲雙反斜槓或者您可以使用「/」。
-2
我可以建議你降級Tomcat版本到8.5.6。
0
要解決此問題,您可以設置requestTargetAllow
選項。只需取消註釋文件中的最後一行。
$CATALINA_HOME/conf/catalina.properties
相關問題
- 1. 關於投擲拋出:IllegalArgumentException
- 2. 玩! MorphiaPlugin投擲拋出:IllegalArgumentException在CRUD
- 3. 拋出:IllegalArgumentException在Java中URI
- 4. 的java TreeSet中投擲拋出:IllegalArgumentException:鍵超出範圍
- 5. h:commandButton點擊投擲IllegalArgumentException
- 6. jQuery的投擲的接受鏈接
- 7. Hibernate和拋出:IllegalArgumentException
- 8. Uri投擲優步意向
- 9. 拋出:IllegalArgumentException上傳war文件到tomcat
- 10. 接通枚舉拋出:IllegalArgumentException -
- 11. 拋出:IllegalArgumentException在Bitmap.getPixels()
- 12. 拋出:IllegalArgumentException在ActivityManagerProxy
- 13. jQuery的可拖動和投擲的接受和回覆問題
- 14. 拋出:IllegalArgumentException JSON
- 15. ImageIO.read()拋出IllegalArgumentException
- 16. 拋出:IllegalArgumentException
- 17. Collections.sort拋出:IllegalArgumentException -
- 18. 拋出:IllegalArgumentException readExceptionFromParcel
- 19. 的拋出:IllegalArgumentException
- 20. Java.lang.Class.newInstance()拋出:IllegalArgumentException -
- 21. interestOps拋出IllegalArgumentException
- 22. Field.set拋出IllegalArgumentException
- 23. NotificationManager.notify拋出:IllegalArgumentException -
- 24. web.xml中的Log4j2.xml配置。拋出:IllegalArgumentException - URI不是絕對
- 25. 拋出:IllegalArgumentException在URLPermission在jre8
- 26. 撒克遜處理器不接受此語句(投擲誤差)
- 27. FileServiceFactory getBlobKey拋出IllegalArgumentException
- 28. 拋出:IllegalArgumentException反映
- 29. 拋出:IllegalArgumentException錯誤
- 30. 無法拋出IllegalArgumentException