Hello Ranchers!
I am getting frustrated
with Java RMI running on Linux (I use Ubuntu 9.04). Maybe some of you faced the same problem I do now and found a solution for this, and I will really appreciate your help with this.
I get a
RemoteException each time I try to bind a stub with the RMI Registry.
I do rmic the code before executing it and as far as I know I don't need to be worried about setting up a policy file or a SecurityManager for this (I have Andrew's and Terry's SCJD book
and I probably read the RMI chapter 1000 times to try to find out a lead to my problem with no luck).
## My
/etc/hosts file content:
## My
/etc/hosts.allow file content:
## The (trimmed and simplyfied) relevant part of my code follows:
##
stub information:
DataServerImpl_Stub[UnicastRef [liveRef: [endpoint:[lobo-laptop:47839](local),objID:[-31110a77:12407db5840:-7fff, -6460063892832792796]]]]
##
registry information:
RegistryImpl_Stub[UnicastRef [liveRef: [endpoint:[127.0.1.1:1099](remote),objID:[0:0:0, 0]]]]
##
Exception information:
It looks weird to me that the Registry implementation was bound to 127.0.1.1, and also that its ObjID is [0:0:0, 0].
It also seems that hava is not able to create sockets, but Ubuntu's log mechanism has no information about it.
Any ideas on how to solve this (besides using Windows, of course)?
Thanks a lot!
Marcelo