You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by Cristian Retegan <cr...@nl.swets.com> on 2005/08/24 10:18:54 UTC

remote server startup error: "java.rmi.NoSuchObjectException: no such object in table"

Hello,

 

I start the primary cache server and the failover server on different
computers with the IPs: 192.168.101.160 (primary cache server) and
192.168.101.161 (failover cache server).

 

On start up I get the following error:

 

 

remote.cacheRS1.ccf  1101  (primary cache server)

 

2005-08-23 17:00:53,730 [main] DEBUG
org.apache.jcs.auxiliary.remote.RemoteCacheNoWaitFacade - CONSTRUCTING NO
WAIT FACADE
2005-08-23 17:00:53,731 [main] DEBUG
org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory - main>
binding server to 192.168.101.160:1101 with the name
org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheService
Exception in thread "main" java.rmi.NoSuchObjectException: no such object in
table
        at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:264)
        at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:240)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:366)
        at
sun.rmi.registry.RegistryImpl_Stub.rebind(RegistryImpl_Stub.java:133)
        at java.rmi.Naming.rebind(Naming.java:172)
        at
org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory.startup(Remo
teCacheServerFactory.java:126)
        at
org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory.main(RemoteC
acheServerFactory.java:287)

 

remote.cacheRS2.ccf 1102 (failover cache server)

 

2005-08-23 16:59:04,175 [main] DEBUG
org.apache.jcs.auxiliary.remote.RemoteCacheNoWaitFacade - CONSTRUCTING NO
WAIT FACADE
2005-08-23 16:59:04,176 [main] DEBUG
org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory - main>
binding server to 192.168.101.161:1102 with the name
org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheService
Exception in thread "main" java.rmi.NoSuchObjectException: no such object in
table
        at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:264)
        at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:240)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:366)
        at
sun.rmi.registry.RegistryImpl_Stub.rebind(RegistryImpl_Stub.java:133)
        at java.rmi.Naming.rebind(Naming.java:172)
        at
org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory.startup(Remo
teCacheServerFactory.java:126)
        at
org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory.main(RemoteC
acheServerFactory.java:287)

 

 

config for remote.cacheRS1.ccf  (used on 192.168.101.160)

 

##############################################################
################## REMOTE SERVER CONFIG  RS1 #################
# Registry used to register and provide the IRmiCacheService service.
registry.host=192.168.101.160
registry.port=1101
# call back port to local caches.
remote.cache.service.port=1101
# cluster setting
remote.cluster.LocalClusterConsistency=true

 

# RS2 SERVER to update for clustering
jcs.auxiliary.RCluster=org.apache.jcs.auxiliary.remote.RemoteCacheFactory
jcs.auxiliary.RCluster.attributes=org.apache.jcs.auxiliary.remote.RemoteCach
eAttributes
jcs.auxiliary.RCluster.attributes.RemoteTypeName=CLUSTER
jcs.auxiliary.RCluster.attributes.RemoveUponRemotePut=false
jcs.auxiliary.RCluster.attributes.ClusterServers=192.168.101.161:1102
jcs.auxiliary.RCluster.attributes.GetOnly=false
jcs.auxiliary.RCluster.attributes.LocalClusterConsistency=true

 

config for remote.cacheRS1.ccf  (used on 192.168.101.161)

 

##############################################################
################## REMOTE SERVER CONFIG  RS2 #################
# Registry used to register and provide the IRmiCacheService service.
registry.host=192.168.101.161
registry.port=1102
# call back port to local caches.
remote.cache.service.port=1102
# cluster setting
remote.cluster.LocalClusterConsistency=true

# RS1 SERVER to update for clustering
jcs.auxiliary.RCluster=org.apache.jcs.auxiliary.remote.RemoteCacheFactory
jcs.auxiliary.RCluster.attributes=org.apache.jcs.auxiliary.remote.RemoteCach
eAttributes
jcs.auxiliary.RCluster.attributes.RemoteTypeName=CLUSTER
jcs.auxiliary.RCluster.attributes.RemoveUponRemotePut=false
jcs.auxiliary.RCluster.attributes.ClusterServers=192.168.101.160:1101
jcs.auxiliary.RCluster.attributes.GetOnly=false
jcs.auxiliary.RCluster.attributes.LocalClusterConsistency=true

 

 

 

Starting the both servers on the same computer I receive the same error.
Replacing the IPs with 'localhost' they start without errors.

 

 

Any ideas? Where am I wrong?

 

 

Thanks in advance!

 

 

 

Cristian