Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Warning -> Failed to start: SocketListener , while performing Cross Browser Testing

View previous topic View next topic Go down

Warning -> Failed to start: SocketListener , while performing Cross Browser Testing

Post by yuvasakthip on Tue Jul 19, 2011 4:20 pm

Hello Everyone,

I have just started learning Selenium. I am trying to use Selenium RC for Cross Browser Testing.
While performing Cross Browser Testing I am getting error " Failed to start: SocketListener0@0.0.0.0:4444" in all the Browsers. Please give me a solution as soon as possible.

Working Environment
Selenium RC 1.0.3 (C#)
Windows 7
IE9, Firefox 5, Safari 5.0.3


C:\seleniumrc\selenium-server-1.0.3>java -jar selenium-server.jar -multiwindow -
htmlsuite "*safariproxy" "http://book.theautomatedtester.co.uk/" "D:\selenium\sa
mples\Sample of Begineers\TSverifytext.html" "D:\selenium\samples\Sample of Begi
neers\Result33.html"

03:26:16.240 INFO - Java: Sun Microsystems Inc. 1.6.0-b105
03:26:16.241 INFO - OS: Windows Vista 6.1 x86
03:26:16.245 INFO - v2.0 [a2], with Core v2.0 [a2]
03:26:16.337 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
03:26:16.338 INFO - Version Jetty/5.1.x
03:26:16.338 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
03:26:16.340 INFO - Started HttpContext[/selenium-server,/selenium-server]
03:26:16.340 INFO - Started HttpContext[/,/]
03:26:16.360 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@47858e
03:26:16.360 INFO - Started HttpContext[/wd,/wd]
03:26:16.361 WARN - Failed to start: SocketListener0@0.0.0.0:4444
Exception in thread "main" org.openqa.jetty.util.MultiException[java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind]

at org.openqa.jetty.http.HttpServer.doStart(HttpServer.java:686)

at org.openqa.jetty.util.Container.start(Container.java:72)

at org.openqa.selenium.server.SeleniumServer.start(SeleniumServer.java:396)

at org.openqa.selenium.server.SeleniumServer.boot(SeleniumServer.java:234)

at org.openqa.selenium.server.SeleniumServer.main(SeleniumServer.java:198)

java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind

at java.net.PlainSocketImpl.socketBind(Native Method)

at java.net.PlainSocketImpl.bind(Unknown Source)

at java.net.ServerSocket.bind(Unknown Source)

at java.net.ServerSocket.(Unknown Source)

at org.openqa.jetty.util.ThreadedServer.newServerSocket(ThreadedServer.java:391)

at org.openqa.jetty.util.ThreadedServer.open(ThreadedServer.java:477)

at org.openqa.jetty.util.ThreadedServer.start(ThreadedServer.java:503)

at org.openqa.jetty.http.SocketListener.start(SocketListener.java:204)

at org.openqa.jetty.http.HttpServer.doStart(HttpServer.java:716)

at org.openqa.jetty.util.Container.start(Container.java:72)

at org.openqa.selenium.server.SeleniumServer.start(SeleniumServer.java:396)

at org.openqa.selenium.server.SeleniumServer.boot(SeleniumServer.java:234)

at org.openqa.selenium.server.SeleniumServer.main(SeleniumServer.java:198)


Thanks,

Yuva Sakthi P

yuvasakthip

Posts: 3
Join date: 2011-06-23

Back to top Go down

Re: Warning -> Failed to start: SocketListener , while performing Cross Browser Testing

Post by ashish_techie on Tue Aug 16, 2011 11:25 pm

Make sure you have started the selenium server. Selenium Server runs on port 4444.
1) There can be another service which might be blocking this port. Eg skype or some other app.

2) If thats not the case, then selenium server might be already running. Please stop it with the help of following url and then try again.[b]
localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer
[/b]


If this does not work, you can also use defaultselenium class to instantiate selenium. With defaultselenium class you can change the port number on which server is running.

Regards
Ashish

For selenium training visit
qtpselenium.com/samplevideos/selenium/seleniumvideos.php

ashish_techie
Amateur
Amateur

Posts: 73
Join date: 2011-08-09

Back to top Go down

Re: Warning -> Failed to start: SocketListener , while performing Cross Browser Testing

Post by muzy256 on Thu Feb 16, 2012 6:34 pm

hi,
i tried 2nd way but still, im having same error..
is it possible if it is a kind of jar problem ? maybe i added wrong jars ?
:S
thanks.

muzy256

Posts: 1
Join date: 2012-02-16

Back to top Go down

Re: Warning -> Failed to start: SocketListener , while performing Cross Browser Testing

Post by shreeneelg on Wed Mar 14, 2012 7:21 pm

Shutdown PC.. Start after 1 minuet..
By Mistake you might have clicked on .jar file from selenium folder, that may be blocking you.


Last edited by shreeneelg on Wed Mar 14, 2012 7:33 pm; edited 2 times in total (Reason for editing : better reply)

shreeneelg

Posts: 1
Join date: 2012-03-14

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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