Project

General

Profile

BroadcastToOnline.groovy only works when clustered strategy is enabled

Steffen Larsen
Added almost 5 years ago

BroadcastToOnline.groovy only works when clustered strategy is enabled, and set in init.properties like so:

--cluster-mode=true

Otherwise it breaks with that it can't find the clusterStrategy:

@groovy.lang.MissingPropertyException: No such property: clusterStrategy for class: tigase.admin.Script26

javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: clusterStrategy for class: tigase.admin.Script26

org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:349)

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

tigase.server.script.Script.runCommand(Script.java:182)

tigase.server.BasicComponent.processScriptCommand(BasicComponent.java:1051)

tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1464)

@

which is prob. because clusterStrategy is not injected in the groovy script from the Cluster module:

def cluster = (ClusteringStrategyIfc)clusterStrategy

The version that I am using is tigase 5.2-rc2. (will test for 5.2.0 stable later)


Replies (2)

Added by Wojciech Kapcia TigaseTeam almost 5 years ago

Fixed already :)

Added by Steffen Larsen almost 5 years ago

Super, i'll upgrade.

/Steffen

    (1-2/2)