# An unknown server-side error occurred while processing the command

**URL:** <https://discuss.appium.io/t/an-unknown-server-side-error-occurred-while-processing-the-command/2634>\
**Category:** Issues/Bugs\
**Created:** [January 30, 2015, 2:14am UTC](https://discuss.appium.io/t/an-unknown-server-side-error-occurred-while-processing-the-command/2634 "2015-01-30T02:14:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sysofadown3](https://discuss.appium.io/letter_avatar_proxy/v4/letter/s/b19c9b/32.png) [@sysofadown3](https://discuss.appium.io/u/sysofadown3)\
**Post date:** [January 30, 2015, 2:14am UTC](https://discuss.appium.io/t/an-unknown-server-side-error-occurred-while-processing-the-command/2634/1 "2015-01-30T02:14:04Z")

</div>

Hello All,

I’m not sure whats going on here, it seems whenever I find an element by Xpath this happens. Any ideas??

Thanks in advance

> Last login: Thu Jan 29 18:03:58 on ttys000  
> mobileteamosxserver:~ 2011970$ appium -U 1c8f673f --no-reset --app ~/automation/androidAPK/LAFitnessDev\_115\_ClassDetail.apk  
> info: Welcome to Appium v1.3.4 (REV c8c79a85fbd6870cd6fc3d66d038a115ebe22efe)  
> info: Appium REST http interface listener started on 0.0.0.0:4723  
> info: [debug] Non-default server args: {“app”:“/Users/2011970/automation/androidAPK/LAFitnessDev\_115\_ClassDetail.apk”,“udid”:“1c8f673f”,“noReset”:true}  
> info: Console LogLevel: debug  
> info: → POST /wd/hub/session {“desiredCapabilities”:{“platformVersion”:“4.4”,“platformName”:“Android”,“deviceName”:“S4”}}  
> info: Client User-Agent string: Apache-HttpClient/4.3.4 (java 1.5)  
> info: [debug] No appActivity desired capability or server param. Parsing from apk.  
> info: [debug] No appPackage desired capability or server param. Parsing from apk.  
> info: [debug] Using local app from command line: /Users/2011970/automation/androidAPK/LAFitnessDev\_115\_ClassDetail.apk  
> info: [debug] Creating new appium session 1734f335-d3ea-4547-8b44-19e74d62025f  
> info: Starting android appium  
> info: [debug] Getting Java version  
> info: Java version is: 1.8.0\_25  
> info: [debug] Using fast reset? false  
> info: [debug] Preparing device for session  
> info: [debug] Checking whether app is actually present  
> info: [debug] Checking whether adb is present  
> info: [debug] Using adb from /Users/2011970/Automation/AndroidSDK/platform-tools/adb  
> info: Retrieving device  
> info: [debug] Trying to find a connected android device  
> info: [debug] Getting connected devices…  
> info: [debug] executing cmd: /Users/2011970/Automation/AndroidSDK/platform-tools/adb devices  
> info: [debug] 1 device(s) connected  
> info: Found device 1c8f673f  
> info: [debug] Setting device id to 1c8f673f  
> info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)  
> info: [debug] executing cmd: /Users/2011970/Automation/AndroidSDK/platform-tools/adb -s 1c8f673f wait-for-device  
> info: [debug] executing cmd: /Users/2011970/Automation/AndroidSDK/platform-tools/adb -s 1c8f673f shell “echo ‘ready’”  
> info: [debug] Starting logcat capture  
> info: [debug] Parsing package and activity from app manifest  
> info: [debug] Checking whether aapt is present  
> info: [debug] Using aapt from /Users/2011970/Automation/AndroidSDK/build-tools/21.1.2/aapt  
> info: [debug] Extracting package and launch activity from manifest.  
> info: [debug] executing cmd: /Users/2011970/Automation/AndroidSDK/build-tools/21.1.2/aapt dump badging /Users/2011970/automation/androidAPK/LAFitnessDev\_115\_ClassDetail.apk  
> info: [debug] badging package: com.lafitness.lafitness  
> info: [debug] badging act: com.lafitness.lafitness.navigation.MainActivity  
> info: [debug] Parsed package and activity are: com.lafitness.lafitness/com.lafitness.lafitness.navigation.MainActivity  
> info: [debug] Getting device API level  
> info: [debug] executing cmd: /Users/2011970/Automation/AndroidSDK/platform-tools/adb -s 1c8f673f shell “getprop ro.build.version.sdk”  
> info: [debug] Device is at API Level 17  
> info: Device API level is: 17  
> info: [debug] executing cmd: /Users/2011970/Automation/AndroidSDK/platform-tools/adb -s 1c8f673f shell “getprop persist.sys.language”  
> info: [debug] Current device persist.sys.language: en  
> info: [debug] java -jar “/usr/local/lib/node\_modules/appium/node\_modules/appium-adb/jars/appium\_apk\_tools.jar” “stringsFromApk” “/Users/2011970/automation/androidAPK/LAFitnessDev\_115\_ClassDetail.apk” “/tmp/com.lafitness.lafitness” en  
> info: [debug] No strings.xml for language ‘en’, getting default strings.xml  
> info: [debug] java -jar “/usr/local/lib/node\_modules/appium/node\_modules/appium-adb/jars/appium\_apk\_tools.jar” “stringsFromApk” “/Users/2011970/automation/androidAPK/LAFitnessDev\_115\_ClassDetail.apk” “/tmp/com.lafitness.lafitness”  
> info: [debug] executing cmd: /Users/2011970/Automation/AndroidSDK/platform-tools/adb -s 1c8f673f push “/tmp/com.lafitness.lafitness/strings.json” /data/local/tmp  
> info: [debug] Checking whether aapt is present  
> info: [debug] Using aapt from /Users/2011970/Automation/AndroidSDK/build-tools/21.1.2/aapt  
> info: [debug] Retrieving process from manifest.  
> info: [debug] executing cmd: /Users/2011970/Automation/AndroidSDK/build-tools/21.1.2/aapt dump xmltree /Users/2011970/automation/androidAPK/LAFitnessDev\_115\_ClassDetail.apk AndroidManifest.xml  
> info: [debug] Set app process to: com.lafitness.lafitness  
> info: [debug] Not uninstalling app since server not started with --full-reset  
> info: [debug] Checking app cert for /Users/2011970/automation/androidAPK/LAFitnessDev\_115\_ClassDetail.apk.  
> info: [debug] executing cmd: java -jar /usr/local/lib/node\_modules/appium/node\_modules/appium-adb/jars/verify.jar /Users/2011970/automation/androidAPK/LAFitnessDev\_115\_ClassDetail.apk  
> info: [debug] App already signed.  
> info: [debug] Zip-aligning /Users/2011970/automation/androidAPK/LAFitnessDev\_115\_ClassDetail.apk  
> info: [debug] Checking whether zipalign is present  
> info: [debug] Using zipalign from /Users/2011970/Automation/AndroidSDK/build-tools/21.1.2/zipalign  
> info: [debug] Zip-aligning apk.  
> info: [debug] executing cmd: /Users/2011970/Automation/AndroidSDK/build-tools/21.1.2/zipalign -f 4 /Users/2011970/automation/androidAPK/LAFitnessDev\_115\_ClassDetail.apk /var/folders/jm/675p6jcj5ggg3lw81ms3dq986hrwpr/T/appium115029-1933-1pro6vt.tmp  
> info: [debug] MD5 for app is 8e50334e024f35a38c2b423cc71374b0  
> info: [debug] executing cmd: /Users/2011970/Automation/AndroidSDK/platform-tools/adb -s 1c8f673f shell “ls /data/local/tmp/8e50334e024f35a38c2b423cc71374b0.apk”  
> info: [debug] Getting install status for com.lafitness.lafitness  
> info: [debug] Getting device API level  
> info: [debug] executing cmd: /Users/2011970/Automation/AndroidSDK/platform-tools/adb -s 1c8f673f shell “getprop ro.build.version.sdk”  
> info: [debug] Device is at API Level 17  
> info: [debug] executing cmd: /Users/2011970/Automation/AndroidSDK/platform-tools/adb -s 1c8f673f shell “pm list packages -3 com.lafitness.lafitness”  
> info: [debug] App is installed  
> info: [debug] Forwarding system:4724 to device:4724  
> info: [debug] executing cmd: /Users/2011970/Automation/AndroidSDK/platform-tools/adb -s 1c8f673f forward tcp:4724 tcp:4724  
> info: [debug] Pushing appium bootstrap to device…  
> info: [debug] executing cmd: /Users/2011970/Automation/AndroidSDK/platform-tools/adb -s 1c8f673f push “/usr/local/lib/node\_modules/appium/build/android\_bootstrap/AppiumBootstrap.jar” /data/local/tmp/  
> info: [debug] Pushing settings apk to device…  
> info: [debug] executing cmd: /Users/2011970/Automation/AndroidSDK/platform-tools/adb -s 1c8f673f install “/usr/local/lib/node\_modules/appium/build/settings\_apk/settings\_apk-debug.apk”  
> info: [debug] Pushing unlock helper app to device…  
> info: [debug] executing cmd: /Users/2011970/Automation/AndroidSDK/platform-tools/adb -s 1c8f673f install “/usr/local/lib/node\_modules/appium/build/unlock\_apk/unlock\_apk-debug.apk”  
> info: Starting App  
> info: [debug] Attempting to kill all ‘uiautomator’ processes  
> info: [debug] Getting all processes with ‘uiautomator’  
> info: [debug] executing cmd: /Users/2011970/Automation/AndroidSDK/platform-tools/adb -s 1c8f673f shell “ps ‘uiautomator’”  
> info: [debug] No matching processes found  
> info: [debug] Running bootstrap  
> info: [debug] spawning: /Users/2011970/Automation/AndroidSDK/platform-tools/adb -s 1c8f673f shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap  
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION\_STATUS: current=1  
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION\_STATUS: id=UiAutomatorTestRunner  
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION\_STATUS: class=io.appium.android.bootstrap.Bootstrap  
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION\_STATUS: stream=  
> info: [debug] [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:  
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION\_STATUS: numtests=1  
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION\_STATUS: test=testRunServer  
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION\_STATUS\_CODE: 1  
> info: [debug] [BOOTSTRAP] [debug] Socket opened on port 4724  
> info: [debug] [BOOTSTRAP] [debug] Appium Socket Server Ready  
> info: [debug] [BOOTSTRAP] [debug] Loading json…  
> info: [debug] Waking up device if it’s not alive  
> info: [debug] Pushing command to appium work queue: [“wake”,{}]  
> info: [debug] [BOOTSTRAP] [debug] json loading complete.  
> info: [debug] [BOOTSTRAP] [debug] Registered crash watchers.  
> info: [debug] [BOOTSTRAP] [debug] Client connected  
> info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“wake”,“params”:{}}  
> info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION  
> info: [debug] [BOOTSTRAP] [debug] Got command action: wake  
> info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:true,“status”:0}  
> info: [debug] executing cmd: /Users/2011970/Automation/AndroidSDK/platform-tools/adb -s 1c8f673f shell “dumpsys window”  
> info: [debug] Screen already unlocked, continuing.  
> info: [debug] Pushing command to appium work queue: [“getDataDir”,{}]  
> info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“getDataDir”,“params”:{}}  
> info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION  
> info: [debug] [BOOTSTRAP] [debug] Got command action: getDataDir  
> info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:“/data/local/tmp”,“status”:0}  
> info: [debug] dataDir set to: /data/local/tmp  
> info: [debug] Pushing command to appium work queue: [“compressedLayoutHierarchy”,{“compressLayout”:false}]  
> info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“compressedLayoutHierarchy”,“params”:{“compressLayout”:false}}  
> info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION  
> info: [debug] [BOOTSTRAP] [debug] Got command action: compressedLayoutHierarchy  
> info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:false,“status”:0}  
> info: [debug] Getting device API level  
> info: [debug] executing cmd: /Users/2011970/Automation/AndroidSDK/platform-tools/adb -s 1c8f673f shell “getprop ro.build.version.sdk”  
> info: [debug] Device is at API Level 17  
> info: [debug] executing cmd: /Users/2011970/Automation/AndroidSDK/platform-tools/adb -s 1c8f673f shell “am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n com.lafitness.lafitness/com.lafitness.lafitness.navigation.MainActivity”  
> info: [debug] Waiting for pkg “com.lafitness.lafitness” and activity “com.lafitness.lafitness.navigation.MainActivity” to be focused  
> info: [debug] Getting focused package and activity  
> info: [debug] executing cmd: /Users/2011970/Automation/AndroidSDK/platform-tools/adb -s 1c8f673f shell “dumpsys window windows”  
> info: [debug] Device launched! Ready for commands  
> info: [debug] Setting command timeout to the default of 60 secs  
> info: [debug] Appium session started with sessionId 1734f335-d3ea-4547-8b44-19e74d62025f  
> info: ← POST /wd/hub/session 303 7698.307 ms - 9  
> info: → GET /wd/hub/session/1734f335-d3ea-4547-8b44-19e74d62025f {}  
> info: [debug] Responding to client with success: {“status”:0,“value”:{“platform”:“LINUX”,“browserName”:“Android”,“platformVersion”:“4.4”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“platformVersion”:“4.4”,“platformName”:“Android”,“deviceName”:“S4”},“platformName”:“Android”,“deviceName”:“S4”},“sessionId”:“1734f335-d3ea-4547-8b44-19e74d62025f”}  
> info: ← GET /wd/hub/session/1734f335-d3ea-4547-8b44-19e74d62025f 200 2.424 ms - 437 {“status”:0,“value”:{“platform”:“LINUX”,“browserName”:“Android”,“platformVersion”:“4.4”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“platformVersion”:“4.4”,“platformName”:“Android”,“deviceName”:“S4”},“platformName”:“Android”,“deviceName”:“S4”},“sessionId”:“1734f335-d3ea-4547-8b44-19e74d62025f”}  
> info: → POST /wd/hub/session/1734f335-d3ea-4547-8b44-19e74d62025f/element {“using”:“xpath”,“value”:“[//android.widget.LinearLayout](https://android.widget.LinearLayout)[1]/android.widget.FrameLayout[1]/android.view.View[1]/android.widget.LinearLayout[2]/android.widget.TextView[1]”}  
> info: [debug] Waiting up to 0ms for condition  
> info: [debug] Pushing command to appium work queue: [“find”,{“strategy”:“xpath”,“selector”:“[//android.widget.LinearLayout](https://android.widget.LinearLayout)[1]/android.widget.FrameLayout[1]/android.view.View[1]/android.widget.LinearLayout[2]/android.widget.TextView[1]”,“context”:“”,“multiple”:false}]  
> info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“xpath”,“selector”:“[//android.widget.LinearLayout](https://android.widget.LinearLayout)[1]/android.widget.FrameLayout[1]/android.view.View[1]/android.widget.LinearLayout[2]/android.widget.TextView[1]”,“context”:“”,“multiple”:false}}  
> info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION  
> info: [debug] [BOOTSTRAP] [debug] Got command action: find  
> info: [debug] [BOOTSTRAP] [debug] Finding [//android.widget.LinearLayout](https://android.widget.LinearLayout)[1]/android.widget.FrameLayout[1]/android.view.View[1]/android.widget.LinearLayout[2]/android.widget.TextView[1] using XPATH with the contextId: multiple: false  
> info: [debug] [UIAUTOMATOR STDOUT] java.io.FileNotFoundException: /data/local/tmp/local/tmp/dump.xml: open failed: ENOENT (No such file or directory)  
> info: [debug] [UIAUTOMATOR STDOUT] at libcore.io.IoBridge.open(IoBridge.java:416)  
> info: [debug] [UIAUTOMATOR STDOUT] at java.io.FileInputStream.(FileInputStream.java:78)  
> info: [debug] [UIAUTOMATOR STDOUT] at  
> info: [debug] [UIAUTOMATOR STDOUT] java.io.FileReader.(FileReader.java:42)  
> info: [debug] [UIAUTOMATOR STDOUT] at io.appium.android.bootstrap.utils.XMLHierarchy.getRawXMLHierarchy(XMLHierarchy.java:88)  
> info: [debug] [UIAUTOMATOR STDOUT] at  
> info: [debug] [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.utils.XMLHierarchy.getFormattedXMLDoc(XMLHierarchy.java:96)  
> info: [debug] [UIAUTOMATOR STDOUT] at io.appium.android.bootstrap.utils.XMLHierarchy.getClassInstancePairs(XMLHierarchy.java:39)  
> info: [debug] [UIAUTOMATOR STDOUT] at io.appium.android.bootstrap.handler.Find.getXPathSelectors(Find.java:316)  
> info: [debug] [UIAUTOMATOR STDOUT] at io.appium.android.bootstrap.handler.Find.getSelectors(Find.java:207)  
> info: [debug] [UIAUTOMATOR STDOUT] at io.appium.android.bootstrap.handler.Find.execute(Find.java:84)  
> info: [debug] [UIAUTOMATOR STDOUT] at  
> info: [debug] [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.AndroidCommandExecutor.execute(AndroidCommandExecutor.java:64)  
> info: [debug] [UIAUTOMATOR STDOUT] at io.appium.android.bootstrap.SocketServer.runCommand(SocketServer.java:168)  
> info: [debug] [UIAUTOMATOR STDOUT] at io.appium.android.bootstrap.SocketServer.handleClientData(SocketServer.java:89)  
> info: [debug] [UIAUTOMATOR STDOUT] at io.appium.android.bootstrap.SocketServer.listenForever(SocketServer.java:133)  
> info: [debug] [UIAUTOMATOR STDOUT] at  
> info: [debug] [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap.testRunServer(Bootstrap.java:16)  
> info: [debug] [UIAUTOMATOR STDOUT] at java.lang.reflect.Method.invokeNative(Native Method)  
> info: [debug] [UIAUTOMATOR STDOUT] at java.lang.reflect.Method.invoke(Method.java:511)  
> info: [debug] [UIAUTOMATOR STDOUT] at  
> info: [debug] [UIAUTOMATOR STDOUT] junit.framework.TestCase.runTest(TestCase.java:168)  
> info: [debug] [UIAUTOMATOR STDOUT] at junit.framework.TestCase.runBare(TestCase.java:134)  
> info: [debug] [UIAUTOMATOR STDOUT] at  
> info: [debug] [UIAUTOMATOR STDOUT] junit.framework.TestResult$1.protect(TestResult.java:115)  
> info: [debug] [UIAUTOMATOR STDOUT] at junit.framework.TestResult.runProtected(TestResult.java:133)  
> info: [debug] [UIAUTOMATOR STDOUT] at junit.framework.TestResult.run(TestResult.java:118)  
> info: [debug] [UIAUTOMATOR STDOUT] at  
> info: [debug] [UIAUTOMATOR STDOUT] junit.framework.TestCase.run(TestCase.java:124)  
> info: [debug] [UIAUTOMATOR STDOUT] at  
> info: [debug] [UIAUTOMATOR STDOUT] com.android.uiautomator.testrunner.UiAutomatorTestRunner.start(UiAutomatorTestRunner.java:144)  
> info: [debug] [UIAUTOMATOR STDOUT] at com.android.uiautomator.testrunner.UiAutomatorTestRunner.run(UiAutomatorTestRunner.java:87)  
> info: [debug] [UIAUTOMATOR STDOUT] at com.android.commands.uiautomator.RunTestCommand.run(RunTestCommand.java:90)  
> info: [debug] [UIAUTOMATOR STDOUT] at com.android.commands.uiautomator.Launcher.main(Launcher.java:83)  
> info: [debug] [UIAUTOMATOR STDOUT] at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)  
> info: [debug] [UIAUTOMATOR STDOUT] at  
> info: [debug] [UIAUTOMATOR STDOUT] com.android.internal.os.RuntimeInit.main(RuntimeInit.java:243)  
> info: [debug] [UIAUTOMATOR STDOUT] at dalvik.system.NativeStart.main(Native Method)  
> info: [debug] [UIAUTOMATOR STDOUT] Caused by:  
> info: [debug] [UIAUTOMATOR STDOUT] libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)  
> info: [debug] [UIAUTOMATOR STDOUT] at  
> info: [debug] [UIAUTOMATOR STDOUT] libcore.io.Posix.open(Native Method)  
> info: [debug] [UIAUTOMATOR STDOUT] at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)  
> info: [debug] [UIAUTOMATOR STDOUT] at  
> info: [debug] [UIAUTOMATOR STDOUT] libcore.io.IoBridge.open(IoBridge.java:400)  
> info: [debug] [UIAUTOMATOR STDOUT] … 28 more  
> info: [debug] [BOOTSTRAP] [debug] Command returned error:java.lang.RuntimeException: Failed to Dump Window Hierarchy  
> info: [debug] Condition unmet after 50ms. Timing out.  
> info: [debug] Responding to client with error: {“status”:13,“value”:{“message”:“An unknown server-side error occurred while processing the command.”,“origValue”:“Failed to Dump Window Hierarchy”},“sessionId”:“1734f335-d3ea-4547-8b44-19e74d62025f”}  
> info: ← POST /wd/hub/session/1734f335-d3ea-4547-8b44-19e74d62025f/element 500 52.991 ms - 200  
> info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:“Failed to Dump Window Hierarchy”,“status”:13}
