Solved

java.security.Access control exception:access denied

Posted on 2001-07-12
4
1,217 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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 …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

770 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