Problem with XEP-0113 Server Administration (add-user)

Added almost 6 years ago


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:, 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(

at tigase.xml.Element.setAttribute(

at tigase.server.Command.createCommandEl(

at tigase.server.Command.createIqCommand(

at tigase.server.Iq.commandResult(

at tigase.server.script.Script.runCommand(

at tigase.server.BasicComponent.processScriptCommand(

at tigase.server.AbstractMessageReceiver$

Do you have any idea?


Replies (4)

Added by Wojciech Kapcia TigaseTeam almost 6 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 almost 6 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:, ext: groovy, descr: Add user

  • yes, I use admin account, i put this user to 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?


Added by Wojciech Kapcia TigaseTeam almost 6 years ago

please try setting "id" attribute.

Added by NW NE almost 6 years ago


that, solved the problam. Thanks! I just left id setting for jaxmpp and I didn't realize missing id.