3 Replies Latest reply on Apr 30, 2008 3:42 AM by lanceliao

    Encounting "Can not make remoting client invocation due to n

      In my project, we are using JBoss4.2.2.GA,JBM1.4.SP3,jboss-remoting2.2.2.sp1. Recently we are changing jboss-remoting2.2.2.sp1 to jboss-remoting2.2.2.sp7 because of a problem.
      But when both Client and Server was replaced with remoting2.2.2.sp7, An error appeared on the Client side, like this:


      java.lang.reflect.UndeclaredThrowableException
      at $Proxy1.create(Unknown Source)
      at com.datangmobile.oss.omc.common.server.sec.proxy.SecurityProxy.getLogin(SecurityProxy.java:120)
      at com.datangmobile.oss.omc.omt.appstart.login.UserLoginDialog.userLogin(UserLoginDialog.java:386)
      at com.datangmobile.oss.omc.omt.appstart.login.UserLoginDialog.access$300(UserLoginDialog.java:92)
      at com.datangmobile.oss.omc.omt.appstart.login.UserLoginDialog$2.run(UserLoginDialog.java:319)
      Caused by: java.lang.Exception: Can not make remoting client invocation due to not being connected to 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.java: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)
      ... 5 more


      see the part "Caused by".

      It's strange, everything is OK when using jboss-remoting2.2.2.sp1.
      We had no idea about what was wrong. Is there any other steps that neede to do when changing from sp1 to sp7?
      Please Help me!

      Thanks!

        • 1. Re: Encounting

          more information may be helpful to you!

          We are using the following command to start the jboss:
          sh run.sh -b 172.30.2.180 -Djboss.bind.address=0.0.0.0
          (172.30.2.180 is the machine ip which jboss is on)

          • 2. Re: Encounting

            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?

            • 3. Re: Encounting

              It's not the jboss-remoting.jar itself, but the command line to start jboss that caused the above problem. Problem was resolved by adding -Dremoting.bind_by_host=false, like this:

              sh run.sh -b 172.30.2.180 -Djboss.bind.address=0.0.0.0 -Dremoting.bind_by_host=false.