简体   繁体   English

引起原因:java.net.MalformedURLException:无协议:/jsp/error.jsp

[英]Caused by: java.net.MalformedURLException: no protocol: /jsp/error.jsp

I am getting an java.net.MalformedURLException: no protocol: /jsp/error.jsp, I have already seen lots of questions related to this, none of that helped me. 我正在获取java.net.MalformedURLException:无协议:/jsp/error.jsp,我已经看到很多与此相关的问题,但没有一个对我有帮助。

Here is my full stack trace 这是我的完整堆栈跟踪

Caused by: java.net.MalformedURLException: no protocol: /jsp/error.jsp
    at oracle.xml.xslt.XSLStylesheet.flushErrors(XSLStylesheet.java:2248)
    at oracle.xml.xslt.XSLStylesheet.execute(XSLStylesheet.java:628)
    at oracle.xml.xslt.XSLProcessor.processXSL(XSLProcessor.java:364)
    at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:504)

Please help me. 请帮我。

You are missing a protocol ( http:// ) and a domain ( www.google.com ) in your URL. 您的http://中缺少协议( http:// )和域( www.google.com )。

This is a valid URL : https://www.google.com/example.html 这是有效的网址https://www.google.com/example.html : https://www.google.com/example.html

You need to give a valid URL, otherwise you will keep getting a MalformedURLException . 您需要提供一个有效的URL,否则您将继续获取MalformedURLException

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM