Solved

access denied - rmi

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

919 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

20 Experts available now in Live!

Get 1:1 Help Now