Switching from Java-Client 4.1.2 to 5.0.0.-beta- initiating the driver fails

We are running the Android on Java-Client 4.1.2 with the below code for starting the Appium server service & all worked fine.
Now we tried to use the Java-Client latest release (java-client-5.0.0-BETA) ,
Though the app is installed the driver fails to initiate.

Is this a know issue for Java-Client 5.0.0.0-Beta or we are missing something in the code?
Any help will be most appreciated!


This is the Start service method:

public AppiumDriverLocalService startAppiumService() {

	AppiumServiceBuilder c = new AppiumServiceBuilder() ;
	 AppiumDriverLocalService service =  AppiumDriverLocalService.buildService(c.usingPort(4723).withIPAddress("0.0.0.0"));
	 
	boolean isServiceRunning =  service.isRunning();
	if (isServiceRunning){
		
		service.stop();
	}
	service.start();
	return service;

}

public AndroidDriver<MobileElement> setCapabilitiesAndroid(AndroidMethods genMeth, AppiumDriverLocalService service)
		throws IOException {

DesiredCapabilities capabilities = DesiredCapabilities.android();

capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, genMeth.getValueFromPropFile(“deviceName”));

capabilities.setCapability(MobileCapabilityType.APP, genMeth.getValueFromPropFile(“appPath”));

capabilities.setCapability(“automationName”,genMeth.getValueFromPropFile(“uiautomator2”));

