Problem with XEP-0113 Server Administration (add-user)
i just playing around tigase in a project where we need to add user to tigase. We would like to use Server Administration commands. Add-user works fine if I send it from PSI+, but got weird warning on tigase side, and no any other activity follows it.
Warning form tigase log:
2013-07-30 23:42:50 BasicComponent.processScriptCommand() WARNING: Unknown admin command processing exception: email@example.com, to=null, DATA=, SIZE=240, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=set
java.lang.NullPointerException: Neither attribute key or value can be set to null.
at tigase.xml.Element$XMLIdentityHashMap.put(Element.java) at tigase.xml.Element.setAttribute(Element.java) at tigase.server.Command.createCommandEl(Command.java) at tigase.server.Command.createIqCommand(Command.java) at tigase.server.Iq.commandResult(Iq.java) at tigase.server.script.Script.runCommand(Script.java) at tigase.server.BasicComponent.processScriptCommand(BasicComponent.java) at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java)
Do you have any idea?
Added by Wojciech Kapcia over 5 years ago
which Tigase version do you use?
do you have groovy libraries as well as admin-ad hoc scripts in place?
were the scripts loaded correctly?
do you use admin account?
you have stated that it works fine in PSI+ thus this implies that the error occurs when you try to execute script differently? how exactly?
Added by NW NE over 5 years ago
i use Tigase XMPP Server 5.2.0 Beta1
tigase/jars has groovy-all-2.1.0.jar, tigase/admin/scripts has AddUser.groovy, AddUserTracker.groovy. tigase/admin/sess-man is empty if it matters
here are the lines from log about script loading:
2013-07-30 23:26:53 Script.init() INFO: Initialized script command, lang: Groovy, ext: groovy
2013-07-30 23:26:53 BasicComponent.loadScripts() CONFIG: sess-man: Loaded admin command from file: scripts/admin/AddUser.groovy, id: http://jabber.org/protocol/admin#add-user, ext: groovy, descr: Add user
- yes, I use admin account, i put this user to init.properties into --admins line
I send appropriate iq stanza throw jaxmpp client library to tigase.
And yes, via PSI+ everything works fine.
What could be wrong?