[jboss-user] [JNDI/Naming/Network] - Re: READ THIS FIRST
ps.jagadeesh
do-not-reply at jboss.com
Thu Feb 8 06:52:27 EST 2007
Hi,
Sorry! I think the qiestion I posted is not conveying the exact senario and problem. When I try to contact the application , I am getting exceeption from the following line
properties.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
properties.put(Context.URL_PKG_PREFIXES, "org.jnp.interfaces");
// properties.put(Context.PROVIDER_URL, "203.200.142.140");
properties.put(Context.PROVIDER_URL,"jnp://"+KLNetcenterData.SERVER_IP+":1099");
InitialContext ctx = new InitialContext(properties);
log.info("Looking up Topic....");
queue = (Topic) ctx.lookup("topic/testDurableTopic");
which means , when I call contect.lookup I am getting the exception as follows.
javax.naming.CommunicationException. Root exception is java.rmi.ConnectException: Connection refused to host: 192.168.1.2; nested exception is:
java.net.ConnectException: Connection timed out: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:606)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:568)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at com.klc.klnetcenter.jms.SendClient.(SendClient.java:40)
at com.klc.klnetcenter.KLNetcenterData.(KLNetcenterData.java:42)
at com.klc.klnetcenter.KLNetcenterData.getInstance(KLNetcenterData.java:53)
at com.klc.klnetcenter.KLNetcenterFrame.(KLNetcenterFrame.java:101)
at com.klc.klnetcenter.KLNetcenterFrame.getInstance(KLNetcenterFrame.java:183)
at com.klc.klnetcenter.KLNetcenter.(KLNetcenter.java:24)
at com.klc.klnetcenter.KLNetcenter.main(KLNetcenter.java:35)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.(Socket.java:291)
at java.net.Socket.(Socket.java:119)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562)
... 14 more
Just becouse of this reason I posted problem here..
please help me
Thanks
Jagadeesh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012984#4012984
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012984
More information about the jboss-user
mailing list