Projects tigase _server tigase-pubsub Issues #33
Admin PubSub scripts are not loading correctly (#33)
Artur Hefczyc opened 1 decade ago
Due Date
2014-10-05

Here are exceptions from Tigase logs at startup time.

2014-10-02 12:31:35.186 [main]             BasicComponent.loadScripts()       WARNING:  Can't load the admin script file: scripts/admin/PublishItem.groovy
javax.script.ScriptException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script25.groovy: 43: unable to resolve class tigase.pubsub.modules.PublishItemModule.ItemPublishedHandler
 @ line 43, column 1.
   import tigase.pubsub.modules.PublishItemModule.ItemPublishedHandler
   ^

Script25.groovy: 151: unable to resolve class ItemPublishedHandler.ItemPublishedEvent 
 @ line 151, column 5.
   				new ItemPublishedHandler.ItemPublishedEvent(packet.getStanzaTo().getBareJID(), node, itemsToSend));
       ^

2 errors

	at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.compile(GroovyScriptEngineImpl.java:182)
	at tigase.server.script.Script.init(Script.java:139)
	at tigase.server.script.AddScriptCommand.addAdminScript(AddScriptCommand.java:83)
	at tigase.server.BasicComponent.loadScripts(BasicComponent.java:1238)
	at tigase.server.BasicComponent.setProperties(BasicComponent.java:969)
	at tigase.server.AbstractMessageReceiver.setProperties(AbstractMessageReceiver.java:1028)
	at tigase.component2.AbstractComponent.setProperties(AbstractComponent.java:292)
	at tigase.pubsub.PubSubComponent.setProperties(PubSubComponent.java:642)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:580)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:183)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addComponent(MessageRouter.java:108)
	at tigase.server.MessageRouter.addRouter(MessageRouter.java:145)
	at tigase.server.MessageRouter.setProperties(MessageRouter.java:807)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:580)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:183)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
	at tigase.server.MessageRouter.setConfig(MessageRouter.java:700)
	at tigase.server.XMPPServer.start(XMPPServer.java:142)
	at tigase.server.XMPPServer.main(XMPPServer.java:112)
Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script25.groovy: 43: unable to resolve class tigase.pubsub.modules.PublishItemModule.ItemPublishedHandler
 @ line 43, column 1.
   import tigase.pubsub.modules.PublishItemModule.ItemPublishedHandler
   ^

Script25.groovy: 151: unable to resolve class ItemPublishedHandler.ItemPublishedEvent 
 @ line 151, column 5.
   				new ItemPublishedHandler.ItemPublishedEvent(packet.getStanzaTo().getBareJID(), node, itemsToSend));
       ^

2 errors

	at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:309)
	at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:927)
	at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:575)
	at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:524)
	at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:279)
	at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:258)
	at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:244)
	at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:202)
	at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.getScriptClass(GroovyScriptEngineImpl.java:368)
	at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.compile(GroovyScriptEngineImpl.java:174)
	at tigase.server.script.Script.init(Script.java:139)
	at tigase.server.script.AddScriptCommand.addAdminScript(AddScriptCommand.java:83)
	at tigase.server.BasicComponent.loadScripts(BasicComponent.java:1238)
	at tigase.server.BasicComponent.setProperties(BasicComponent.java:969)
	at tigase.server.AbstractMessageReceiver.setProperties(AbstractMessageReceiver.java:1028)
	at tigase.component2.AbstractComponent.setProperties(AbstractComponent.java:292)
	at tigase.pubsub.PubSubComponent.setProperties(PubSubComponent.java:642)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:580)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:183)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addComponent(MessageRouter.java:108)
	at tigase.server.MessageRouter.addRouter(MessageRouter.java:145)
	at tigase.server.MessageRouter.setProperties(MessageRouter.java:807)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:580)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:183)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
	at tigase.server.MessageRouter.setConfig(MessageRouter.java:700)
	at tigase.server.XMPPServer.start(XMPPServer.java:142)
	at tigase.server.XMPPServer.main(XMPPServer.java:112)
wojciech.kapcia@tigase.net commented 1 decade ago

I've checked latest nightly (http://build.tigase.org/nightlies/dists/2014-10-17/tigase-server-7.0.0-SNAPSHOT-b3696-dist-max.tar.gz) with the PubSub version:

Loading component: pubsub :: componentInfo{Title=Tigase PubSub, Version=3.1.0-SNAPSHOT-b439/4be63aa4, Class=tigase.pubsub.PubSubComponent}

and there is similar issue:

2014-10-17 10:40:28.271 [main]             BasicComponent.loadScripts()       WARNING:  Can't load the admin script file: scripts/admin/SubscribeNode.groovy
javax.script.ScriptException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script29.groovy: 42: unable to resolve class tigase.pubsub.modules.SubscribeNodeModule.NodeSubscribedHandler
 @ line 42, column 1.
   import tigase.pubsub.modules.SubscribeNodeModule.NodeSubscribedHandler;
   ^

Script29.groovy: 112: unable to resolve class NodeSubscribedHandler.NodeSubscribedEvent 
 @ line 112, column 6.
   					new NodeSubscribedHandler.NodeSubscribedEvent(packet, node, jid, subid, Subscription.subscribed, affiliation));
        ^

2 errors

	at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.compile(GroovyScriptEngineImpl.java:182)
	at tigase.server.script.Script.init(Script.java:139)
	at tigase.server.script.AddScriptCommand.addAdminScript(AddScriptCommand.java:83)
	at tigase.server.BasicComponent.loadScripts(BasicComponent.java:1238)
	at tigase.server.BasicComponent.setProperties(BasicComponent.java:969)
	at tigase.server.AbstractMessageReceiver.setProperties(AbstractMessageReceiver.java:1028)
	at tigase.component2.AbstractComponent.setProperties(AbstractComponent.java:292)
	at tigase.pubsub.PubSubComponent.setProperties(PubSubComponent.java:642)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:580)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:183)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addComponent(MessageRouter.java:108)
	at tigase.server.MessageRouter.addRouter(MessageRouter.java:145)
	at tigase.server.MessageRouter.setProperties(MessageRouter.java:807)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:580)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:183)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
	at tigase.server.MessageRouter.setConfig(MessageRouter.java:700)
	at tigase.server.XMPPServer.start(XMPPServer.java:142)
	at tigase.server.XMPPServer.main(XMPPServer.java:112)
Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script29.groovy: 42: unable to resolve class tigase.pubsub.modules.SubscribeNodeModule.NodeSubscribedHandler
 @ line 42, column 1.
   import tigase.pubsub.modules.SubscribeNodeModule.NodeSubscribedHandler;
   ^

Script29.groovy: 112: unable to resolve class NodeSubscribedHandler.NodeSubscribedEvent 
 @ line 112, column 6.
   					new NodeSubscribedHandler.NodeSubscribedEvent(packet, node, jid, subid, Subscription.subscribed, affiliation));
        ^

2 errors

	at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:309)
	at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:927)
	at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:575)
	at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:524)
	at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:279)
	at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:258)
	at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:244)
	at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:202)
	at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.getScriptClass(GroovyScriptEngineImpl.java:368)
	at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.compile(GroovyScriptEngineImpl.java:174)
	at tigase.server.script.Script.init(Script.java:139)
	at tigase.server.script.AddScriptCommand.addAdminScript(AddScriptCommand.java:83)
	at tigase.server.BasicComponent.loadScripts(BasicComponent.java:1238)
	at tigase.server.BasicComponent.setProperties(BasicComponent.java:969)
	at tigase.server.AbstractMessageReceiver.setProperties(AbstractMessageReceiver.java:1028)
	at tigase.component2.AbstractComponent.setProperties(AbstractComponent.java:292)
	at tigase.pubsub.PubSubComponent.setProperties(PubSubComponent.java:642)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:580)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:183)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addComponent(MessageRouter.java:108)
	at tigase.server.MessageRouter.addRouter(MessageRouter.java:145)
	at tigase.server.MessageRouter.setProperties(MessageRouter.java:807)
	at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:580)
	at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:183)
	at tigase.conf.Configurator.componentAdded(Configurator.java:50)
	at tigase.conf.Configurator.componentAdded(Configurator.java:33)
	at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
	at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
	at tigase.server.MessageRouter.setConfig(MessageRouter.java:700)
	at tigase.server.XMPPServer.start(XMPPServer.java:142)
	at tigase.server.XMPPServer.main(XMPPServer.java:112)
Bartosz MaƂkowski commented 10 years ago

This problem is solved since 2014-10-17.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
RedmineID
2320
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/tigase-pubsub#33
Please wait...
Page is in error, reload to recover