[jboss-user] [Remoting] - Re: Encounting
lanceliao
do-not-reply at jboss.com
Tue Apr 29 05:33:03 EDT 2008
After the above error, we tried another several times. and we got the following.
1. we tried client side again on another PC, and it gave the following exception:
4360 [main] ERROR org.jboss.remoting.transport.socket.MicroSocketClientInvoker - Error setting up S
ocketClientInvoker[b61fd1, socket://omc:4446]
java.net.UnknownHostException: omc: omc
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getByName(Unknown Source)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.setup(MicroSocketClientInvok
er.java:382)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.(MicroSocketClientInvo
ker.java:245)
at org.jboss.remoting.transport.socket.SocketClientInvoker.(SocketClientInvoker.java:7
2)
at org.jboss.remoting.transport.socket.TransportClientFactory.createClientInvoker(TransportC
lientFactory.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.remoting.InvokerRegistry.loadClientInvoker(InvokerRegistry.java:419)
at org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:320)
at org.jboss.remoting.Client.connect(Client.java:459)
at org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.init(UnifiedInvokerProxy.java
:97)
at org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.readExternal(UnifiedInvokerPr
oxy.java:251)
at java.io.ObjectInputStream.readExternalData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.util.HashMap.readObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at org.jboss.proxy.ClientContainer.readExternal(ClientContainer.java:157)
at java.io.ObjectInputStream.readExternalData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.rmi.MarshalledObject.get(Unknown Source)
at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:710)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.datangmobile.oss.platform.jndiresource.client.EJBHomeFactory.lookup(EJBHomeFactory.ja
va:70)
at com.datangmobile.oss.platform.clientmonitor.client.ClientMonitorImp_J2EE.login(ClientMoni
torImp_J2EE.java:43)
at com.datangmobile.oss.omc.omt.appstart.OmtStart.initRouter(OmtStart.java:511)
at com.datangmobile.oss.omc.omt.appstart.OmtStart.main(OmtStart.java:145)
4453 [main] FATAL org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy - Could not initializ
e UnifiedInvokerProxy.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.remoting.InvokerRegistry.loadClientInvoker(InvokerRegistry.java:419)
at org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:320)
at org.jboss.remoting.Client.connect(Client.java:459)
at org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.init(UnifiedInvokerProxy.java
:97)
at org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.readExternal(UnifiedInvokerPr
oxy.java:251)
at java.io.ObjectInputStream.readExternalData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.util.HashMap.readObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at org.jboss.proxy.ClientContainer.readExternal(ClientContainer.java:157)
at java.io.ObjectInputStream.readExternalData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.rmi.MarshalledObject.get(Unknown Source)
at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:710)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.datangmobile.oss.platform.jndiresource.client.EJBHomeFactory.lookup(EJBHomeFactory.ja
va:70)
at com.datangmobile.oss.platform.clientmonitor.client.ClientMonitorImp_J2EE.login(ClientMoni
torImp_J2EE.java:43)
at com.datangmobile.oss.omc.omt.appstart.OmtStart.initRouter(OmtStart.java:511)
at com.datangmobile.oss.omc.omt.appstart.OmtStart.main(OmtStart.java:145)
Caused by: java.lang.RuntimeException: omc: omc
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.(MicroSocketClientInvo
ker.java:250)
at org.jboss.remoting.transport.socket.SocketClientInvoker.(SocketClientInvoker.java:7
2)
at org.jboss.remoting.transport.socket.TransportClientFactory.createClientInvoker(TransportC
lientFactory.java:39)
... 45 more
4563 [Finalizer] DEBUG org.jboss.remoting.transport.socket.MicroSocketClientInvoker - SocketClientI
nvoker[b61fd1, socket://omc:4446] disconnecting ...
4578 [Finalizer] DEBUG org.jboss.remoting.transport.socket.MicroSocketClientInvoker - SocketClientI
nvoker[b61fd1, socket://omc:4446] disconnecting ...
4594 [main] DEBUG org.jboss.security.SecurityAssociation - Using ThreadLocal: false
4610 [main] ERROR com.datangmobile.oss.platform.clientmonitor.client.ClientMonitorImp_J2EE - Client
info registry fails
java.lang.reflect.UndeclaredThrowableException
at $Proxy0.create(Unknown Source)
at com.datangmobile.oss.platform.clientmonitor.client.ClientMonitorImp_J2EE.login(ClientMoni
torImp_J2EE.java:45)
at com.datangmobile.oss.omc.omt.appstart.OmtStart.initRouter(OmtStart.java:511)
at com.datangmobile.oss.omc.omt.appstart.OmtStart.main(OmtStart.java:145)
Caused by: java.lang.Exception: Can not make remoting client invocation due to not being connected t
o server.
at org.jboss.remoting.Client.invoke(Client.java:1639)
at org.jboss.remoting.Client.invoke(Client.java:548)
at org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.invoke(UnifiedInvokerProxy.ja
va:183)
at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
... 4 more
com.datangmobile.oss.platform.clientmonitor.common.ClientMonitorException: java.lang.reflect.Undecla
redThrowableException
at com.datangmobile.oss.platform.clientmonitor.client.ClientMonitorImp_J2EE.login(ClientMoni
torImp_J2EE.java:51)
at com.datangmobile.oss.omc.omt.appstart.OmtStart.initRouter(OmtStart.java:511)
at com.datangmobile.oss.omc.omt.appstart.OmtStart.main(OmtStart.java:145)
Caused by: java.lang.reflect.UndeclaredThrowableException
at $Proxy0.create(Unknown Source)
at com.datangmobile.oss.platform.clientmonitor.client.ClientMonitorImp_J2EE.login(ClientMoni
torImp_J2EE.java:45)
... 2 more
Caused by: java.lang.Exception: Can not make remoting client invocation due to not being connected t
o server.
at org.jboss.remoting.Client.invoke(Client.java:1639)
at org.jboss.remoting.Client.invoke(Client.java:548)
at org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.invoke(UnifiedInvokerProxy.ja
va:183)
at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
... 4 more
2. If the client side and the Jboss are on the same machine(SunOS sparc), everything is OK. the above error no longer exists.
So, we thought it's something related to ip address that caused the above error. If is ,how to avoid it? What common line should we use to start the jboss?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147460#4147460
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147460
More information about the jboss-user
mailing list