Re: UnknownHost Exception
Julian Simpson <[email protected]> Mon, 24 Oct 2011 21:25:51 +0100
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <CANwBkz-MAimbcLr6qCas8pBd=bVt08aQnjJDafn=ECDzUBbtzw@mail.gmail.com> |
Something is broken in the name resolution on the machine. My guess is that reverse name lookup is broken. Try resolving IP addresses to names. J. On 24 October 2011 21:08, Jitesh Sinha <[email protected]> wrote: > if I edit index.jsp to hardcode hostname,then same error starts coming > somewhere else.Here is the new exception stack trace - > > [cc]Oct-24 12:51:14 ameInterceptor- No IP bound to the host > java.net.UnknownHostException: -a: -a > at java.net.InetAddress.getLocalHost(InetAddress.java:1315) > at > net.sourceforge.cruisecontrol.dashboard.web.ServerNameInterceptor.postHandle(ServerNameInterceptor.java:61) > > at > org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:863) > > at > org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792) > > at > org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:461) > > at > org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:416) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:596) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > at > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427) > at > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:475) > > at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:556) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1563) > at > org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:623) > > at org.mortbay.http.HttpContext.handle(HttpContext.java:1515) > at org.mortbay.http.HttpServer.service(HttpServer.java:956) > at org.mortbay.http.HttpConnection.service(HttpConnection.java:814) > > at > org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981) > at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831) > at > org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) > at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) > [cc]Oct-24 12:51:19 ameInterceptor- No IP bound to the host > java.net.UnknownHostException: -a: -a > at java.net.InetAddress.getLocalHost(InetAddress.java:1315) > at > net.sourceforge.cruisecontrol.dashboard.web.ServerNameInterceptor.postHandle(ServerNameInterceptor.java:61) > > at > org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:863) > > at > org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792) > > at > org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:461) > > at > org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:416) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:596) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > at > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427) > at > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:475) > > at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:556) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1563) > at > org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:623) > > at org.mortbay.http.HttpContext.handle(HttpContext.java:1515) > at org.mortbay.http.HttpServer.service(HttpServer.java:956) > at org.mortbay.http.HttpConnection.service(HttpConnection.java:814) > > at > org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981) > at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831) > at > org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) > at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) > [cc]Oct-24 12:51:22 ameInterceptor- No IP bound to the host > > ------------------------------ > *From:* Jitesh Sinha <[email protected]> > *To:* "[email protected]" < > [email protected]> > *Sent:* Monday, October 24, 2011 1:07 PM > *Subject:* UnknownHost Exception > > I am getting following error on Solaris OS. > > -a: -a > > java.net.UnknownHostException: -a: -a > at java.net <http://java.net.InetAddress.ge>.InetAddress.getLocalHost(InetAddress.java:1315) > > at org.apache.jsp.index_jsp._jspService(index_jsp.java:178) > at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > at > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) > > at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) > > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427) > at > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:475) > > at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:275) > at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:169) > at org.mortbay.jetty.servlet.Default.handleGet(Default.java:312) > at org.mortbay.jetty.servlet.Default.service(Default.java:232) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427) > at > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:475) > > at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:556) > > at org.mortbay.http.HttpContext.handle(HttpContext.java:1563) > at > org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:623) > > at org.mortbay.http.HttpContext.handle(HttpContext.java:1515) > at org.mortbay.http.HttpServer.service(HttpServer.java:956) > at org.mortbay.http.HttpConnection.service(HttpConnection.java:814) > at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981) > at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831) > at > org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) > at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) > > > The line that it is pointing to is > String hostname = InetAddress.getLocalHost().getHostName(); > > I have checked /etc/hosts and /etc/nsswitch.conf files - they seem to be > ok. > > When I do getent hosts localhost - it returns correct IP address. > > Going by the directory name,version seems to be 2.7 > > It used to work fine earlier - it stopped working since last few months.Can > someone point something? > > > > > > > ------------------------------------------------------------------------------ > The demand for IT networking professionals continues to grow, and the > demand for specialized networking skills is growing even more rapidly. > Take a complimentary Learning@Cisco Self-Assessment and learn > about Cisco certifications, training, and career opportunities. > http://p.sf.net/sfu/cisco-dev2dev > _______________________________________________ > Cruisecontrol-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user > > -- Julian Simpson The Build Doctor Ltd. http://www.build-doctor.com [email protected] (+44) 207 183 0323 ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Cruisecontrol-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user