Solved

access denied - rmi

Posted on 2001-07-10
4
190 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
sumHeights  challenge 17 61
sumHeights2  challenge 7 76
unix in java example 9 40
Checkbox and ListView in Android Layout 4 38
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
The viewer will learn how to implement Singleton Design Pattern in Java.
This video teaches viewers about errors in exception handling.

706 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now