Forums Register Login

RMI help

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
Tick check! Okay, I guess that was just an itch. Oh wait! Just a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 888 times.
Similar Threads
Stand-alone java app
RMI
Performance Monitoring
Please help me in Applet RMI communication
AccesscontrolException
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:59:38.