• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

head first RMI example (XP security ?)

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Damn I forgot something else

Don't use a blank in your Service name.

Regards,
Darya
reply
    Bookmark Topic Watch Topic
  • New Topic