Getting Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Selendroid server

747 views
Skip to first unread message

Vishwa >>

unread,
Dec 19, 2013, 12:54:22 AM12/19/13
to appium-...@googlegroups.com

Hi All,

I have started selendroid server java -jar selendroid-standalone-0.6.0-with-dependencies.jar -app To
llFreeNumbers_debug.apk. It is showing the server is started on port 5555 and I,m able to browse the URL http://localhost:5555/wd/hub/status.

But when I run the following code in my eclipse

SelendroidCapabilities capa = SelendroidCapabilities.emulator(DeviceTargetPlatform.ANDROID17,"com.TollFreeNumbers:1.1");
System.out.println("Set the capability");
WebDriver driver = new SelendroidDriver("http://localhost:5555/wd/hub", capa);
driver.switchTo().window("WEBVIEW");
System.out.println("session created");
WebElement inputField = driver.findElement(By.xpath("//div[@class='vcentered']/a[1]//img"));
System.out.println("got the image");

Im getting the exception

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Selendroid server on the device didn't came up after 20sec:
Command duration or timeout: 97.45 seconds
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'CLBBLR-6019', ip: '172.16.78.204', os.name: 'Windows Vista', os.arch: 'x86', os.version: '6.1', java.version: '1.6.0'
Driver info: io.selendroid.SelendroidDriver
Caused by: io.selendroid.exceptions.SelendroidException: Selendroid server on the device didn't came up after 20sec:

I don know what to do. My emulator is started but I get this exception.

Help is appriciated.

Thanks


Jonathan Lipps

unread,
Dec 19, 2013, 11:30:02 AM12/19/13
to Vishwa >>, appium-...@googlegroups.com
sounds like an issue for the selendroid team.

--
http://appium.io
---
You received this message because you are subscribed to the Google Groups "Appium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appium-discus...@googlegroups.com.
Visit this group at http://groups.google.com/group/appium-discuss.
For more options, visit https://groups.google.com/groups/opt_out.

Ritika Narang

unread,
May 6, 2014, 3:35:42 AM5/6/14
to appium-...@googlegroups.com
Hi Jonathan,

I am facing the same issue" org.openqa.selenium.SessionNotCreatedException: The requested application under test is not configured in selendroid server." when i tried to run my tests with my application.
But its working perfectly when test app is run. I am running the tests using TestNG. For reference logs are as follows:-

Please provide me the solution.

FAILED CONFIGURATION: @BeforeSuite setup
org.openqa.selenium.SessionNotCreatedException: The requested application under test is not configured in selendroid server.
io.selendroid.exceptions.SessionNotCreatedException: The requested application under test is not configured in selendroid server.
    at io.selendroid.server.model.SelendroidStandaloneDriver.createNewTestSession(SelendroidStandaloneDriver.java:207)
    at io.selendroid.server.handler.CreateSessionHandler.handle(CreateSessionHandler.java:42)
    at io.selendroid.server.SelendroidServlet.handleRequest(SelendroidServlet.java:140)
    at io.selendroid.server.BaseServlet.handleHttpRequest(BaseServlet.java:70)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:78)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:62)
    at org.webbitserver.handler.PathMatchHandler.handleHttpRequest(PathMatchHandler.java:33)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:78)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:62)
    at org.webbitserver.handler.DateHeaderHandler.handleHttpRequest(DateHeaderHandler.java:21)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:78)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:62)
    at org.webbitserver.handler.ServerHeaderHandler.handleHttpRequest(ServerHeaderHandler.java:25)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:78)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:67)
    at org.webbitserver.netty.NettyHttpChannelHandler$2.run(NettyHttpChannelHandler.java:72)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Command duration or timeout: 217 milliseconds
Build info: version: '2.37.0', revision: 'a7c61cb', time: '2013-10-18 17:15:02'
System info: host: 'RitikaN-Paxcel', ip: '192.168.1.124', os.name: 'Windows NT (unknown)', os.arch: 'amd64', os.version: '6.2', java.version: '1.7.0'
Driver info: io.selendroid.SelendroidDriver
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:193)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:216)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:111)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:115)
    at io.selendroid.SelendroidDriver.<init>(SelendroidDriver.java:61)
    at io.selendroid.demo.UserRegistrationTest.setup(UserRegistrationTest.java:81)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
    at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:277)
    at org.testng.SuiteRunner.run(SuiteRunner.java:240)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
    at org.testng.TestNG.run(TestNG.java:1057)
    at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
Caused by: io.selendroid.exceptions.SessionNotCreatedException: The requested application under test is not configured in selendroid server.
io.selendroid.exceptions.SessionNotCreatedException: The requested application under test is not configured in selendroid server.
    at io.selendroid.server.model.SelendroidStandaloneDriver.createNewTestSession(SelendroidStandaloneDriver.java:207)
    at io.selendroid.server.handler.CreateSessionHandler.handle(CreateSessionHandler.java:42)
    at io.selendroid.server.SelendroidServlet.handleRequest(SelendroidServlet.java:140)
    at io.selendroid.server.BaseServlet.handleHttpRequest(BaseServlet.java:70)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:78)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:62)
    at org.webbitserver.handler.PathMatchHandler.handleHttpRequest(PathMatchHandler.java:33)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:78)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:62)
    at org.webbitserver.handler.DateHeaderHandler.handleHttpRequest(DateHeaderHandler.java:21)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:78)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:62)
    at org.webbitserver.handler.ServerHeaderHandler.handleHttpRequest(ServerHeaderHandler.java:25)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:78)
    at org.webbitserver.netty.NettyHttpControl.nextHandler(NettyHttpControl.java:67)
    at org.webbitserver.netty.NettyHttpChannelHandler$2.run(NettyHttpChannelHandler.java:72)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)


SKIPPED: assertUserAccountCanRegistered

===============================================
    Default test
    Tests run: 1, Failures: 0, Skips: 1
    Configuration Failures: 1, Skips: 0
===============================================


===============================================
Default suite
Total tests run: 1, Failures: 0, Skips: 1
Configuration Failures: 1, Skips: 1
===============================================

[TestNG] Time taken by org.testng.reporters.jq.Main@22b69c85: 68 ms
[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@7bc012fa: 39 ms
[TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 31 ms
[TestNG] Time taken by org.testng.reporters.XMLReporter@38217825: 20 ms
[TestNG] Time taken by org.testng.reporters.EmailableReporter2@52c62074: 8 ms
[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@fa428d5: 46 ms

Ritika Narang

unread,
May 6, 2014, 3:38:02 AM5/6/14
to appium-...@googlegroups.com

      FYI:- I am using selendroid.


On Thursday, December 19, 2013 10:00:02 PM UTC+5:30, Jonathan Lipps wrote:

Jonathan Lipps

unread,
May 6, 2014, 9:48:16 AM5/6/14
to Ritika Narang, appium-...@googlegroups.com
If you're using selendroid standalone, this isn't the place to ask your questions. This is only for people running Appium.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages