If you're familiar with the Head First RMI example...
I've been able to get the RMI Head First code to work on a single machine. It works on a home network (both machines running XP Pro), but I can not get the code to work with XP at work. I have even gone so far as to completely turn off the firewall stuff. Nothing.
The program is set up to retrieve a list of services to place in a drop down combo box. When the client asks for the list, the program is throwing a null pointer exception - associated with the JComboBox. As noted earlier, this works at home , but not at work. There must be something different either in the security manager settings or firewall settings ( or policy files) on XP - the network guys haven't been able to help, so I'm thought I'd ask here.
I run the same Head First Java (HFJ) code on two Win XP machines.
Make sure that you first configure the connection between your both XP machines. Test the connection with a ping from both sides.
Once you are successful with your connection go ahead and put all files as described in HFJ onto your server XP machine.
Start the rmiregister on your server XP machine. Then go to your client XP machine and start your client. Make sure that you use the server IP address in your Naming.lookup() you previously configured for your server XP machine.
SCJP, SCJD, SCWCD, SCBCD
Joined: Aug 21, 2004
Oh I forgot that one , on the server XP machine I had the XP firewall running. While on the client XP machine I had another Security Manager (SSH Sentinel) running. I had to switch off the SSH Sentinel.
So give it first a try without any Firewall or the like.