How to get rid of “SessionNotCreatedException”

Hi Lakshya,

While I run my test, I am getting the below exception:

Exception in thread “main” org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Bad app:
D:\PK\MarsWorkplace\AppiumTestProject\Apps\Amazon\ 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:\PK\MarsWorkplace\AppiumTestProject\Apps\Amazon\’)
(WARNING: The server did not provide any stacktrace information)

Command duration or timeout: 299 milliseconds
Build info: version: ‘2.45.0’, revision: ’32a636c’, time: ‘2015-03-05 22:01:35′
System info: host: ‘openpool-2765′, ip: ‘’, ‘Windows 7′, os.arch: ‘amd64′, os.version: ‘6.1’, java.version: ‘1.8.0_05′
Driver info:
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(
at org.openqa.selenium.remote.RemoteWebDriver.execute(
at io.appium.java_client.AppiumDriver.execute(
at org.openqa.selenium.remote.RemoteWebDriver.startSession(
at org.openqa.selenium.remote.RemoteWebDriver.<init>(
at org.openqa.selenium.remote.RemoteWebDriver.<init>(
at io.appium.java_client.AppiumDriver.<init>(
at amazon.StartApplication.main(

Could you please provide solution for this exception.

Thanks in advance.

DebashisDas Default Asked on July 20, 2015 in Appium.
Add Comment
1 Answer(s)

It got solved and the problem was in the apk file path and apk file name.

Make sure, before running the script we should mention the appropriate path for apk in both device and your system.
Give the exact apk file name.

Hope this will help.

DebashisDas Default Answered on July 21, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.