capabilities.setCapability(“newCommandTimeout”, genMeth.getValueFromPropFile(“newCommandTimeout”));

	try {
		
		driver = new AndroidDriver<MobileElement>(service.getUrl(),capabilities);

The error log:
[RemoteTestNG] revisions:
git.commit.id=4f29d2b
git.branch=4f29d2b4f03d98ec727e1941758af66ae27e0458
git.build.version=1.2.0
[RemoteTestNG] detected TestNG version 6.9.9
[RemoteTestNG] Invoked with -serport 57480 -protocol json -d /Users/menypeled/Documents/workspace/Droid_Appium/test-output /Users/menypeled/Documents/workspace/Droid_Appium/src/resources/Testng.xml
[BaseMessageSender] Waiting for Eclipse client on localhost:57480
[BaseMessageSender] Received a connection from Eclipse on localhost:57480
[BaseMessageSender] Connection established, starting reader thread
[BaseMessageSender] ReaderThread waiting for an admin message
[JsonMessageSender] Sending message [GenericMessage ==> suiteCount:1, testCount:1]
[BaseMessageSender] ReaderThread received admin message:>ACK
[BaseMessageSender] Received ACK:>ACK
[BaseMessageSender] Received ACK:>ACK
[TestNG] Running:
/Users/menypeled/Documents/workspace/Droid_Appium/src/resources/Testng.xml

[JsonMessageSender] Sending message [SuiteMessage ==> suite:Suite, starting, methodCount:0]
[BaseMessageSender] Received ACK:>ACK
[BaseMessageSender] Received ACK:>ACK
Please choose Environment mode(1 for QA, 2 for Staging or 3 for PROD):1
Testing against QA Environment
Do you want to use Applitools eye?(1 for Yes, or continue for No):2
Testing without Applitools visual testing
[Appium] Welcome to Appium v1.6.4-beta.2
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {“build”:{“version”:“1.6.4-beta.2”,“revision”:null}}
[HTTP] <-- GET /wd/hub/status 200 18 ms - 90
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {“build”:{“version”:“1.6.4-beta.2”,“revision”:null}}
[HTTP] <-- GET /wd/hub/status 200 25 ms - 90
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/menypeled/Documents/workspace/Droid_Appium/APK/SkyGiraffe.apk",“newCommandTimeout”:“1200”,“automationName”:null,“browserName”:“android”,“platformName”:“Android”,“version”:"",“deviceName”:“Nexus 5X”,“platform”:“ANDROID”}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/menypeled/Documents/workspace/Droid_Appium/APK/SkyGiraffe.apk",“newCommandTimeout”:“1200”,“automationName”:null,“browserName”:“android”,“platformName”:“Android”,“version”:"",“deviceName”:“Nexus 5X”,“platform”:“ANDROID”},null,null,null,null]
[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1497184984136 (15:43:04 GMT+0300 (IDT))
[Appium] Creating new AndroidDriver (v1.17.1) session
[Appium] Capabilities:
[Appium] app: ‘/Users/menypeled/Documents/workspace/Droid_Appium/APK/SkyGiraffe.apk’
[Appium] newCommandTimeout: ‘1200’
[Appium] automationName: null
[Appium] browserName: ‘android’
[Appium] platformName: ‘Android’
[Appium] version: ‘’
[Appium] deviceName: ‘Nexus 5X’
[Appium] platform: ‘ANDROID’
[debug] [AndroidDriver] AndroidDriver version: 1.17.1
[BaseDriver] Capability ‘newCommandTimeout’ changed from string (‘1200’) to integer (1200). This may cause unexpected behavior
[BaseDriver] The following capabilities were provided, but are not recognized by appium: version, platform.
[AndroidDriver] The desired capabilities should generally not include both an app and a browserName
[BaseDriver] Session created with session id: e3fe06f8-706a-4abd-a107-849d8f16a8a5
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_111
[ADB] Checking whether adb is present
[ADB] Using adb from /Users/menypeled/Library/Android/sdk/platform-tools/adb
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[AndroidDriver] Using device: 00cfa6ed1739c2e7
[ADB] Checking whether adb is present
[ADB] Using adb from /Users/menypeled/Library/Android/sdk/platform-tools/adb
[debug] [ADB] Setting device id to 00cfa6ed1739c2e7
[BaseDriver] Using local app ‘/Users/menypeled/Documents/workspace/Droid_Appium/APK/SkyGiraffe.apk’
[debug] [AndroidDriver] Checking whether app is actually present
[AndroidDriver] Starting Android session
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“wait-for-device”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“shell”,“echo”,“ping”]
[debug] [Logcat] Starting logcat capture
[debug] [AndroidDriver] Pushing settings apk to device…
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“shell”,“pm”,“list”,“packages”,“io.appium.settings”]
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for io.appium.settings
[debug] [ADB] Getting connected devices…
[ADB] Checking whether aapt is present
[ADB] Using aapt from /Users/menypeled/Library/Android/sdk/build-tools/25.0.2/aapt
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“shell”,“dumpsys”,“package”,“io.appium.settings”]
[ADB] Cannot read version codes of /usr/local/lib/node_modules/appium/node_modules/io.appium.settings/app/build/outputs/apk/settings_apk-debug.apk and/or io.appium.settings. Assuming correct app version is already installed
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“shell”,“getprop”,“ro.build.version.sdk”]
[debug] [ADB] Device API level: 25
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“shell”,“dumpsys”,“package”,“io.appium.settings”]
[debug] [AndroidDriver] Pushing unlock helper app to device…
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“install”,"/usr/local/lib/node_modules/appium/node_modules/appium-unlock/bin/unlock_apk-debug.apk"]
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“install”,"/usr/local/lib/node_modules/appium/node_modules/appium-unlock/bin/unlock_apk-debug.apk"]
[debug] [ADB] Application ‘/usr/local/lib/node_modules/appium/node_modules/appium-unlock/bin/unlock_apk-debug.apk’ already installed. Continuing.
[debug] [ADB] Device API level: 25
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“shell”,“appops”,“set”,“io.appium.settings”,“android:mock_location”,“allow”]
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“shell”,“getprop”,“ro.build.version.release”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“shell”,“wm”,“size”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“shell”,“getprop”,“ro.product.model”]
[debug] [ADB] Current device property ‘ro.product.model’: Nexus 5X
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“shell”,“getprop”,“ro.product.manufacturer”]
[debug] [ADB] Current device property ‘ro.product.manufacturer’: LGE
[debug] [AndroidDriver] Parsing package and activity from app manifest
[ADB] Checking whether aapt is present
[ADB] Using aapt from /Users/menypeled/Library/Android/sdk/build-tools/25.0.2/aapt
[ADB] Extracting package and launch activity from manifest
[debug] [ADB] badging package: com.skygiraffe.operationaldata
[debug] [ADB] badging act: com.skygiraffe.operationaldata.LoginScreenActivity
[debug] [AndroidDriver] Parsed package and activity are: com.skygiraffe.operationaldata/com.skygiraffe.operationaldata.LoginScreenActivity
[AndroidDriver] Remote apk path is /data/local/tmp/dabf63cd7c7a8cb3b0e6d8278ef0e79c.apk
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“shell”,“ls”,"/data/local/tmp/dabf63cd7c7a8cb3b0e6d8278ef0e79c.apk"]
[debug] [AndroidDriver] Checking if app is installed
[debug] [ADB] Getting install status for com.skygiraffe.operationaldata
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“shell”,“pm”,“list”,“packages”,“com.skygiraffe.operationaldata”]
[debug] [ADB] App is installed
[AndroidDriver] Apk is already on remote and installed, resetting
[debug] [AndroidDriver] Running fast reset (stop and clear)
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“shell”,“am”,“force-stop”,“com.skygiraffe.operationaldata”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“shell”,“pm”,“clear”,“com.skygiraffe.operationaldata”]
[debug] [AndroidDriver] Extracting strings from apk /Users/menypeled/Documents/workspace/Droid_Appium/APK/SkyGiraffe.apk null /var/folders/mr/lbh2rfw568g5v74x7g7vgx440000gn/T/com.skygiraffe.operationaldata
[debug] [ADB] Extracting strings for language: default
[debug] [ADB] Device API level: 25
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“shell”,“getprop”,“persist.sys.locale”]
[debug] [ADB] Current device property ‘persist.sys.locale’: en-US
[debug] [ADB] No strings.xml for language ‘en’, getting default strings.xml
[debug] [ADB] Reading strings from converted strings.json
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“push”,"/var/folders/mr/lbh2rfw568g5v74x7g7vgx440000gn/T/com.skygiraffe.operationaldata/strings.json","/data/local/tmp"]
[debug] [AndroidBootstrap] Watching for bootstrap disconnect
[debug] [ADB] Forwarding system: 4724 to device: 4724
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“forward”,“tcp:4724”,“tcp:4724”]
[debug] [UiAutomator] Starting UiAutomator
[debug] [UiAutomator] Moving to state ‘starting’
[debug] [UiAutomator] Parsing uiautomator jar
[debug] [UiAutomator] Found jar name: ‘AppiumBootstrap.jar’
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“push”,"/usr/local/lib/node_modules/appium/node_modules/appium-android-bootstrap/bootstrap/bin/AppiumBootstrap.jar","/data/local/tmp/"]
[debug] [ADB] Attempting to kill all uiautomator processes
[debug] [ADB] Getting all processes with uiautomator
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“shell”,“ps”]
[ADB] No uiautomator process found to kill, continuing…
[debug] [UiAutomator] Starting UIAutomator
[debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“shell”,“uiautomator”,“runtest”,“AppiumBootstrap.jar”,"-c",“io.appium.android.bootstrap.Bootstrap”,"-e",“pkg”,“com.skygiraffe.operationaldata”,"-e",“disableAndroidWatchers”,false,"-e",“acceptSslCerts”,false]
[debug] [UiAutomator] Moving to state ‘online’
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Loading json…
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] json loading complete.
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Registered crash watchers.
[AndroidBootstrap] Android bootstrap socket is now connected
[debug] [ADB] Getting connected devices…
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Client connected
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“shell”,“dumpsys”,“window”]
[AndroidDriver] Screen already unlocked, doing nothing
[debug] [ADB] Device API level: 25
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“shell”,“am”,“start”,"-W","-n",“com.skygiraffe.operationaldata/com.skygiraffe.operationaldata.LoginScreenActivity”,"-S","-a",“android.intent.action.MAIN”,"-c",“android.intent.category.LAUNCHER”,"-f",“0x10200000”]
[debug] [ADB] Waiting for pkg: ‘com.skygiraffe.operationaldata’ and activity: ‘com.skygiraffe.operationaldata.LoginScreenActivity’ to be focused
[debug] [ADB] Possible activities, to be checked: com.skygiraffe.operationaldata.LoginScreenActivity, com.skygiraffe.operationaldata.com.skygiraffe.operationaldata.LoginScreenActivity
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/menypeled/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“00cfa6ed1739c2e7”,“shell”,“dumpsys”,“window”,“windows”]
[debug] [ADB] Found package: ‘com.skygiraffe.operationaldata’ and fully qualified activity name : ‘com.skygiraffe.operationaldata.LoginScreenActivity’
[Appium] New AndroidDriver session created successfully, session e3fe06f8-706a-4abd-a107-849d8f16a8a5 added to master session list
[debug] [BaseDriver] Event ‘newSessionStarted’ logged at 1497184997105 (15:43:17 GMT+0300 (IDT))
[debug] [MJSONWP] Responding to client with driver.createSession() result: {“platform”:“ANDROID”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“app”:"/Users/menypeled/Documents/workspace/Droid_Appium/APK/SkyGiraffe.apk",“newCommandTimeout”:1200,“automationName”:null,“browserName”:“android”,“platformName”:“Android”,“version”:"",“deviceName”:“Nexus 5X”,“platform”:“ANDROID”},“app”:"/Users/menypeled/Documents/workspace/Droid_Appium/APK/SkyGiraffe.apk",“newCommandTimeout”:1200,“automationName”:null,“browserName”:“android”,“platformName”:“Android”,“version”:"",“deviceName”:“00cfa6ed1739c2e7”,“deviceUDID”:“00cfa6ed1739c2e7”,“platformVersion”:“7.1.2”,“deviceScreenSize”:“1080x1920”,“deviceModel”:“Nexus 5X”,“deviceManufacturer”:“LGE”,“appPackage”:“com.skygiraffe.operationaldata”,“appWaitPackage”:“com.skygiraffe.operationaldata”,“appActivity”:“com.skygiraffe.operationaldata.LoginScreenActivity”,“appWaitActivity”:“com.skygiraffe.operationaldata.LoginScre…
[HTTP] <-- POST /wd/hub/session 200 12972 ms - 1105
[HTTP] --> GET /wd/hub/session/e3fe06f8-706a-4abd-a107-849d8f16a8a5 {}
[debug] [MJSONWP] Calling AppiumDriver.getSession() with args: [“e3fe06f8-706a-4abd-a107-849d8f16a8a5”]
[debug] [MJSONWP] Responding to client with driver.getSession() result: {“platform”:“ANDROID”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“app”:”/Users/menypeled/Documents/workspace/Droid_Appium/APK/SkyGiraffe.apk",“newCommandTimeout”:1200,“automationName”:null,“browserName”:“android”,“platformName”:“Android”,“version”:"",“deviceName”:“Nexus 5X”,“platform”:“ANDROID”},“app”:"/Users/menypeled/Documents/workspace/Droid_Appium/APK/SkyGiraffe.apk",“newCommandTimeout”:1200,“automationName”:null,“browserName”:“android”,“platformName”:“Android”,“version”:"",“deviceName”:“00cfa6ed1739c2e7”,“deviceUDID”:“00cfa6ed1739c2e7”,“platformVersion”:“7.1.2”,“deviceScreenSize”:“1080x1920”,“deviceModel”:“Nexus 5X”,“deviceManufacturer”:“LGE”,“appPackage”:“com.skygiraffe.operationaldata”,“appWaitPackage”:“com.skygiraffe.operationaldata”,“appActivity”:“com.skygiraffe.operationaldata.LoginScreenActivity”,“appWaitActivity”:"com.skygiraffe.operationaldata.LoginScre…
[HTTP] <-- GET /wd/hub/session/e3fe06f8-706a-4abd-a107-849d8f16a8a5 200 34 ms - 1105
[JsonMessageSender] Sending message [TestResultMessage ==> suite:Suite, test:Regression, class:Native.SanityAndroid, method:setupBeforeSuite, parameters:org.testng.TestRunner@1f193686;]
[JsonMessageSender] Sending message [TestMessage ==> suite:Suite, testName:Regression, passed:0, failed:0]
[BaseMessageSender] Received ACK:>ACK
[BaseMessageSender] Received ACK:>ACK
[BaseMessageSender] Received ACK:>ACK
[BaseMessageSender] Received ACK:>ACK
java.lang.NullPointerException
at Native.SanityAndroid.checkHomeScreen(SanityAndroid.java:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:510)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:211)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:585)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:816)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1124)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
at org.testng.TestRunner.privateRun(TestRunner.java:774)
at org.testng.TestRunner.run(TestRunner.java:624)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:359)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)
at org.testng.SuiteRunner.run(SuiteRunner.java:261)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1215)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
at org.testng.TestNG.run(TestNG.java:1048)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:236)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:81)

Pls post complete server logs, looks like the issues on your code which is having nullpointer

AFAIK this is the full log,
the strange thing is that the same code work fine vs. the Java-Client 4.1.2.
Seems that something has changed from 4.x to the 5.x library.
Any idea what might it be? Can you compare the driver initialization & the desired capabilities you are using cause maybe I am missing something there?

Hi,

I suspect that the desired capabilities that I am using is not compatible with the Java-client 5.x.

If someone that is using the latest appium 1.6.x server with the latest Java-Client 5-beta can share his desired capabilities code for android it will be most appreciated.