File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

head first RMI example (XP security ?)

 
dave Lande
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks, Dave
 
Darya Akbari
Ranch Hand
Posts: 1855
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dave,

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.

Regards,
Darya
 
Darya Akbari
Ranch Hand
Posts: 1855
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Regards,
Darya
[ March 16, 2005: Message edited by: Darya Akbari ]
 
Darya Akbari
Ranch Hand
Posts: 1855
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Damn I forgot something else

Don't use a blank in your Service name.

Regards,
Darya
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic