日期:2014-05-18  浏览次数:20888 次

从服务器上下载Excel文件时出错
我在做从服务器上下载excel文件时,在本机上测试成功,但在其他机子上访问是出现一下错误,
java.net.ConnectException:   Connection   refused:   connect
java.net.PlainSocketImpl.socketConnect(Native   Method)
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
java.net.Socket.connect(Socket.java:516)
java.net.Socket.connect(Socket.java:466)
sun.net.NetworkClient.doConnect(NetworkClient.java:157)
sun.net.www.http.HttpClient.openServer(HttpClient.java:369)
sun.net.www.http.HttpClient.openServer(HttpClient.java:481)
sun.net.www.http.HttpClient. <init> (HttpClient.java:214)
sun.net.www.http.HttpClient.New(HttpClient.java:287)
sun.net.www.http.HttpClient.New(HttpClient.java:299)
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:789)
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:730)
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:655)
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:960)
java.net.URL.openStream(URL.java:1009)
org.apache.jsp.pldrsj.downtemplatefile_jsp._jspService(downtemplatefile_jsp.java:65)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
web.filter.UrlFilter.doFilter(UrlFilter.java:62)
filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:170)

那位能帮帮我看是什么错误

------解决方案--------------------
问题已解决