Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

access denied - rmi

Posted on 2001-07-10
4
Medium Priority
?
199 Views
Last Modified: 2010-08-05
I type in the following at the command prompt:

java -Djava.security.policy=c:\jini1_0_1\example\lookup\policy.all -jar c:\jini1_0_1\lib\reggie.jar file://C:/jini1_0_1/lib/reggie-dl.jar c:\jini1_0_1\example\lookup\policy.all k:\tmp\reggie_log

What cause these error messages?

----------------------------
java.rmi.activation.ActivateFailedException: failed to activate object; nested exception is:
  java.security.AccessControlException: access denied (com.sun.rmi.rmid.Ex
ecOptionPermission -Djava.security.policy=c:\jini1_0_1\example\lookup\policy.all
)
java.security.AccessControlException: access denied (com.sun.rmi.rmid.ExecOption
Permission -Djava.security.policy=c:\jini1_0_1\example\lookup\policy.all)
  at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
  at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
  at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
  at sun.rmi.server.Activation$ActivatorImpl_Stub.activate(Unknown Source)

  at java.rmi.activation.ActivationID.activate(ActivationID.java:89)
  at sun.rmi.server.ActivatableRef.activate(ActivatableRef.java:250)
  at sun.rmi.server.ActivatableRef.invoke(ActivatableRef.java:110)
  at com.sun.jini.reggie.RegistrarImpl_Stub.getServiceID(Unknown Source)
  at com.sun.jini.reggie.CreateLookup.create(CreateLookup.java:106)
  at com.sun.jini.reggie.CreateLookup.create(CreateLookup.java:199)
  at com.sun.jini.reggie.CreateLookup.main(CreateLookup.java:414)
0
Comment
Question by:txholdem
  • 2
4 Comments
 
LVL 6

Expert Comment

by:kotan
ID: 6272037
Have you up the rmid?
If then, how do you run it?
What is your jdk version?
0
 
LVL 1

Author Comment

by:txholdem
ID: 6273109
I typed "rmid" first in a DOS box, then I went to another DOS command prompt and typed the above command.
I am using jdk1.3
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6273667
txholdem is being blocked from accessing/updating this question and it may be necessary to PAQ/close this for zero points and to post a new question to continue this collaboration effort, and post the link here for participating experts to follow and continue.  I'll keep you posted.

Thanks,
Moondancer
Community Support Moderator @ Experts Exchange
0
 
LVL 1

Accepted Solution

by:
Moondancer earned 0 total points
ID: 6274205
Points for this question have been refunded, and this item will be moved to the PAQ.

txholdem has reposted this question new at the following link, due to access problem with this question.  Participating experts here, please post your information in this new link:

http://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20149285

Thank you.
Moondancer
Community Support Moderator @ Experts Exchange
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question