• Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI help

 
rajani adapa
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Iam trying to run the rmi program.
Like,i compiled all three files.
And entered rmiregistry in command window.
Also rmic -v1.2 RemteHelloImpl.
(remteHelloImpl is my implementation file).
And when i run the server as java RemteHelloImpl
Iam getting an error message saying
java.security.AccessControlException: access denied (java.net.SocketPermission 1
27.0.0.1:1099 connect,resolve)

Iam very new to rmi.
can anybody help me in this regard.
please...
rajini
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apparently you don't have authorization to talk to rmiregistry (which runs on port 1099). That's pretty strange, as least from a Solaris perspective.
I don't know if this is common on NT. But the security on your system might not allow clients to connect unless it is explicitly allowed.
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide
 
saritha Burra
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rajani
After compiling all the three classes
and setting the option as -v1.2
u have to set the run time parameters
ie ur server should point out to ur stub classes
so in the run time
If u r running using Dos prompt
give it as
java -Djava.rmi.server.codebase=file:/c:\TestRMI\classes\ TestServer
where TestServer is ur Server name
TestRMI\classes is the folder where ur stub classes are generated
If u r running using JBuilder
May be this will solve ur problem
coz i faced a similar problem previously when i tried to run it
in JBuilder
bye
saritha
 
Fredrik Safstrom
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rajini,
Please see: http://www.javaranch.com/ubb/Forum4/HTML/000434.html
/Bamse
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!