This page contains an archived post to the Jini Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
u have to specify the security policy....
Posted by saravanan on February 03, 2001 at 3:18 AM
when running ur Jini Service Provider program(deviceimp1 ) u have to specify a policy file . I will tell u how to start the program:
java -Djava.security.policy= deviceimp1
u can use the policy file that is available in "jini1_1/examples/lookup/policy.all".
hope this will help u..
> I am doing a project using the Jini Technology. I have few
> Do help me in this regard..
> 1. I have implemented a service. My service is stepper motor control.
> I dont have a problem on the hardware side. I wanted to make the
> service to
> make use of JoinManager where i had a problem .
> The following error occured.
> I got the error exactly at the execution of the following point.
> JoinManager jm= new JoinManager(this,initattr,this,null,null);
> where, initattr is an Entry class Array containing my device's
> the following error occured.
> java.security.AccessController.CheckPermission(AccessControlContext.java :272)
> java.lang.securityManager.CheckPermission(AccessController.java :399)
> net.jini.Discovery.LookupDiscovery.checkGroups(LookupDiscovery.java :759)
> at net.jini.Discovery.LookupDiscovery
> (LookupDiscovery.java 726)
> at net.jini.Discovery.LookupDiscoveryManager
> (LookupDiscoveryManager.java : 332)
> net.jini.Lookup.joinmanager.CreateJoinManager(JoinManager.java : 292)
> at net.jini.Lookup.JoinManager (JoinManager. java :173)
> at deviceimp1.execute(deviceimpl1.java :53)
> at deviceimp1.main(deviceimpl1.java :30)
> Exception in thread "main" Exit code 1
> where deviceimp1 is my service program.
> 2. On the client side.
> My client has implemented the discoveryListener Interface. I have not
> implemented the lookup service. i am planning to use the Reggie Lookup
> Service from Sun Microsystems. My discovered() method was never
> please help me in fixing up the bug.
> Please Reply soon.
> V.Vijay kumar