RMI and multiple users problem

Robert Daley <[email protected]>
Newsgroups gmane.comp.java.sun.javaspaces
Message-ID <[email protected]>
I have encountered a problem when one user starts the RMI daemon on a
host and another user wants to start a JavaSpace on that host.  Here
are the specifics:

o  I'm using version 2.0.002 of Jini
o  All the directories where log files are stored are world readable
and writeable
o  All policy files have been set to policy.all (rmid.policy,
outrigger.policy, group.policy, and start-outrigger.policy)
o  I'm using the standard configuration files for starting Outrigger

The basic exception reported is that the class ActivateWrapper is not
found, although it IS in the start.jar jarfile!  Based on my perusing
of the list archives it appears that this is a security related
problem, which is why I tried setting all the policy files to
policy.all.

Thanks in advance for any help on this problem,
        Cheers,
                Bob Daley

------------------------------------------------------------------------
-
This is the command-line output from the script that starts Outrigger:


May 18, 2005 9:50:59 PM sun.rmi.server.Util computeMethodHash
FINER: main: string used for method hash:
"activate(Ljava/rmi/activation/ActivationID;Z)Ljava/rmi/
MarshalledObject;"
May 18, 2005 9:50:59 PM com.sun.jini.start.ServiceStarter
checkResultFailures
WARNING: Exception creating service.
java.rmi.activation.ActivationException: unable to activate object;
nested exception is:
         java.lang.ClassNotFoundException:
com.sun.jini.start.ActivateWrapper
         at sun.rmi.server.ActivationGroupImpl.newInstance(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 sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
         at sun.rmi.transport.Transport$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown
Source)
         at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown
Source)
         at java.lang.Thread.run(Unknown Source)
         at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown
Source)
         at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown
Source)
         at sun.rmi.server.UnicastRef.invoke(Unknown Source)
         at java.rmi.activation.ActivationGroup_Stub.newInstance(Unknown
Source)
         at sun.rmi.server.Activation$ObjectEntry.activate(Unknown
Source)
         at sun.rmi.server.Activation$GroupEntry.activate(Unknown Source)
         at sun.rmi.server.Activation$ActivatorImpl.activate(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 sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
         at sun.rmi.transport.Transport$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown
Source)
         at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown
Source)
         at java.lang.Thread.run(Unknown Source)
         at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown
Source)
         at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown
Source)
         at sun.rmi.server.UnicastRef.invoke(Unknown Source)
         at
java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Unknown
  Source)
         at java.rmi.server.RemoteObjectInvocationHandler.invoke(Unknown
Source)
         at $Proxy0.activate(Unknown Source)
         at java.rmi.activation.ActivationID.activate(Unknown Source)
         at
com.sun.jini.start.SharedActivatableServiceDescriptor.create(SharedActiv
atableServiceDescriptor.java:387)
         at
com.sun.jini.start.ServiceStarter.create(ServiceStarter.java:303)
         at
com.sun.jini.start.ServiceStarter.main(ServiceStarter.java:483)
Caused by: java.lang.ClassNotFoundException:
com.sun.jini.start.ActivateWrapper
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
         at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
         at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source)
         at java.rmi.server.RMIClassLoader.loadClass(Unknown Source)
         at sun.rmi.server.ActivationGroupImpl.newInstance(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 sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
         at sun.rmi.transport.Transport$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown
Source)
         at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown
Source)
         at java.lang.Thread.run(Unknown Source)
May 18, 2005 9:50:59 PM com.sun.jini.start.ServiceStarter
checkResultFailures
WARNING: Associated service descriptor [1]:
[http://compute-1-3:10171/outrigger-dl.jar,
/home/daley2/jaga-samuel/admin/policy/outrigger.policy,
/home/daley2/jaga-samuel/admin/lib/outrigger.jar,
com.sun.jini.outrigger.PersistentOutriggerImpl,
[/home/daley2/jaga-samuel/admin/config/outrigger.config],
com.sun.jini.start.NonActivatableServiceDescriptor$1@80f4cb,
/var/tmp/jaga/daley2_main-group.log, true, , 1098]


This is similar output produced by RMI

rmid: debugExec: running "/usr/java/jre1.5.0_01/bin/java -cp
/home/daley2/jaga-samuel/admin/lib/sharedvm.jar -DPORT=10171
-DJINI=/home/daley2/jaga-samuel/admin -DSPACE_NAME=daley2_main
-DUSER=daley2 -DLOG_DIR=/var/tmp/jaga
-Djava.security.policy=/home/daley2/jaga-samuel/admin/policy/
group.policy -DINITIAL_LOOKUP_GROUP=SamGroup
-Djava.util.logging.config.file=/home/daley2/jaga-samuel/admin/logging/
outrigger/logging.properties -DSERVER_NAME=compute-1-3
sun.rmi.server.ActivationGroupInit"

Exception dispatching call to [0:0:0, 1] in thread "RMI TCP
Connection(16)-10.255.255.212" at Wed May 18 21:50:59 GMT 2005:
java.rmi.activation.ActivationException: unable to activate object;
nested exception is:
         java.lang.ClassNotFoundException:
com.sun.jini.start.ActivateWrapper
         at sun.rmi.server.ActivationGroupImpl.newInstance(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 sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
         at sun.rmi.transport.Transport$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown
Source)
         at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown
Source)
         at java.lang.Thread.run(Unknown Source)
         at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown
Source)
         at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown
Source)
         at sun.rmi.server.UnicastRef.invoke(Unknown Source)
         at java.rmi.activation.ActivationGroup_Stub.newInstance(Unknown
Source)
         at sun.rmi.server.Activation$ObjectEntry.activate(Unknown
Source)
         at sun.rmi.server.Activation$GroupEntry.activate(Unknown Source)
         at sun.rmi.server.Activation$ActivatorImpl.activate(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 sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
         at sun.rmi.transport.Transport$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown
Source)
         at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown
Source)
         at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException:
com.sun.jini.start.ActivateWrapper
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
         at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
         at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source)
         at java.rmi.server.RMIClassLoader.loadClass(Unknown Source)
         at sun.rmi.server.ActivationGroupImpl.newInstance(Unknown
Source)
         ... 11 more

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JAVASPACES-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

To view past JAVASPACES-USERS postings, please see:
http://archives.java.sun.com/archives/javaspaces-users.html

JDC members can download the JavaSpaces(tm) Technology from:
http://developer.java.sun.com/developer/products/jini/
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.