Cannot connect to remote Service Error when using RemoteApplication Library (Swing)

175 views
Skip to first unread message

Faik Faisal

unread,
Feb 28, 2014, 3:26:40 PM2/28/14
to robotframe...@googlegroups.com



I am getting below error when I am trying to connect to my application using  Start Application keyword from RemoteApplication Library

RemoteConnectFailureException: Could not connect to remote service [rmi://localhost:63407/robotrmiservice]; nested exception is java.rmi.ConnectException: Connection refused to host: 142.63.201.108; nested exception is: 
java.net.ConnectException: Connection refused: connect

I have followed the RemoteApplication document completely but still getting error. 

Please help.

My code snip below

*** Settings ***
Library           RemoteApplications

*** Variables ***
${MAIN CLASS}     com.pss.psjarloader.PSJarLoader

*** Test Cases ***
Valid Login
    Start Demo Application    ValidLogin
    Application Should Be Opened

*** Keywords ***
Start Demo Application
    [Arguments]    ${name}
    Start Application    ${name}    java ${MAIN CLASS}    140 seconds
    Sleep    40s
    Take Library Into Use    SwingLibrary

Application Should Be Opened
    Select Main Window

Pekka Klärck

unread,
Mar 1, 2014, 5:01:57 PM3/1/14
to faik....@gmail.com, robotframework-users
2014-02-28 22:26 GMT+02:00 Faik Faisal <faik....@gmail.com>:
>
> I am getting below error when I am trying to connect to my application using Start Application keyword from RemoteApplication Library
>
> RemoteConnectFailureException: Could not connect to remote service [rmi://localhost:63407/robotrmiservice]; nested exception is java.rmi.ConnectException: Connection refused to host: 142.63.201.108; nested exception is:
> java.net.ConnectException: Connection refused: connect
>
> I have followed the RemoteApplication document completely but still getting error.

Unfortunately my knowledge of RemoteApplications is too limited to be
able to really help with it. RemoteApplications is probably
technically most complex corner of Robot Framework ecosystem. Part of
the reason is that the domain is complex, but unfortunately
RemoteApplications itself is also unnecessarily complicated. To make
things worse, that stuff seems to be affected also by Java versions
and operating systems. I hope RemoteApplications could be replaced
with a more robust solution some day, but unfortunately I cannot make
any promises related to it.

Cheers,
.peke
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org

Faik Faisal

unread,
Mar 1, 2014, 5:16:38 PM3/1/14
to robotframe...@googlegroups.com, faik....@gmail.com
Hello Peke,

Thank you for your reply.

Is there any other library which I can use to test the swing component of webstart application. I have tried using Swinglibrary's keyword Start Application In Separate Thread, The application got launched but I was unable to select the main window. I included jvmconnector in JAVA_OPTION_TOOLS as well. 

Really appreciate your help.

Faik
Reply all
Reply to author
Forward
0 new messages