  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | - NoRouteToHostException on local lookup | - NoRouteToHostException on local lookup 2007-07-11 - By kanth_seenu
Back I have read and understood that if I specify kind="physical" in my tag in build script, even my local lookup's will use JNDI.
I found some exceptions in my server log, when it was trying to do some local lookups and when my server had actually lost its network connectivity(I unplugged the cable myself). I got the below exception
javax.naming.CommunicationException [Root exception is java.rmi .ConnectIOException: Exception creating connection to: 192.168.27.126; nested exception is: java.net.NoRouteToHostException : No route to host: connect] ERROR [STDERR] at org.jnp.interfaces.NamingContext (NamingContext .java:722) ERROR [STDERR] at org.jnp.interfaces.NamingContext (NamingContext .java:587) ERROR [STDERR] at javax.naming.InitialContext (InitialContext.java :351) ERROR [STDERR] at com.common.license.interfaces.LicenseVerifierUtil .lookupHome(LicenseVerifierUtil.java:20) ERROR [STDERR] at java.lang.Thread (Thread.java:595) ERROR [STDERR] Caused by: java.rmi.ConnectIOException : Exception creating connection to: 192.168.27.126; nested exception is: java.net.NoRouteToHostException : No route to host: connect ERROR [STDERR] at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint .java:587) ERROR [STDERR] at sun.rmi.transport.tcp.TCPChannel.createConnection (TCPChannel.java:185) ERROR [STDERR] at sun.rmi.transport.tcp.TCPChannel.newConnection (TCPChannel.java:171) ERROR [STDERR] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94) ERROR [STDERR] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) ERROR [STDERR] at org.jnp.interfaces.NamingContext (NamingContext .java:625) ERROR [STDERR] ... 6 more ERROR [STDERR] Caused by: java.net.NoRouteToHostException : No route to host: connect ERROR [STDERR] at java.net.PlainSocketImpl (Native Method) ERROR [STDERR] at java.net.PlainSocketImpl (PlainSocketImpl.java :333) ERROR [STDERR] at java.net.PlainSocketImpl  (PlainSocketImpl.java:195) ERROR [STDERR] at java.net.PlainSocketImpl (PlainSocketImpl.java :182) ERROR [STDERR] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java :366) ERROR [STDERR] at java.net.Socket (Socket.java:519) ERROR [STDERR] at java.net.Socket (Socket.java:469) ERROR [STDERR] at java.net.Socket (Socket.java:366) ERROR [STDERR] at java.net.Socket (Socket.java:179) ERROR [STDERR] at sun.rmi.transport.proxy.RMIDirectSocketFactory .createSocket(RMIDirectSocketFactory.java:22) ERROR [STDERR] at sun.rmi.transport.proxy.RMIMasterSocketFactory .createSocket(RMIMasterSocketFactory.java:128) ERROR [STDERR] at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint .java:569)
192.168.27.126 is my machine ip
Can anyone please help me to understand how to do a safe lookup even when the server has lost its network connectivity. I read about component based lookups and ended with naming exceptions....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic &p=4063014#4063014
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode =reply&p=4063014 __ ____ ____ ____ ____ ____ ____ ____ ____ ____ jboss-user mailing list jboss-user@(protected) https://lists.jboss.org/mailman/listinfo/jboss-user
|
|
 |