java.io.IOException: Server returned HTTP response code: 505 for URL解决办法

| 阅读数:--次| 作者:小周
摘要:java.io.IOException: Server returned HTTP response code: 505 for URL解决办法
java.io.IOException: Server returned HTTP response code: 505 for URL: http://127.0.0.1:8080/web/teach/item.jsp?pub=1&index=129&id=XNzE1MzExMTQ0&title= html5、css3在移动互联网中的开发
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313)
        at com.webkfa.util.HttpUtil.saveToFileSafe(HttpUtil.java:63)
        at org.apache.jsp.autojsp.autopubteach_jsp._jspService(autopubteach_jsp.java:119)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

        at java.lang.Thread.run(Thread.java:619)

解决办法:

http://127.0.0.1:8080/web/teach/item.jsp?pub=1&index=129&id=XNzE1MzExMTQ0&title= html5、css3在移动互联网中的开发

中文传参问题,把"title=html5、css3在移动互联网中的开发"encode就解决了

返回顶部
学到老代码浏览 关闭浏览