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
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Why seleniumserverstandlone 2.25.0..jar  getting stop? and getting error  in eclipse, Could not start Selenium session Empty Why seleniumserverstandlone 2.25.0..jar getting stop? and getting error in eclipse, Could not start Selenium session

Wed Feb 06, 2013 1:25 pm
hi,

i hv used,

JDK 1.6
eclipse java indigo sr2 win32
Selenium server standalone 2.25.0
selenium remote control 1.0.3 -> used selenium java client driver.jar

i tried with many versions of selenium server standalone but wen i run it shows started and getting stop , finally next prompt getting.

it s running. getting stoped. Y ?

wen i run the program getting error like this,

java.lang.RuntimeException: Could not start Selenium session: null
at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:109)
at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:134)
at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:103)
at com.thoughtworks.selenium.SeleneseTestCase.setUp(SeleneseTestCase.java:110)
at login.setUp(login.java:5)
at junit.framework.TestCase.runBare(TestCase.java:132)
at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:248)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: com.thoughtworks.selenium.SeleniumException
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:100)
... 19 more
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Why seleniumserverstandlone 2.25.0..jar  getting stop? and getting error  in eclipse, Could not start Selenium session Empty Re: Why seleniumserverstandlone 2.25.0..jar getting stop? and getting error in eclipse, Could not start Selenium session

Wed Feb 06, 2013 3:52 pm
No need of selenium remote control 1.0.3....juss try wth standalone
avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Why seleniumserverstandlone 2.25.0..jar  getting stop? and getting error  in eclipse, Could not start Selenium session Empty Re: Why seleniumserverstandlone 2.25.0..jar getting stop? and getting error in eclipse, Could not start Selenium session

Wed Feb 06, 2013 4:06 pm
while referencing at libraries in eclipse, added both. and tried with only standalone. getting same error..
earlier i ws added standalone and java client driever.jar. getting same error..

tel me in detail hw s runnning at ur end . wt all ur using? and wt cmd given to run server.

my pgm is,,

import com.thoughtworks.selenium.*;
@SuppressWarnings("deprecation")
public class login extends SeleneseTestCase {
public void setUp() throws Exception {
setUp("http://php.thedemosite.co.uk/","*firefox");
}
public void testloginlogout(){
selenium.setSpeed("2000");
selenium.open("/login.php");
selenium.windowMaximize();
selenium.type("//input[@name='username']", "mytest");
selenium.type("//input[@name='password']", "mytest");
selenium.click("//input[@type='button']");
selenium.waitForPageToLoad("50000");
}
}
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Why seleniumserverstandlone 2.25.0..jar  getting stop? and getting error  in eclipse, Could not start Selenium session Empty Re: Why seleniumserverstandlone 2.25.0..jar getting stop? and getting error in eclipse, Could not start Selenium session

Wed Feb 06, 2013 6:49 pm
u recorded this code??
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Why seleniumserverstandlone 2.25.0..jar  getting stop? and getting error  in eclipse, Could not start Selenium session Empty Re: Why seleniumserverstandlone 2.25.0..jar getting stop? and getting error in eclipse, Could not start Selenium session

Wed Feb 06, 2013 7:14 pm
import org.openqa.selenium.server.SeleniumServer;
import com.thoughtworks.selenium.DefaultSelenium;

public class demo {


public static void main(String[] args) throws Exception {
SeleniumServer selenium = new SeleniumServer();
DefaultSelenium selstart=new DefaultSelenium("localhost", 4444, "*firefox", "http://php.thedemosite.co.uk/");
selenium.start();
selstart.start();

selstart.setSpeed("2000");
selstart.open("/login.php");
selstart.windowMaximize();
selstart.type("//input[@name='username']", "mytest");
selstart.type("//input[@name='password']", "mytest");
selstart.click("//input[@type='button']");
selstart.waitForPageToLoad("50000");

selstart.stop();
selenium.stop();

}

}



Try this...ru using testng ??
avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Why seleniumserverstandlone 2.25.0..jar  getting stop? and getting error  in eclipse, Could not start Selenium session Empty Re: Why seleniumserverstandlone 2.25.0..jar getting stop? and getting error in eclipse, Could not start Selenium session

Thu Feb 07, 2013 12:56 pm
not recorded. i m not using testng. that will be in eclipse by default or not?
i hvnt added any othr one.
wt cmd gave while running a server?
java -jar selenium-server-standalone-2.25.0.jar 4444
is dis sufficient?
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Why seleniumserverstandlone 2.25.0..jar  getting stop? and getting error  in eclipse, Could not start Selenium session Empty Re: Why seleniumserverstandlone 2.25.0..jar getting stop? and getting error in eclipse, Could not start Selenium session

Thu Feb 07, 2013 2:00 pm
Hi divya,
Intially u need to create obj for selenium server using follwing query
SeleniumServer selenium = new SeleniumServer();

now u need to use following cmd for strtng server
selenium.start();

avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Why seleniumserverstandlone 2.25.0..jar  getting stop? and getting error  in eclipse, Could not start Selenium session Empty Re: Why seleniumserverstandlone 2.25.0..jar getting stop? and getting error in eclipse, Could not start Selenium session

Thu Feb 07, 2013 3:16 pm
earlier last week my pgm ws executed. as u said to change standalone 2.25.0. it ws working fine. wen i executed yesterday nt getting. server standalone getting stop. same error in eclipse.

JDK 1.5 will work?

wt command u were giving to run the server standalone..
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Why seleniumserverstandlone 2.25.0..jar  getting stop? and getting error  in eclipse, Could not start Selenium session Empty Re: Why seleniumserverstandlone 2.25.0..jar getting stop? and getting error in eclipse, Could not start Selenium session

Thu Feb 07, 2013 3:27 pm
even i faced sme prb wth jdk 1.5...bt wn i changed to 1.6 its wrkng for me

hopng it wrks for u.... Smile
avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Why seleniumserverstandlone 2.25.0..jar  getting stop? and getting error  in eclipse, Could not start Selenium session Empty Re: Why seleniumserverstandlone 2.25.0..jar getting stop? and getting error in eclipse, Could not start Selenium session

Sat Feb 09, 2013 10:30 am
Got error in eclipse wen i run ur pgm..

19:29:47.812 INFO - Java: Sun Microsystems Inc. 11.0-b12
19:29:47.828 INFO - OS: Windows XP 5.1 x86
19:29:47.843 INFO - v2.25.0, with Core v2.25.0. Built from revision 17482
19:29:47.937 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
19:29:47.953 INFO - Version Jetty/5.1.x
19:29:47.953 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
19:29:47.953 INFO - Started HttpContext[/selenium-server,/selenium-server]
19:29:47.953 INFO - Started HttpContext[/,/]
19:29:47.968 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@1de3f2d
19:29:47.968 INFO - Started HttpContext[/wd,/wd]
19:29:47.984 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:473)
at login.main(login.java:10)
avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Why seleniumserverstandlone 2.25.0..jar  getting stop? and getting error  in eclipse, Could not start Selenium session Empty Re: Why seleniumserverstandlone 2.25.0..jar getting stop? and getting error in eclipse, Could not start Selenium session

Sat Feb 09, 2013 10:33 am
and also my server getting stop..
i hv givn cmd like,

java -jar selenium-server-standalone-2.25.0.jar 4444
wt to dooo?
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Why seleniumserverstandlone 2.25.0..jar  getting stop? and getting error  in eclipse, Could not start Selenium session Empty Re: Why seleniumserverstandlone 2.25.0..jar getting stop? and getting error in eclipse, Could not start Selenium session

Mon Feb 11, 2013 2:37 pm
divya_agsrdk wrote:Got error in eclipse wen i run ur pgm..

19:29:47.812 INFO - Java: Sun Microsystems Inc. 11.0-b12
19:29:47.828 INFO - OS: Windows XP 5.1 x86
19:29:47.843 INFO - v2.25.0, with Core v2.25.0. Built from revision 17482
19:29:47.937 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
19:29:47.953 INFO - Version Jetty/5.1.x
19:29:47.953 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
19:29:47.953 INFO - Started HttpContext[/selenium-server,/selenium-server]
19:29:47.953 INFO - Started HttpContext[/,/]
19:29:47.968 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@1de3f2d
19:29:47.968 INFO - Started HttpContext[/wd,/wd]
19:29:47.984 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:473)
at login.main(login.java:10)

here server didnt stopped use the below link
http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer
avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Why seleniumserverstandlone 2.25.0..jar  getting stop? and getting error  in eclipse, Could not start Selenium session Empty Re: Why seleniumserverstandlone 2.25.0..jar getting stop? and getting error in eclipse, Could not start Selenium session

Mon Feb 11, 2013 3:17 pm
bt in dis link http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer

wen i enterd that above link in a browser url, i m getting lik dis,,,,

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>GET /selenium-server/driver/?cmd=shutDownSeleniumServer HTTP/1.1

C:\>'GET' is not recognized as an internal or external command,
operable program or batch file.
Host: localhost:4444

C:\>'Host:' is not recognized as an internal or external command,
operable program or batch file.
Connection: keep-alive

C:\>'Connection:' is not recognized as an internal or external command,
operable program or batch file.
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

C:\>'Accept:' is not recognized as an internal or external command,
operable program or batch file.
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17

C:\>'User-Agent:' is not recognized as an internal or external command,
operable program or batch file.
Referer: https://seleniumforum.forumotion.net/t2113-why-seleniumserverstandlone-2250jar-getting-stop-and-getting-error-in-eclipse-could-not-start-selenium-session#4909

C:\>'Referer:' is not recognized as an internal or external command,
operable program or batch file.
Accept-Encoding: gzip,deflate,sdch

C:\>'Accept-Encoding:' is not recognized as an internal or external command,
operable program or batch file.
Accept-Language: en-US,en;q=0.8

C:\>'Accept-Language:' is not recognized as an internal or external command,
operable program or batch file.
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3


C:\>'Accept-Charset:' is not recognized as an internal or external command,
operable program or batch file.

avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Why seleniumserverstandlone 2.25.0..jar  getting stop? and getting error  in eclipse, Could not start Selenium session Empty Re: Why seleniumserverstandlone 2.25.0..jar getting stop? and getting error in eclipse, Could not start Selenium session

Mon Feb 11, 2013 3:43 pm
hav opened in IE... if not nce try in IE
avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Why seleniumserverstandlone 2.25.0..jar  getting stop? and getting error  in eclipse, Could not start Selenium session Empty Re: Why seleniumserverstandlone 2.25.0..jar getting stop? and getting error in eclipse, Could not start Selenium session

Tue Feb 12, 2013 10:37 am
Even in IE getting same... wt to do?? JDK 6 will work ?
send me the link from which u downloaded JDK...

C:\>'GET' is not recognized as an internal or external command, operable program or batch file. Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */* C:\>'Accept:' is not recognized as an internal or external command, operable program or batch file. Accept-Language: en-us C:\>'Accept-Language:' is not recognized as an internal or external command, operable program or batch file. Accept-Encoding: gzip, deflate C:\>'Accept-Encoding:' is not recognized as an internal or external command, operable program or batch file. User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; BTRS105111; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022) C:\>'User-Agent:' is not recognized as an internal or external command, operable program or batch file. Host: localhost:4444 C:\>'Host:' is not recognized as an internal or external command, operable program or batch file. Connection: Keep-Alive C:\>'Connection:' is not recognized as an internal or external command, operable program or batch file.
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Why seleniumserverstandlone 2.25.0..jar  getting stop? and getting error  in eclipse, Could not start Selenium session Empty Re: Why seleniumserverstandlone 2.25.0..jar getting stop? and getting error in eclipse, Could not start Selenium session

Wed Feb 13, 2013 4:34 pm
change the host
avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Why seleniumserverstandlone 2.25.0..jar  getting stop? and getting error  in eclipse, Could not start Selenium session Empty Re: Why seleniumserverstandlone 2.25.0..jar getting stop? and getting error in eclipse, Could not start Selenium session

Wed Feb 13, 2013 5:40 pm
ha... wen i changd computer, getting output..
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Why seleniumserverstandlone 2.25.0..jar  getting stop? and getting error  in eclipse, Could not start Selenium session Empty Re: Why seleniumserverstandlone 2.25.0..jar getting stop? and getting error in eclipse, Could not start Selenium session

Wed Feb 13, 2013 7:20 pm
changing computer??
avatar
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Why seleniumserverstandlone 2.25.0..jar  getting stop? and getting error  in eclipse, Could not start Selenium session Empty Re: Why seleniumserverstandlone 2.25.0..jar getting stop? and getting error in eclipse, Could not start Selenium session

Thu Feb 14, 2013 4:47 pm
ya..not changed my pc. i tried with othr host..its working fine..
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Why seleniumserverstandlone 2.25.0..jar  getting stop? and getting error  in eclipse, Could not start Selenium session Empty Re: Why seleniumserverstandlone 2.25.0..jar getting stop? and getting error in eclipse, Could not start Selenium session

Thu Feb 14, 2013 4:51 pm
Smile thts fyn...
Sponsored content

Why seleniumserverstandlone 2.25.0..jar  getting stop? and getting error  in eclipse, Could not start Selenium session Empty Re: Why seleniumserverstandlone 2.25.0..jar getting stop? and getting error in eclipse, Could not start Selenium session

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