send_message from mod_admin_extra not working - erlang
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}]}]
Related
Error response from daemon: network wikinet not found
I am trying to set up HTTPS for wikijs and I am following this article. Unfortunately, I am stuck at "docker start wiki" command as I get following error message: Error response from daemon: network wikinet not found Error: failed to start containers: wiki Any help is appreciated! Thank you in advance
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.
Using ant task in mobilefirst error in wladm cmd
I followed this tutorial: http://www.ibm.com/support/knowledgecenter/SSHS8R_7.1.0/com.ibm.worklight.appadmin.doc/admin/r_invoking_the_wladm_program.html I'm trying to enter a command in cmd and tried this: wladm --url=http://IP:9080 --user=demo --passwordfile=PATH\wladm.config --secure=false show info I'm getting this error: Error accessing http://IP:9080/userAndConfigInfo?locale=en_US: HTTP/1.1 404 Not Found Now when I enter another command: wladm --url=http://IP:9080 --user=demo --passwordfile=PATH\wladm.config --secure=false list adapters RuntimeName I'm getting this error: Error accessing http://sv591527.ph.sunlife:9080/management-apis/1.0/runtimes/Sun lifeTestApp/adapters?pageSize=1000000000&locale=en_US: HTTP/1.1 404 Not Found Anyone have an idea what I'm missing?
The URL should contain the context root of the MobileFirst web application for administration services, that is, should be something like http://IP:9080/wladmin or http://IP:9080/worklightadmin. For more details, please consult the wladm usage documentation http://www.ibm.com/support/knowledgecenter/SSHS8R_7.1.0/com.ibm.worklight.appadmin.doc/admin/r_invoking_the_wladm_program.html.
Aptana "Content Assist" did not complete normally
I have a problem with the Aptana Studio 3. It is a fresh installation. I have imported a Ruby on Rails - project that a edited with a texteditor before. I want to use Aptana, for a more comfortable development but the Content Assist fails. If I try to use the Content Assist it throws the following exception and write it to the Console: [2013-03-08 16:34:40] An error occurred while processing the invoke block for the command ERb Content Assist in C:\Users\Chris\Aptana Rubles\rails.ruble\commands\content_assist.rb: (NoMethodError) undefined method `getInstance' for Java::ComAptanaIndexCore::IndexManager:Class org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `getInstance' for Java::ComAptanaIndexCore::IndexManager:Class at Rails::ContentAssistant.index_manager(C:/Users/Chris/Aptana Rubles/rails.ruble/lib/content_assistant.rb:87) at Rails::ContentAssistant.gem_indices(C:/Users/Chris/Aptana Rubles/rails.ruble/lib/content_assistant.rb:79) at org.jruby.RubyProc.call(org/jruby/RubyProc.java:274) at org.jruby.RubyProc.call(org/jruby/RubyProc.java:229) at Java::JavaUtil::Collection.each(C:/Users/Chris/AppData/Local/Aptana Studio 3/plugins/org.jruby_1.6.4.1331328108/lib/ruby/site_ruby/shared/builtin/java/java.util.rb:7) at org.jruby.RubyEnumerable.collect(org/jruby/RubyEnumerable.java:706) at Rails::ContentAssistant.gem_indices(C:/Users/Chris/Aptana Rubles/rails.ruble/lib/content_assistant.rb:79) at Rails::ContentAssistant.gem_and_project_indices(C:/Users/Chris/Aptana Rubles/rails.ruble/lib/content_assistant.rb:74) at Rails::ContentAssistant.assist(C:/Users/Chris/Aptana Rubles/rails.ruble/lib/content_assistant.rb:31) at #<Class:0x101f95cf6>.define_content_assist(C:\Users\Chris\Aptana Rubles\rails.ruble\commands\content_assist.rb:7) at org.jruby.RubyProc.call(org/jruby/RubyProc.java:274) at org.jruby.RubyProc.call(org/jruby/RubyProc.java:233) The Aptana Log File contains this message: !ENTRY org.eclipse.ui 4 4 2013-03-08 16:34:40.465 !MESSAGE "Content Assist" did not complete normally. Please see the log for more information. !ENTRY org.eclipse.ui 4 0 2013-03-08 16:34:40.465 !MESSAGE (Errno::EINVAL) =:: !STACK 0 org.jruby.exceptions.RaiseException: (Errno::EINVAL) =:: at org.jruby.RubyHash.replace(org/jruby/RubyHash.java:1623) I don't know how to handle this error. Do I have to install anything else to use the Content Assist with Ruby on Rails?
I found a solution at https://jira.appcelerator.org/browse/APSTUD-2718 As a workaround: 1) Commands > Rails Bundle > Edit this Bundle will grab a copy of the new code This removed the error messages for me.
I have found this link, that describes my problem as "Unresolved" (reported in 12/Sep/12): https://jira.appcelerator.org/browse/APSTUD-7406 But this is "Aptana Studio 3.2.2" and I have got Version 3.3.3, I can't believe that this problem isn't solved. Anybody else using Aptana knowing this problem?
Error running UI Automation from command line
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.