I am facing a broblem that has frustrated me. Can anybody Please Help? The servlet is simply a HTML page getter which connects to web server and downloads the page specified at the end of url then it sends the contents to the user(browser).
The servlet uses java.net package for getting the page. ( create url then open stream... ) This servlet is being used as a proxy for geting html page of a site in a frame ( so it can be manupulated by javascript from the other frmae) http://mysite.com/zaidresearch/servlet/http_proxy/http://site_needed.com/pat h/file The problem is that this servlet works for a few sites google.com, yahoo.com .... but not for others ( ironically our own site ). On others It trows: UnknowHostException When we use the ip address it works for all sites. but not with the domain name. ( basically it is built to work with domains ) Why it is unable to find the ip address of a few sites while it can find for others? As a work around we moved our own site ( for which it was not working ) to the same machine on which this servlet resides ... but this also isn;t working. What is most surprising is that the servlet was running a few days ago ... properly with all the sites we tested it with. Including those for which it is causing problems. Whats this? The error thrown by Jrun suggests DNS related problem. 500 Internal Server Error /zaidresearch/servlet/http_proxy/http://zaidresearch.com/: zaidresearch.com java.net.UnknownHostException: zaidresearch.com at java.net.InetAddress.getAllByName0(Unknown Source) at java.lang.Exception.(Unknown Source) at java.io.IOException.(Unknown Source) at java.net.UnknownHostException.(Unknown Source) at java.net.InetAddress.getAllByName0(Unknown Source) at java.net.InetAddress.getAllByName0(Unknown Source) at java.net.InetAddress.getByName(Unknown Source) at java.net.Socket.(Unknown Source) at sun.net.NetworkClient.doConnect(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.(Unknown Source) at sun.net.www.http.HttpClient.(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at com.myzaid.portal.wip.HttpProxyServlet.doGet(HttpProxyServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code) at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled Code) at allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java, Compiled Code) at allaire.jrun.servlet.Invoker.service(Invoker.java, Compiled Code) at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code) at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled Code) at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav a, Compiled Code) at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code) at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java, Compiled Code) at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java, Compiled Code) at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled Code) at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code) Urgent help is needed. Pl get back in case u need any more info. sincerely S Zaid Quadri ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
