The Artima Developer Community
Sponsored Link

Legacy Jini Forum
The Jini Lookup Service

Advertisement

Advertisement

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 Artima Forums.

Message:

u have to specify the security policy....

Posted by saravanan on February 03, 2001 at 3:18 AM

hai vijay


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..

regards
saravanan

> Sir,
> I am doing a project using the Jini Technology. I have few
> problems.
> 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
> attributes.

> the following error occured.
> java.security.AccesControlException:Access
> denied.(net.jini.discoveryPermission)
> at
> java.security.AccessController.CheckPermission(AccessControlContext.java :272)
> at
> java.lang.securityManager.CheckPermission(AccessController.java :399)
> at
> net.jini.Discovery.LookupDiscovery.checkGroups(LookupDiscovery.java :759)
> at net.jini.Discovery.LookupDiscovery
> (LookupDiscovery.java 726)
> at net.jini.Discovery.LookupDiscoveryManager
> (LookupDiscoveryManager.java : 332)
> at
> 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
> called.

> please help me in fixing up the bug.

> Please Reply soon.
> V.Vijay kumar






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us