Create Node Script is failing with java.lang.NullPointerException

Abhinav Gupta
Added over 3 years ago

The Error is

tigase2@tigase2:~/Downloads/tclmt-1.0.0-SNAPSHOT$ sudo sh ./bin/ -u admin@tigase2 -p tigase remoteocalhost create-node test1 admin@tigase2 leaf

Oct 29, 2015 6:13:44 PM tigase.xml.db.XMLDB setupNewDB

INFO: Create empty DB.

awaiting response...

java.lang.NullPointerException: Cannot invoke method getType() on null object

at org.codehaus.groovy.runtime.NullObject.invokeMethod(


at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(


at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(




at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(

at org.codehaus.groovy.jsr223.GroovyCompiledScript.eval(

at tigase.tclmt.Script.execute(

at tigase.tclmt.CommandManager.executeScript(

at tigase.tclmt.Tclmt.execute(

at tigase.tclmt.Tclmt.main( Socket is closed

Please help guys.

Using tigase-server-7.0.2-b3821 with tclmt client tclmt-1.0.0-SNAPSHOT

Attaching tigase log,console log and init properties file.

tigase-console.log (14 KB) tigase-console.log Tigase Console Log
tigase.log.0 (3.75 MB) tigase.log.0 Tigase Log (548 Bytes) Properties File

Replies (1)

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam over 3 years ago

This was caused by the fact that TCLMT did not got response from server from request to execute create-node adhoc command on component named localhost.

You do not have configured component with name localhost*. Most likely you wanted to create pubsub node which is handled by *pubsub component, so you would need to use following command:

sudo sh ./bin/ -u admin@tigase2 -p tigase remote pubsub create-node test1 admin@tigase2 leaf