Solved

java.security.Access control exception:access denied

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
nestparen challenge 4 56
Systems talking to each other 5 110
get weblogic logged in user in java 2 42
backtracking recursion  code 19 40
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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

757 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