org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Requested a new session but one was in progress) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 0 milliseconds Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:48:19 -0700' System info: host: 'LAPTOP-O6MJ7FC6', ip: '192.168.251.2', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_121' Driver info: driver.version: AndroidDriver

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Selenium issue

    GitHub | 2 months ago | logesh123
    org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Bad app: D:\Android\startupApp\FirstTest1\app\SarathiAppFinalWave2.apk. App paths need to be absolute, or relative to the appium server install dir, or a URL to compressed file, or a special app name. cause: Error: Error locating the app: ENOENT, stat 'D:\Android\startupApp\FirstTest1\app\SarathiAppFinalWave2.apk') (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 0 milliseconds Build info: version: 'unknown', revision: '1969d75', time: '2016-10-18 09:43:45 -0700' System info: host: 'admin-PC', ip: '192.168.1.229', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_11' Driver info: driver.version: AndroidDriver
  2. 0

    Appium TestNG error : Attempting bi-dialect session, assuming Postel's Law holds true on the remote end

    Software Quality Assurance & Testing | 2 months ago | victoria
    org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Requested a new session but one was in progress) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 0 milliseconds Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:48:19 -0700' System info: host: 'LAPTOP-O6MJ7FC6', ip: '192.168.251.2', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_121' Driver info: driver.version: AndroidDriver
  3. 0

    Not able to run appium script on real device. getting a bad app error

    Stack Overflow | 3 weeks ago | Anjani Kumar
    org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Bad app: C:\Users\admin\workspace\AppiumProject\sdcard\Android\data\com.alensw.PicFolder. App paths need to be absolute, or relative to the appium server install dir, or a URL to compressed file, or a special app name. cause: Error: Using local app, but didn't end in .zip, .ipa or .apk) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 0 milliseconds Build info: version: '3.3.1', revision: '5234b32', time: '2017-03-10 09:04:52 -0800' System info: host: 'ADMIN-PC', ip: '10.0.0.63', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_121' Driver info: driver.version: AndroidDriver
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    A Space for Automation Enthusiasts: Running tests on Google Chrome using Webdriver

    varunin.com | 7 months ago
    org.openqa.selenium.WebDriverException: chrome not reachable (Driver info: chromedriver=2.2,platform=Windows NT 6.1 SP1 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 28.67 seconds Build info: version: '2.24.1', revision: '17205', time: '2012-06-19 16:53:24' System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.6.0_23' Driver info: driver.version: ChromeDriver Session ID: 3655d6ab20ebadd9e0e0637aa9acd4a9
  6. 0

    Running elementor momentarily starts Chrome browser/shuts down, exceptions are thrown in webdriver server console

    GitHub | 6 months ago | jaisannaidu79
    java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03' System info: host: 'naija03-win10a', ip: '10.132.141.236', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_101' Driver info: driver.version: unknown
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.openqa.selenium.SessionNotCreatedException

    A new session could not be created. (Original error: Requested a new session but one was in progress) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 0 milliseconds Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:48:19 -0700' System info: host: 'LAPTOP-O6MJ7FC6', ip: '192.168.251.2', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_121' Driver info: driver.version: AndroidDriver

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
  2. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    4. java.lang.reflect.Constructor.newInstance(Unknown Source)
    4 frames
  3. Selenium
    HttpCommandExecutor.execute
    1. org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:216)
    2. org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:168)
    3. org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:161)
    4. org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:64)
    5. org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)
    5 frames
  4. java-client
    AppiumCommandExecutor.execute
    1. io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:69)
    1 frame
  5. Selenium
    RemoteWebDriver.execute
    1. org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
    1 frame
  6. java-client
    AndroidDriver.execute
    1. io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
    2. io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
    3. io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
    3 frames
  7. Selenium
    RemoteWebDriver.<init>
    1. org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:241)
    2. org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:128)
    3. org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:141)
    3 frames
  8. java-client
    AndroidDriver.<init>
    1. io.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobileDriver.java:38)
    2. io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:90)
    3. io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:128)
    4. io.appium.java_client.android.AndroidDriver.<init>(AndroidDriver.java:72)
    4 frames
  9. com.example
    FirstAppiumTest.Setup
    1. com.example.FirstAppiumTest.Setup(FirstAppiumTest.java:33)
    1 frame
  10. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  11. TestNG
    RemoteTestNG.main
    1. org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
    2. org.testng.internal.Invoker.invokeMethod(Invoker.java:645)
    3. org.testng.internal.Invoker.invokeTestMethod(Invoker.java:851)
    4. org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1177)
    5. org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
    6. org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
    7. org.testng.TestRunner.privateRun(TestRunner.java:756)
    8. org.testng.TestRunner.run(TestRunner.java:610)
    9. org.testng.SuiteRunner.runTest(SuiteRunner.java:387)
    10. org.testng.SuiteRunner.runSequentially(SuiteRunner.java:382)
    11. org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
    12. org.testng.SuiteRunner.run(SuiteRunner.java:289)
    13. org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    14. org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
    15. org.testng.TestNG.runSuitesSequentially(TestNG.java:1293)
    16. org.testng.TestNG.runSuitesLocally(TestNG.java:1218)
    17. org.testng.TestNG.runSuites(TestNG.java:1133)
    18. org.testng.TestNG.run(TestNG.java:1104)
    19. org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)
    20. org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:236)
    21. org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:81)
    21 frames