Like us on Facebook

LightBlog

November 16, 2010

Failed to start: SocketListener0@0.0.0.0:4444


14:45:33.140 WARN - Failed to start: SocketListener0@0.0.0.0:4444
Exception in thread "main" java.net.BindException: 
Selenium is already running on port 4444. Or some other service is.
at org.openqa.selenium.server.SeleniumServer.start(SeleniumServer.java:378)
at org.openqaselenium.server.SeleniumServer.boot(SeleniumServer.java:224)
at org.openqa.selenium.server.SeleniumServer.main(SeleniumServer.java:188)

This is the most common error which is encountered while starting the selenium server. The origin of this error is the fact that selenium server always tries to listen at port 4444 by default .
There are chances that when you are running tests, the server might not be shutdown properly. In this case, when you try to re-run your tests, you may encounter the following error

I Google for a solution and finally i got solution from my friends blog
Solution for the above problem is , type the below in the browser URL and the server will be stopped

http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer
Now your should be able to see the message "OKOK" in the browser window. Your server now shut downed. 


Now run your script from eclipse....server will start now with out any problem






27 comments:

  1. I am getting this error

    ERROR: ERROR: No sessionId provided. Most likely your original newBrowserSession command failed.

    ReplyDelete
    Replies
    1. 1) have to configure the RC -
      public class Login extends SeleneseTestCase {
      public SeleniumServer ss;
      static int port=1234;
      @Before
      public void setUp() throws Exception {
      RemoteControlConfiguration rcc=new RemoteControlConfiguration();
      ss=new SeleniumServer(rcc);
      ss.start();
      selenium = new DefaultSelenium("localhost", port, "*firefox", "application");
      selenium.start();
      }


      2)in Cmd start the server with different port -
      java -jar selenium-server-standalone-...jar -port 1234

      Delete
  2. I am getting this error in browser, Pls give solution.

    ERROR: ERROR: No sessionId provided. Most likely your original newBrowserSession command failed.

    ReplyDelete
  3. I executed the url in the firefox browser and again restarted in the cmd promt but I get the same problem

    ReplyDelete
  4. it works but you may not get okok message always,make sure that you have closed all the browers which are previously opened.and you may get a diffrent messsage that "unable to connect the server"

    ReplyDelete
  5. I got this error and the URL works

    ReplyDelete
  6. Can someone help-FF opens up but im unable to connect to the server?

    ReplyDelete
  7. This commands works properly..

    ReplyDelete
  8. Hi there! I know this is kinda off topic but I was wondering
    which blog platform are you using for this site? I'm getting sick and tired of Wordpress because I've had issues with hackers and
    I'm looking at alternatives for another platform. I would be great if you could point me in the direction of a good platform.

    Here is my web page - view next

    ReplyDelete
  9. I'm gone to convey my little brother, that he should also visit this website on regular basis to obtain updated from newest news.

    Also visit my blog :: screen next

    ReplyDelete
  10. Incredible points. Outstanding arguments. Keep up the good spirit.


    my page - view

    ReplyDelete
  11. you are actually a good webmaster. The site loading velocity is amazing.
    It kind of feels that you are doing any unique trick.

    Furthermore, The contents are masterpiece. you've performed a magnificent task in this subject!

    Also visit my webpage :: click

    ReplyDelete
  12. Appreciate the recommendation. Let me try it out.

    Also visit my blog post ... more about

    ReplyDelete
  13. The other day, while I was at work, my cousin stole my iPad and tested to see if it can survive a 40 foot drop, just so she can be a youtube sensation.
    My apple ipad is now broken and she has 83 views. I know this is entirely off
    topic but I had to share it with someone!

    my web-site :: loltoplist

    ReplyDelete
  14. Hi just wanted to give you a brief heads up and let you know a few of the
    images aren't loading properly. I'm not sure why but
    I think its a linking issue. I've tried it in two different internet browsers and both show the same results.

    Feel free to surf to my web blog :: three

    ReplyDelete
  15. Thank you for the good writeup. It in truth used to be a entertainment account it.
    Glance advanced to more introduced agreeable from you!
    However, how could we keep up a correspondence?

    Here is my web blog: longleggs

    ReplyDelete
  16. Stunning quest there. What occurred after? Take care!

    Also visit my blog; sandcastle

    ReplyDelete
  17. Simply wish to say your article is as astonishing.
    The clarity in your put up is simply nice and i could suppose you're an expert on this subject. Well together with your permission let me to snatch your feed to keep up to date with imminent post. Thanks one million and please keep up the gratifying work.

    Here is my webpage latinamway

    ReplyDelete
  18. It's going to be end of mine day, except before end I am reading this fantastic post to improve my know-how.

    My webpage; nautilus

    ReplyDelete
  19. Thanks .. Failed to start: SocketListener0@0.0.0.0:4444 issue is resolved with shutdown cmd..

    ReplyDelete
  20. thanks for shutdown command! worked great

    ReplyDelete
  21. Thanks a lot for this information. It worked for me.

    ReplyDelete