Error running UI Automation from command line - ios
I think this is a first - I'm getting an error and the exception constant that I'm getting back returns nothing when I search for it on Google.
Basically I'm trying to run UI Automation on my iOS app from the CLI and am getting the following error message:
2013-02-22 13:12:17.820 ScriptAgent[16626:2e07] +[UIAXElement initialize]: UIAutomation never received kAXAccessibilityLoaded. Waited 20.02 seconds.
2013-02-22 13:12:17.826 ScriptAgent[16626:2e07] Unexpected error in -[UIAXElement_0xad343c initialize], /SourceCache/UIAutomation_Sim/UIAutomation-271/Framework/UIAXElement.m line 165, kAXErrorServerNotFound
2013-02-22 13:12:17.828 ScriptAgent[16626:2e07] Terminating app due to uncaught exception 'kUIAExeceptionAccessibilityError', reason: 'Unexpected error in -[UIAXElement_0xad343c initialize], /SourceCache/UIAutomation_Sim/UIAutomation-271/Framework/UIAXElement.m line 165, kAXErrorServerNotFound'
First throw call stack:
(0x491012 0x1b78e7e 0x490deb 0xa8a55b 0x1b797cf 0x1b80a0d 0x1b77aeb 0x1b77e22 0x1b8a0e1 0xaa2605 0xa847 0x5d8d 0x866d 0x2925)
libc++abi.dylib: terminate called throwing an exception
2013-02-22 13:12:18.264 instruments[16585:2227] Automation Instrument ran into an exception while trying to run the script. UIAScriptAgentSignaledException
2013-02-22 19:12:18 +0000 Fail: An error occurred while trying to run the script.
Instruments Trace Complete (Duration : 41.326542s; Output : /Users/newmanp/Work/iOS/CMAiPad/CMA.Mobile/UIScripts/instrumentscli3.trace)
I search on kAXAccessibilityLoaded or kAXErrorServerNotFound and get no hits at all. Here's what my command line call looks like:
instruments -t ~/Work/iOS/Platforms/iPhoneOS.platform//Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate /Users/newmanp/Library/Application\ Support/iPhone\ Simulator/6.0/Applications/B60B9BD7-357D-49AA-9E6F-986929C5D151/CMA.app -e UIASCRIPT ./cmaAutomationTests.js -e UIARESULTSPATH "."
Any suggestions of what I might be doing wrong greatly appreciated.
We saw this error when "Enable UI Automation" wasn't turned on in the "Developer" section of the "Settings" app. Turning on the setting resolved the error.
I had something similar, try
sudo rm /tmp/instruments_sock
You can see it here https://github.com/appium/appium/issues/172
My UIAScriptAgentSignaledException is resolved by enabling the 'Enable UI Automation' option in iPhone/Settings/Developer/UI Automation section.
Related
groovy.sql.Sql.commit info message in catalina.sh
Sometimes I have this message in catalina.sh catalina.2022-07-14.log:14-Jul-2022 09:04:00.805 INFO [Thread-33] groovy.sql.Sql.commit Commit operation not supported when using datasets unless using withTransaction or cacheConnection - attempt to commit ignored There is nothing in the exception log or other logs. What could this message mean?
Failed to start the VM error when starting a Dataflow SQL job
Getting the following error when I try to launch a Dataflow SQL job: Failed to start the VM, launcher-____, used for launching because of status code: INVALID_ARGUMENT, reason: Error: Message: Invalid value for field 'resource.networkInterfaces[0].network': 'global/networks/default'. The referenced network resource cannot be found. HTTP Code: 400. This issue just started today.
Adding the default network solved the issue.
How to view the top of long stack trace in rails server error
After running bundle exec rails s I get a huge error when trying to access the app via http://localhost:3000/ To debug this I need to see the top of the error trace, however the error trace is nearly 5000 items long and gets cut off at around line 3500. How can I view the full error so I can start to debug ? 4701 /Users/paul/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/puma-3.12.0/lib/puma/server.rb 4702 /Users/paul/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/puma-3.12.0/lib/puma/runner.rb 4703 /Users/paul/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/puma-3.12.0/lib/puma/cluster.rb 4704 /Users/paul/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/puma-3.12.0/lib/puma/single.rb 4705 /Users/paul/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/puma-3.12.0/lib/puma/launcher.rb 4706 /Users/paul/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/puma-3.12.0/lib/puma/plugin/tmp_restart.rb 4707 /Users/paul/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/faraday-0.12.1/lib/faraday/adapter/net_http_persistent.rb 4708 /Users/paul/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.1/lib/active_support/backtrace_cleaner.rb 4709 /Users/paul/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.1/lib/rails/backtrace_cleaner.rb 4710 /Users/paul/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/web-console-3.5.1/lib/web_console/whiny_request.rb [NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html [IMPORTANT] Don't forget to include the Crash Report log file under DiagnosticReports directory in bug reports.
You can redirect the output of the script to a file and look through that for your errors. bundle exec rails s > my_file This will put the output in the file "my_file". If you want to include the errors (stderr output) you also need to redirect that, so something like this: bundle exec rails s > my_file 2>&1
Error 401 on AdminApp deployment to Websphere 9 Docker
While running jython py script with adminApp.install to install on Docker WAS, I'm getting the Error: WASX7017E: Exception received while running file "deployWebSphere_with_install_standAlone.py"; exception information: com.ibm.websphere.management.filetransfer.client.TransferFailedException: 401 Unauthorized (for: C:\Users\devopsjava\AppData\Local\Temp\app5674632847255103189.ear). I tried give full control on this path, I tried set custom property:com.ibm.websphere.management.filetransfer.serverBasicAuth=true (https://www-01.ibm.com/support/docview.wss?uid=swg1PK71800) My code: options = ['-node ',node,'-cell ',cell,"-server ",server] print AdminApp.install(packageFile, options) I always get : WASX7017E: Exception received while running file "deployWebSphere_with_install_standAlone.py"; exception information: com.ibm.websphere.management.filetransfer.client.TransferFailedException: 401 Unauthorized (for: C:\Users\devopsjava\AppData\Local\Temp\app5674632847255103189.ear). Maybe, I need to set some more property, or there is problem with security between docker domain and the outside world ?
send_message from mod_admin_extra not working
I want to send message to client from the server using send_message in mod_admin_extra I tried the following command: ejabberdctl send_message "chat" user1#ip user2#ip /"hello/" /"wow/" And I am getting the following error Problem 'error undef' occurred executing the command. Stacktrace: [{jid,from_string,[<<"user1#<ip>">>],[]}, {mod_admin_extra,send_packet_all_resources,3, [{file,"src/mod_admin_extra.erl"},{line,1367}]}, {ejabberd_ctl,call_command,3, [{file,"src/ejabberd_ctl.erl"},{line,293}]}, {ejabberd_ctl,try_call_command,3, [{file,"src/ejabberd_ctl.erl"},{line,269}]}, {ejabberd_ctl,process2,3, [{file,"src/ejabberd_ctl.erl"},{line,218}]}, {ejabberd_ctl,process,1, [{file,"src/ejabberd_ctl.erl"},{line,203}]}, {rpc,'-handle_call_call/6-fun-0-',5, [{file,"rpc.erl"},{line,205}]}] guys any solution for this problem will be helpful for me. Thanks alot EDIT 1 Problem 'error badarg' occurred executing the command. Stacktrace: [{ets,lookup_element,[jlib,string_to_jid_pattern,2],[]}, {jid,from_string,1,[{file,"src/jid.erl"},{line,97}]}, {mod_admin_extra,send_packet_all_resources,3, [{file,"src/mod_admin_extra.erl"},{line,1367}]}, {ejabberd_ctl,call_command,3, [{file,"src/ejabberd_ctl.erl"},{line,293}]}, {ejabberd_ctl,try_call_command,3, [{file,"src/ejabberd_ctl.erl"},{line,269}]}, {ejabberd_ctl,process2,3, [{file,"src/ejabberd_ctl.erl"},{line,218}]}, {ejabberd_ctl,process,1, [{file,"src/ejabberd_ctl.erl"},{line,203}]}, {rpc,'-handle_call_call/6-fun-0-',5, [{file,"rpc.erl"},{line,205}]}]