Solved

access denied - rmi

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groupSum6 challenge 6 86
JList custom Cell Renderer refresh 15 56
fibonacci ten numbers 4 38
Custom Java Application connects to database: Which one of the 20? 4 27
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
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 the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This video teaches viewers about errors in exception handling.

776 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