[jboss-user] [Beginners Corner] - Re: hostname

mithilwane do-not-reply at jboss.com
Wed Dec 26 00:21:44 EST 2007


JBoss version is 4.2.2 and jdk is 1.5.0_14

my hosts file has two entries

127.0.0.1 localhost
192.168.0.230 linuxserver myserver.server.com


jndi props looks like this

java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=jnp://myserver.server.com:1099

i get this exception in my client

Running default port
D:\WorkCVS\EMS
Exception:javax.naming.CommunicationException [Root exception is java.rmi.UnknownHostException: Unknown host: myserver.server.com; nested exception is: 
	java.net.UnknownHostException: myserver.server.com]
javax.naming.CommunicationException [Root exception is java.rmi.UnknownHostException: Unknown host: myserver.server.com; nested exception is: 
	java.net.UnknownHostException: myserver.server.com]
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:780)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
	at javax.naming.InitialContext.lookup(InitialContext.java:351)
	at com.alphion.fm.client.FaultManageClient.init(FaultManageClient.java:48)
	at com.lopsys.nms.client.fault.FaultManagerGUIClient.init(FaultManagerGUIClient.java:54)
	at com.alphion.main.MainFrame.(MainFrame.java:111)
	at com.alphion.main.MainFrame.main(MainFrame.java:571)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at com.alphion.main.EMSSplash.main(EMSSplash.java:57)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at com.alphion.main.WelcomeFrame.main(WelcomeFrame.java:167)
Caused by: java.rmi.UnknownHostException: Unknown host: myserver.server.com; nested exception is: 
	java.net.UnknownHostException: myserver.server.com
	at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:572)
	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:94)
	at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
	... 16 more
Caused by: java.net.UnknownHostException: myserver.server.com
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:520)
	at java.net.Socket.connect(Socket.java:470)
	at java.net.Socket.(Socket.java:367)
	at java.net.Socket.(Socket.java:180)
	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:569)
	... 21 more
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at com.alphion.main.EMSSplash.main(EMSSplash.java:57)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at com.alphion.main.WelcomeFrame.main(WelcomeFrame.java:167)
Caused by: java.lang.NullPointerException
	at com.alphion.fm.client.FaultManageClient.addAlpClientEventListener(FaultManageClient.java:75)
	at com.lopsys.nms.client.fault.FaultManagerGUIClient.init(FaultManagerGUIClient.java:55)
	at com.alphion.main.MainFrame.(MainFrame.java:111)
	at com.alphion.main.MainFrame.main(MainFrame.java:571)
	... 10 more


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115437#4115437

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115437



More information about the jboss-user mailing list