"Bean Creation Error" from RemoteApplications Library

219 views
Skip to first unread message

Eleanor Terry-Welsh

unread,
Aug 5, 2014, 5:08:14 PM8/5/14
to robotframe...@googlegroups.com
I am having some trouble using the RemoteApplications library and the SwingLibrary. I am trying to run the test below, which should open TestAPP and enter admin into to the username text field:

*** Settings ***
Library  RemoteApplications
Library  SwingLibrary

*** Variables ***
${LOGINNAME}    admin

*** Test Cases ***
Test Launch Application
     RemoteApplications.Start Application    TestAPP     java -cp $CLASSPATH com.testapp.Main    60
     RemoteApplications.Take Library Into Use    SwingLibrary
     Sleep    30
     RemoteApplications.Select Dialog    LoginWindow
     RemoteApplications.Insert Into Text Field    UserNameField   ${LOGINNAME}


However I am getting this error:

BeanCreationException: Error creating bean with name 'robotRmiService' defined in class path resource [org/robotframework/remoteapplications/client/clientContext.xml]: Invocation of init method failed; nested exception is org.robotframework.remoteapplications.org.springframework.remoting.RemoteLookupFailureException: Lookup of RMI stub failed; nested exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: 
java.net.ConnectException: Connection refused

Any suggestions on what would be causing this?

Thanks,
Eleanor

Janne Härkönen

unread,
Aug 6, 2014, 4:38:03 AM8/6/14
to eterr...@gmail.com, robotframework-users
Hi Eleanor,


On Wed, Aug 6, 2014 at 12:08 AM, Eleanor Terry-Welsh <eterr...@gmail.com> wrote:
However I am getting this error:

BeanCreationException: Error creating bean with name 'robotRmiService' defined in class path resource [org/robotframework/remoteapplications/client/clientContext.xml]: Invocation of init method failed; nested exception is org.robotframework.remoteapplications.org.springframework.remoting.RemoteLookupFailureException: Lookup of RMI stub failed; nested exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: 
java.net.ConnectException: Connection refused

Any suggestions on what would be causing this?


RemoteApplications uses a local socket connection, and this error indicates that something (most likely Windows firewall) is blocking that connection. You should try to allow java to use local sockets, but where this can be done depends on your OS.

hth,
--Janne 

Sudeep Nethra

unread,
Nov 27, 2014, 4:34:43 AM11/27/14
to robotframe...@googlegroups.com, eterr...@gmail.com, janne.h...@iki.fi
Hi Janne,

I too get the similar Error. My scenario is as floows:
1) I have a shell script in openSUSE 64bit system which calls the robot testsuite. This works when I call the shell script from the Terminal.
2) I have used a Java Web program which calls the same shell script from the Web page running on a HTTP Server (Websphere). It can spot jybot and runs the robot test till successful remote service connection saying: "Connected to remote service at 'rmi://localhost:48575/robotrmiservice'". Following this appears an error at the Keyword "RemoteApplications.Take Library Into Use SwingLibrary" stating as follows:

BeanCreationException: Error creating bean with name 'robotRmiService' defined in class path resource [org/robotframework/remoteapplications/client/clientContext.xml]: Initialization of bean failed; nested exception is java.lang.NullPointerException

Do you know where the problem could be?

p.s.: If I happen to find the Solution, I'll post it in this Thread too.

cheers,
Sudeep
Reply all
Reply to author
Forward
0 new messages