错误:uncaughtException:无法读取属性'套接字'来自Appium for Android模拟器的null

时间:2015-01-30 01:59:36

标签: android cordova extjs appium

在Andriod模拟器中启动应用程序期间,我在Appium控制台(主要)中遇到以下错误。该应用程序是基于sencha / cordova的应用程序,但我不认为这是由于这一点。

错误:uncaughtException:无法读取属性'套接字'的null date =星期四2015年1月29日17:53:06 GMT-0800(太平洋标准时间),pid = 4256,uid = null,gid = null,cwd = C :\ Appium \ Appium \ node_modules \ appium,execPath = C:\ Appium \ Appium \ node.exe,version = v0.10.26,argv = [C:\ Appium \ Appium \ node.exe,C:\ Appium \ Appium \ node_modules \ appium \ lib \ server \ main.js, - address,127.0.0.1, - port,4723, - app,C:\ mobile_apps \ Mobile-release.apk, - avd,Table11, - pre -launch, - platform-name,Android, - platform-version,19, - automation-name,Appium, - log-no-color],rss = 50974720,heapTotal = 37021696,heapUsed = 22398760,loadavg = [0,0,0],正常运行时间= 203658.1265101,trace = [column = 25,file = C:\ Appium \ Appium \ node_modules \ appium \ lib \ devices \ android \ uiautomator.js,function =,line = 193,method = null,native = false,column = null,file = null,function = Array.forEach,line = null,method = forEach,native = true,column = 11,file = C:\ Appium \ Appium \ node_modules \ appium \ node_modules \ underscore \ underscore.js,function = Function。 .each。 .forEach,line = 79,method = .each。 .forEach,native = false,column = 5,file = C:\ Appium \ Appium \ node_modules \ appium \ lib \ devices \ android \ uiautomator.js,function = UiAutomator.handleBootstrapOutput,line = 183,method = handleBootstrapOutput,native = false,column = 8,file = C:\ Appium \ Appium \ node_modules \ appium \ lib \ devices \ android \ uiautomator.js, function = UiAutomator.outputStreamHandler,line = 172,method = outputStreamHandler,native = false,column = 17,file = events.js,function = Socket.EventEmitter.emit,line = 95,method = EventEmitter.emit,native = false, column = 14,file = _stream_readable.js,function =,line = 746,method = null,native = false,column = 17,file = events.js,function = Socket.EventEmitter.emit,line = 92,method = EventEmitter .emit,native = false,column = 10,file = _stream_readable.js,function = emitReadable_,line = 408,method = null,native = false,column = 5,file = _stream_readable.js,function = emitReadable,line = 404 ,method = null,native = false,column = 9,file = _stream_readable.js,function = readableAddChunk,l ine = 165,method = null,native = false],stack = [TypeError:无法读取null的属性'套接字',为null。 (C:\ Appium \ Appium \ node_modules \ appium \ lib \ devices \ android \ uiautomator.js:193:25),在Array.forEach(native),在Function。 .each。 .forEach (C:\ Appium \ Appium \ node_modules \ appium \ node_modules \ underscore \ underscore.js:79:11),位于UiAutomator.handleBootstrapOutput(C:\ Appium \ Appium \ node_modules \ appium \ lib \ devices \ android \ uiautomator.js) :183:5),在UiAutomator.outputStreamHandler(C:\ Appium \ Appium \ node_modules \ appium \ lib \ devices \ android \ uiautomator.js:172:8),在Socket.EventEmitter.emit(events.js:95: 17),在Socket。 (_stream_readable.js:746:14),在Socket.EventEmitter.emit(events.js:92:17),emitReadable_(_ stream_readable.js:408:10),emitReadable(_stream_readable.js:404:5),在readableAddChunk(_stream_readable.js:165:9)]

1 个答案:

答案 0 :(得分:5)

我有同样的问题。在覆盖现有会话之后重新启动appium服务器对我来说很有用。