Project

General

Profile

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/tclmt.sh -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(NullObject.java:77)

at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)

at org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:32)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)

at Script1.run(Script1.groovy:52)

at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:315)

at org.codehaus.groovy.jsr223.GroovyCompiledScript.eval(GroovyCompiledScript.java:41)

at tigase.tclmt.Script.execute(Script.java:94)

at tigase.tclmt.CommandManager.executeScript(CommandManager.java:72)

at tigase.tclmt.Tclmt.execute(Tclmt.java:178)

at tigase.tclmt.Tclmt.main(Tclmt.java:226)

java.net.SocketException: 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
init.properties (548 Bytes) init.properties 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/tclmt.sh -u admin@tigase2 -p tigase remote pubsub create-node test1 admin@tigase2 leaf

    (1-1/1)