Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
roman.hybasek
Posts : 5
Join date : 2012-01-10

Selenium RC problem - forwarding error(?) Empty Selenium RC problem - forwarding error(?)

Tue Jan 10, 2012 8:56 pm
Hi,

heres my code and error that gives me everytime i try it to run.

It's some basic selenium test in java.

// I can't use links, but that code, what I have is @pastebin.com slash TiuDvQvK

I'm using selenium-standalone-server-2.16.1.

And i just don't know what to do with that error. When i do the same things on another compuer (runs server and try to run this test), it works. But not on my PC..
I was trying to google that, but with no effect..


Any sugestions, please?
avatar
faramka
Professional
Professional
Posts : 143
Join date : 2011-09-15
Location : Poland

Selenium RC problem - forwarding error(?) Empty Re: Selenium RC problem - forwarding error(?)

Wed Jan 11, 2012 4:03 pm
Change this line
Code:
selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://www.google.cz/");
for
Code:
selenium = new DefaultSelenium("localhost", 4444, "*firefox", "http://www.google.cz/");
avatar
roman.hybasek
Posts : 5
Join date : 2012-01-10

Selenium RC problem - forwarding error(?) Empty Re: Selenium RC problem - forwarding error(?)

Wed Jan 11, 2012 4:47 pm
That only change error for this:
Code:
1) testPrvni(nanuk1.prvni)java.lang.RuntimeException: Could not start Selenium session: org%2Eopenqa%2Egrid%2Ecommon%2Eexception%2EGridException%3A+Error+forwarding+the+new+session+Empty+pool+of+VM+for+setup+%7BbrowserName%3D%2Afirefox%7D
    at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:107)
    at nanuk1.prvni.setUp(prvni.java:13)
    at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:230)
    at nanuk1.suite.main(suite.java:17)
Caused by: com.thoughtworks.selenium.SeleniumException: org%2Eopenqa%2Egrid%2Ecommon%2Eexception%2EGridException%3A+Error+forwarding+the+new+session+Empty+pool+of+VM+for+setup+%7BbrowserName%3D%2Afirefox%7D

I have installed both browser - chrome & firefox..

Probably it won't be in that.. Any other suggestions, please? Sad
avatar
faramka
Professional
Professional
Posts : 143
Join date : 2011-09-15
Location : Poland

Selenium RC problem - forwarding error(?) Empty Re: Selenium RC problem - forwarding error(?)

Wed Jan 11, 2012 4:59 pm
What operating system are you using?
See what happens when you remove this line:
Code:
selenium.start();
avatar
roman.hybasek
Posts : 5
Join date : 2012-01-10

Selenium RC problem - forwarding error(?) Empty Re: Selenium RC problem - forwarding error(?)

Wed Jan 11, 2012 6:43 pm
I'm using W7.

And now I same problem, trying to connect jenkins server running on my computer.

With this:
Code:
Selenium selenium = new DefaultSelenium("localhost", 4444, "*firefox", " h t t p : / /jenkins-ci.org/");
selenium.start();

Comes this error:

Code:
1) testPrvni(nanuk1.prvni)java.lang.RuntimeException: Could not start Selenium session: org%2Eopenqa%2Egrid%2Ecommon%2Eexception%2EGridException%3A+Error+forwarding+the+new+session+Empty+pool+of+VM+for+setup+%7BbrowserName%3D%2Afirefox%7D
    at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:107)
    at nanuk1.prvni.setUp(prvni.java:12)
    at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:230)
    at nanuk1.suite.main(suite.java:17)
Caused by: com.thoughtworks.selenium.SeleniumException: org%2Eopenqa%2Egrid%2Ecommon%2Eexception%2EGridException%3A+Error+forwarding+the+new+session+Empty+pool+of+VM+for+setup+%7BbrowserName%3D%2Afirefox%7D
    at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:112)
    at com.thoughtworks.selenium.HttpCommandProcessor.getCommandResponseAsString(HttpCommandProcessor.java:183)
    at com.thoughtworks.selenium.HttpCommandProcessor.executeCommandOnServlet(HttpCommandProcessor.java:118)
    at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:101)
    at com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:275)
    at com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.java:237)
    at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:98)
    ... 15 more

And without selenium.start();

Code:
1) testPrvni(nanuk1.prvni)java.lang.NullPointerException
    at nanuk1.prvni.testPrvni(prvni.java:17)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:230)
    at nanuk1.suite.main(suite.java:17)
avatar
faramka
Professional
Professional
Posts : 143
Join date : 2011-09-15
Location : Poland

Selenium RC problem - forwarding error(?) Empty Re: Selenium RC problem - forwarding error(?)

Wed Jan 11, 2012 7:56 pm
Roman, please let us know more details.
When i do the same things on another compuer (runs server and try to run this test), it works.
You have Windows7 and selenium-standalone-server-2.16.1 on your PC, and what about the other computers in which you were tested? Are there also Win7 and the same version of Selenium?

Maybe you will try with lower version of Selenium Standalone Server (I am using 2.13.0)?

And one more question: how do you run the Selenium server? Have you were trying run it by command in console?
Code:
java -jar selenium-server-standalone-2.16.1.jar
avatar
roman.hybasek
Posts : 5
Join date : 2012-01-10

Selenium RC problem - forwarding error(?) Empty Re: Selenium RC problem - forwarding error(?)

Wed Jan 11, 2012 8:49 pm
faramka wrote:Roman, please let us know more details.
When i do the same things on another compuer (runs server and try to run this test), it works.
You have Windows7 and selenium-standalone-server-2.16.1 on your PC, and what about the other computers in which you were tested? Are there also Win7 and the same version of Selenium?

Maybe you will try with lower version of Selenium Standalone Server (I am using 2.13.0)?

And one more question: how do you run the Selenium server? Have you were trying run it by command in console?
Code:
java -jar selenium-server-standalone-2.16.1.jar


No, on the other computer, where I tried that, there are is same version of selenium, but not of win. I have there a win xp.

I was starting the server just like you wrote, but with "-role hub" paramter.

Now I have runing Selenium Grid in Jenkins. But it's same like this. I think.

Code:


Registered Remote Controls

Selenium Grid is running at localhost:4444.
            Selenium 1 clients should connect as follows:
Selenium selenium = new DefaultSelenium("localhost", 4444, "*firefox", "htt p : / /jenkins-ci. org/");

With same effect.
avatar
faramka
Professional
Professional
Posts : 143
Join date : 2011-09-15
Location : Poland

Selenium RC problem - forwarding error(?) Empty Re: Selenium RC problem - forwarding error(?)

Wed Jan 11, 2012 8:58 pm
So this is probably the fault of the operating system... I read that Window7 causes some problems in interacting with Selenium.
Have you any possibility for changing system? It would the simplest way to solve this problem...
avatar
roman.hybasek
Posts : 5
Join date : 2012-01-10

Selenium RC problem - forwarding error(?) Empty Re: Selenium RC problem - forwarding error(?)

Thu Jan 12, 2012 9:10 pm
Not right now, unfortunately. But I have now runing jenkins instance on my computer and adding tests to it SeleniumHQ htmlSuite run addon. That's close enough for me.

(it's working nice, only problem that I have is that firefox on my computer isn't working fine. It can't open. Usually I have to run test more times, to get my results. But that problem is for another forum, I guess...)

So thank you for help and your time. Smile
Sponsored content

Selenium RC problem - forwarding error(?) Empty Re: Selenium RC problem - forwarding error(?)

Back to top
Permissions in this forum:
You cannot reply to topics in this forum