RE: Unknown exceptions...

"Goldsack, Patrick" <[email protected]>
Newsgroups gmane.comp.java.smartfrog.devel
Message-ID <D46BE408DE18F841B90DEFA8CAA2CDB2A8869B@sdcexcea01.emea.cpqcorp.net>
Malini,
 
There are two things going on in this, both related to a change we made
to unbind components from RMI on their termination.
 
The first two exceptions you are getting derive from the fact that on
termination the component is removed from the RMI table. Consequently a
future access to that component through an RMI object reference will
fail with the "java.rmi.NoSuchObjectException: no such object in table"
exception - in the past it would have succeeded as the component would
still be accessible through RMI. This may or may not matter depending on
the code that generates the call - in this case it seems to come from
inside the sfResolveHere method and does not matter. We have improved
the handling of these exceptions in the codebase for the next release.
 
There are a couple of points to note: 
 
1) when you have stack tracing enabled, internal exceptions are shown
but those that do not matter are encapsulated by the word "QUIET" (not
the best word, but this indicates that the exception occured but can be
ignored as Smartfrog did something appropriate...)
 
2) when you have stack tracing enabled, the error messsage at the end
should not be labled error, but result... thus for the moment you get
the oddity that you succeed with an error! This had already been fixed
in the codebase and will be in the next release.
 
The last exception is indeed a bug. The attempt to remove the
RootProcessCompound from the registry (triggered from the console, or
any other remote JVM) will fail with a security excepetion as in RMI a
remote call cannot do so. A workaround in general is to use a spawned
thread to unbind from the registry, and not rely on the remote call. We
will fix this for the next release. In this instance it doesn't matter
as you are effectively killing the entire system.
 
Thanks for highlighting these... we will update the documentation to
make the consequences of the unbind clearer.
 
Patick
 
 

________________________________

From: smartfrog-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:smartfrog-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of MS
Sent: 16 April 2005 05:24
To: smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [Smartfrog-developer] Unknown exceptions...


Hello all,
I am working with smartfrog 3.04.014..
when i use few bins like sf start,smartfrog i get few exceptions as
below..do i need to configire anything or is it ok.But the command works
fine..except these exceptions.
 
# smartfrog -a example2:TERMINATE:::172.16.1.160: -e
2005/04/16 18:15:38:007 IST [WARN ][main] SFCORE_LOG - SmartFrog
security is NOT active
Warning: stack trace logging enabled
SmartFrog 3.04.014_beta
(C) Copyright 1998-2004 Hewlett-Packard Development Company, LP
QUIET
java.rmi.NoSuchObjectException: no such object in table

 --- StackTrace Throwable Begins --
java.rmi.NoSuchObjectException: no such object in table
 *Stack trace follows:
java.rmi.NoSuchObjectException: no such object in table
        at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRem
oteCall.java:247)
        at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223
)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
        at
org.smartfrog.sfcore.compound.CompoundImpl_Stub.sfResolveHere(Unknown
Source)
        at
org.smartfrog.sfcore.common.ConfigurationDescriptor.statusString(Configu
rationDescriptor.java:260)
        at
org.smartfrog.sfcore.common.ConfigurationDescriptor.statusString(Configu
rationDescriptor.java:214)
        at org.smartfrog.SFSystem.execute(SFSystem.java:397)
        at org.smartfrog.SFSystem.main(SFSystem.java:331)
 --- StackTrace Throwable Ends --

QUIET
java.rmi.NoSuchObjectException: no such object in table

 --- StackTrace Throwable Begins --
java.rmi.NoSuchObjectException: no such object in table
 *Stack trace follows:
java.rmi.NoSuchObjectException: no such object in table
        at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRem
oteCall.java:247)
        at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223
)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
        at
org.smartfrog.sfcore.compound.CompoundImpl_Stub.sfResolveHere(Unknown
Source)
        at
org.smartfrog.sfcore.common.ConfigurationDescriptor.statusString(Configu
rationDescriptor.java:271)
        at
org.smartfrog.sfcore.common.ConfigurationDescriptor.statusString(Configu
rationDescriptor.java:214)
        at org.smartfrog.SFSystem.execute(SFSystem.java:397)
        at org.smartfrog.SFSystem.main(SFSystem.java:331)
 --- StackTrace Throwable Ends --

 - Successfully terminated: 'rootProcess',  [],  host:172.16.1.160
   Error:
    Command line SFACT: 'example2:TERMINATE:::172.16.1.160:'
    To String: ' name:example2,  type:TERMINATE,  url:,
host:172.16.1.160,  resultType:SUCCESSFUL'
QUIET
========================
at the server end
========================
...
...
2005/04/16 18:16:33:939 IST [INFO ][RMI TCP Connection(13)-172.16.1.184]
SFCORE_LOG - HOST
vaigi.kovaiteam.com:rootProcess:counterEx.sfTerminateWith [18:16:33.933
IST, 2005/04/16]>  Terminating for reason: Termination Record: HOST
vaigi.kovaiteam.com:rootProcess,  type: normal,  description: External
Management Action
java.rmi.AccessException: Registry.Registry.unbind disallowed; origin
/172.16.1.184 is non-local host

 --- StackTrace Throwable Begins --
java.rmi.AccessException: Registry.Registry.unbind disallowed; origin
/172.16.1.184 is non-local host
 *Stack trace follows:
java.rmi.AccessException: Registry.Registry.unbind disallowed; origin
/172.16.1.184 is non-local host
        at
sun.rmi.registry.RegistryImpl.checkAccess(RegistryImpl.java:223)
        at sun.rmi.registry.RegistryImpl.unbind(RegistryImpl.java:136)
        at
org.smartfrog.sfcore.processcompound.DefaultRootLocatorImpl.unbindRootPr
ocessCompound(DefaultRootLocatorImpl.java:141)
        at
org.smartfrog.sfcore.processcompound.ProcessCompoundImpl.sfTerminateWith
(ProcessCompoundImpl.java:456)
        at
org.smartfrog.sfcore.prim.PrimImpl.terminateNotifying(PrimImpl.java:828)
        at
org.smartfrog.sfcore.prim.PrimImpl.sfTerminate(PrimImpl.java:767)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
        at sun.rmi.transport.Transport$1.run(Transport.java:148)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
        at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
        at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.ja
va:701)
        at java.lang.Thread.run(Thread.java:534)
 --- StackTrace Throwable Ends --

SmartFrog [rootProcess] dead  Sat Apr 16 18:16:33 IST 2005
===========================
 
I didn't note this with 3.04.004 version.is there any added comps..
 
 
Thanks
Malini

Yahoo! India Matrimony
<http://in.rd.yahoo.com/specials/mailtg/*http://yahoo.shaadi.com/india-m
atrimony/> : Find your life partner online
<http://in.rd.yahoo.com/specials/mailtg2/*http://yahoo.shaadi.com/india-
matrimony/> .
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.