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:

doubt on jini-please reply immediately

Posted by vijay kumar on January 01, 2001 at 2:43 AM

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