Projects tigase _server server-core Issues #507
[example] Tigase Scripting Guide (Admin UI) (#507)
Eric Dziewa opened 10 years ago
Due Date
2015-09-29
groovy.lang.MissingMethodException: No signature of method: static tigase.server.Packet.commandResultForm() is applicable for argument types: (tigase.server.Iq) values: [from=http@testdomain2.xmpp-test.net/326993e5-b249-4131-932e-9bfdfc797d60, to=null, DATA=<iq id="31f741a5-d9c7-4ed8-ad6b-b7e060cb4033" type="set" to="sess-man@testdomain.xmpp-test.net" xmlns="jabber:client" from="admin@testdomain.xmpp-test.net"><command xmlns="http://jabber.org/protocol/commands" node="groovy-example"/></iq>, SIZE=231, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=set]
javax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method: static tigase.server.Packet.commandResultForm() is applicable for argument types: (tigase.server.Iq) values: [from=http@testdomain2.xmpp-test.net/326993e5-b249-4131-932e-9bfdfc797d60, to=null, DATA=<iq id="31f741a5-d9c7-4ed8-ad6b-b7e060cb4033" type="set" to="sess-man@testdomain.xmpp-test.net" xmlns="jabber:client" from="admin@testdomain.xmpp-test.net"><command xmlns="http://jabber.org/protocol/commands" node="groovy-example"/></iq>, SIZE=231, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=set]
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:347)
org.codehaus.groovy.jsr223.GroovyCompiledScript.eval(GroovyCompiledScript.java:41)
tigase.server.script.Script.runCommand(Script.java:159)
tigase.server.BasicComponent.processScriptCommand(BasicComponent.java:956)
tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1420)
Daniel Wisnewski commented 10 years ago

Example Sctipt shows in Other menu, when run Script Execution Error occurs

avax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method: static tigase.server.Packet.commandResultForm() is applicable for argument types: (tigase.server.Iq) values: [from=http@tpub.xmpp-test.net/f62a1b56-c320-4ad2-972e-b184d0783b5e, to=null, DATA=, SIZE=225, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=set]

Perhaps we should remove listing all available scripts in Other and move them to the Scripts Menu?

Andrzej Wójcik (Tigase) commented 10 years ago

Fixed issue and moved command to new Examples group as I think it will be better name for this kind of scripts

Daniel Wisnewski commented 10 years ago

Lets change the heading to Example Scripts to keep things clear with the menu output, otherwise this script works.

Andrzej Wójcik (Tigase) commented 10 years ago

Changed group name

Daniel Wisnewski commented 10 years ago

Looks great! Closing Issue.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
RedmineID
3123
Version
tigase-server-7.1.0
Spent time
6h
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#507
Please wait...
Page is in error, reload to recover