robotframework / RemoteApplications

A Robot Framework test library that enables using libraries in external JVM.
Other
12 stars 4 forks source link

rmi binding fails when SUT and Robot FW reside in different machines #9

Open jatalahd opened 11 years ago

jatalahd commented 11 years ago

An Exception: java.rmi.AccessException: Registry.Registry.rebind disallowed; origin xxx.xx.xxx.xx. is non-local host

is thrown when trying to run cases via remoteapplications-1.3.jar from remote machine. I have Robot FW 2.7.6, Python 2.7, Jython 2.5.3, SwingLibrary 1.5.3. and Java 7u13. I can launch testing with Application Starter keyword only when I run tests on a local machine (Robot FW and SUT are in the same PC). I have tried to add the .java.policy file, but that does not help either.

This should be easily reproduced by modifying the swinglibrary-demo project to use a remote connection via two remoteapplication-1.3.jar files.

For more information please refer to the post: https://groups.google.com/forum/?fromgroups=#!topic/robotframework-users/sJqIaycNw90

Thanks, Jarmo

PS. Basically I am trying to get the SwingLibrary to work as a remote server. If this can be done by some other way than using the remoteapplications-plugin I would be very happy to hear about it.

jussimalinen commented 11 years ago

I didnt have time to take a look at this yet. One other option would be to use Robot's "Remote"-library: http://code.google.com/p/robotframework/wiki/RemoteLibrary

You could then bundle jremoteserver https://github.com/ombre42/jrobotremoteserver/ together with swinglibrary to your application.