Solved

java.security.Access control exception:access denied

Posted on 2001-07-12
4
1,216 Views
Last Modified: 2012-05-04
Hello,
I"m running into a slight problem with RMI.  My rmi server creates an rmiregistry on port 1099 then tries to register one object within that registry. The rmiregistry is created fine, but once rebind is called, it throws an exception :

java.security.Access control exception:access denied
java .net.socket permission 127.0.0.1:1099 connect ,resolve.
any body can help me?

)

0
Comment
Question by:Suneesh
4 Comments
 
LVL 15

Accepted Solution

by:
mohan_sekar earned 50 total points
ID: 6277522
Hi,

add the following code in the java.policy file

grant {
    permission java.net.SocketPermission "*:1024-65535",
        "connect,accept";
    permission java.net.SocketPermission "*:80", "connect";
};

bye
0
 

Author Comment

by:Suneesh
ID: 6473046
thanks
0
 
LVL 5

Expert Comment

by:vemul
ID: 7669855
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
- points to mohan_sekar
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

vemul
Cleanup Volunteer
0
 

Expert Comment

by:modulo
ID: 7729190
Finalized as proposed

modulo

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

Suggested Solutions

Title # Comments Views Activity
Java and GPO 11 68
HSSFWorkbook cannot be resolved error 10 49
Java Loop 6 48
Why method in Java which is called from Runnable run() doesn't need to be 'static'? 1 22
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
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.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

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

18 Experts available now in Live!

Get 1:1 Help Now