Questions tagged [rmiregistry]

RMI registry is kind of RMI naming service (a server application) where remote objects could be registered under some string name so they could be found and accessed by other clients connecting the same registry.

RMI registry is an independent executable, a part of Java runtime package. It must be started, binds to the given port (1099 by default) and listens to remote or maybe local network calls.

Java code that uses RMI must obtain the registry through LocateRegistry.getRegistry(host, port) or similar method. Normally, at least some RMI-capable applications access the registry remotely over the network.

74 questions
0
votes
0 answers

Run RMI client error message

I have a correction of an exercice we have done in class so its supposed to be working fine. But Im not able to execute it properly. When I run the Remote object its all fine I have the message on the screen showing me its working but when I run the…
Mitch
  • 9
  • 5
0
votes
1 answer

SimpleDB setup java.rmi.NotBoundException:simpledb

I want to install SimpleDB to my computer.I have already defined the CLASSPATH environment variable as .;C:\SimpleDB in user variables and the system variables CLASSPATH as C:\Program Files\Java\jdk1.7.0_45\bin;C:\Program…
user3046703
  • 23
  • 1
  • 1
  • 8
0
votes
0 answers

Stored Endpoint IP Address after Network Configure Changes in RMI

I've got a RMI server running on a mac. Once I changed the server IP and restart the Application and clients, then clients keep connect to the old ip address with right bind and lookup address. I really have no idea what went wrong because the…
Shisoft
  • 4,197
  • 7
  • 44
  • 61
0
votes
1 answer

RMI theory , download stub file

When a Client asks for a remote reference to a RMIregistry, Rmiregistry sends to Client an instance of the stub class, the client need also the definition of this class (.class) . Client asks for stub.class to Rmiregistry or Rmiregistry sends it…
Edge7
  • 681
  • 1
  • 15
  • 35
0
votes
1 answer

RMI - work in the same machine, not in LAN

I am trying to establish two-communication between one server and two clients. This works very well when all programs run on the same machine but it doesn't work when I try using LAN network. I got the error : java.rmi.ConnectException: Connection…
maxence5694
  • 3
  • 1
  • 3
0
votes
2 answers

java rmi exceptions

I'm writing an rmi application. Everything works perfectly fine when i put the all classes in one directory. However, when i try to split the server part and the client part, it raises java.lang.ClassNotFoundException.myclasses It seems to be the…
Progress Programmer
  • 7,076
  • 14
  • 49
  • 54
0
votes
1 answer

Issue with invoking RMIregistry from client side

I am trying Remote calls using RMI registry for the first time. I have written the interface and class which implements it. Am facing the problem when am trying to invoke it. I've started rmiregistry in my windows machine by giving start…
Anuj Balan
  • 7,629
  • 23
  • 58
  • 92
0
votes
2 answers

Client fails to connect with RMI registry when using ProcessBuilder

If i'm creating the RMI registry from command line, the client has no problem in binding objects to the registry. However, if i'm starting the RMI registry using ProcessBuilder, it's giving error. This is my code for creating rmiregistry using…
xavier666
  • 87
  • 12
0
votes
2 answers

How to deny the Client to unbind the RMI Registry?

I write a simple RMI application. I found out that the Client after getting the RMI-Registry can execute successful the Registry.unbind() method. This is in my opinion a security risk. Why it is allowed to the Client to unbind the Name in the remote…
silence_le
  • 5
  • 1
  • 4
-1
votes
1 answer

java.RMI socket creation details?

i've looked at doc, tested, debugged ... but remain stumped. time for stackOverflow! i'll set the stage, then describe my error. Background i have an RMI client/sever setup that works fine when client, server and rmiregistry all live together on…
rikb
  • 630
  • 5
  • 18
-1
votes
1 answer

- RMI code base doesn't work - Registry Lookup very slow and doesn't work

I can not understand how to use the codebase. I have the following structure: CLIENT: Client.java client.policy SERVER: Server.java Hello.java HelloInterfaces.java HelloInterfaces.java public interface HelloInterfaces extends Remote…
Stackuser
  • 140
  • 1
  • 12
-1
votes
1 answer

RMI error when trying to create multiplayer game in Eclipse

Okay so I'm having an issue for a multiplayer game that I'm making with RMI. I have to use RMI, it's one of the requirements of the project. Here's the error that I get when compiling, I have already the rmiregistry running in the background. …
Ahmed Zafar
  • 665
  • 2
  • 10
  • 24
-1
votes
1 answer

Client, server and rmi don't work

This code doesn't work. Well, it works, but the client doesn't print. Am i doing something wrong? I'm using W7 and NetBeans. Is there a way to see if the rmiregistry is ok? If i remove these catch, i can't compile it. I'm pretty sure that problems…
As As
  • 2,049
  • 4
  • 17
  • 33
-2
votes
1 answer

Cannot send (Service) object from RMI server to Client

I have been killing my brain trying to figure out the problem, i am pretty sure the server connection is established neatly. i have even put some system prints to make sure the object is sent and received. let me post my code first.…
Hanzyusuf
  • 369
  • 5
  • 11
1 2 3 4
5