Loading component: rest :: componentInfo{Title=Tigase HTTP API component: Tigase HTTP API component, Version=1.1.0-SNAPSHOT-b63/24ade73f, Class=tigase.http.HttpMessageReceiver}
<pre>
with rather basic setup causes following exceptions:
at org.codehaus.groovy.runtime.BytecodeInterface8.objectArrayGet(BytecodeInterface8.java:360)
at tigase.http.rest.RestExtServlet.loadHandlers(RestExtServlet.groovy:52)
at tigase.http.rest.RestExtServlet$loadHandlers.callCurrent(Unknown Source)
at tigase.http.rest.RestServlet.init(RestServlet.groovy:60)
at javax.servlet.GenericServlet.init(GenericServlet.java:244)
at tigase.http.java.RequestHandler.registerServlet(RequestHandler.java:94)
at tigase.http.java.RequestHandler.<init>(RequestHandler.java:59)
at tigase.http.java.JavaStandaloneHttpServer.deploy(JavaStandaloneHttpServer.java:98)
at tigase.http.java.JavaStandaloneHttpServer.deploy(JavaStandaloneHttpServer.java:77)
at tigase.http.HttpServer.deploy(HttpServer.java:99)
at tigase.http.rest.RestModule.start(RestModule.java:112)
at tigase.http.HttpMessageReceiver.setProperties(HttpMessageReceiver.java:233)
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)
java.lang.ArrayIndexOutOfBoundsException: 0
at org.codehaus.groovy.runtime.BytecodeInterface8.objectArrayGet(BytecodeInterface8.java:360)
at tigase.http.rest.RestExtServlet.loadHandlers(RestExtServlet.groovy:52)
at tigase.http.rest.RestExtServlet$loadHandlers.callCurrent(Unknown Source)
at tigase.http.rest.RestServlet.init(RestServlet.groovy:60)
at javax.servlet.GenericServlet.init(GenericServlet.java:244)
at tigase.http.java.RequestHandler.registerServlet(RequestHandler.java:94)
at tigase.http.java.RequestHandler.<init>(RequestHandler.java:59)
at tigase.http.java.JavaStandaloneHttpServer.deploy(JavaStandaloneHttpServer.java:98)
at tigase.http.java.JavaStandaloneHttpServer.deploy(JavaStandaloneHttpServer.java:77)
at tigase.http.HttpServer.deploy(HttpServer.java:99)
at tigase.http.rest.RestModule.start(RestModule.java:112)
at tigase.http.HttpMessageReceiver.setProperties(HttpMessageReceiver.java:233)
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)
2014-09-19 10:44:01.051 [main] HttpMessageReceiver.setProperties() SEVERE: configuring module setup with parameters = [shared-user-repo = tigase.db.UserRepositoryMDImpl@2375b321, api-keys = [Ljava.lang.String;@45667d98, context-path = /setup, http-server = tigase.http.HttpServer@100c567f, active = true, componentName = rest, ]
2014-09-19 10:44:01.093 [main] SetupServlet.loadTemplates() SEVERE: loaded step 1
2014-09-19 10:44:01.114 [main] SetupServlet.loadTemplates() SEVERE: loaded step 2
2014-09-19 10:44:01.260 [main] SetupServlet.loadTemplates() SEVERE: loaded step 3
2014-09-19 10:44:01.322 [main] SetupServlet.loadTemplates() SEVERE: loaded step 4
2014-09-19 10:44:01.391 [main] SetupServlet.loadTemplates() SEVERE: loaded step 5
2014-09-19 10:44:01.443 [main] SetupServlet.loadTemplates() SEVERE: loaded step 6
2014-09-19 10:44:01.480 [main] SetupServlet.loadTemplates() SEVERE: loaded step 7
2014-09-19 10:44:01.649 [main] SetupServlet.loadTemplates() SEVERE: loaded step 8
2014-09-19 10:44:01.697 [main] SetupServlet.loadTemplates() SEVERE: loaded step 9
java.lang.RuntimeException: Resource not found
at tigase.http.setup.SetupServlet.load(SetupServlet.groovy:145)
at tigase.http.setup.SetupServlet.loadTemplates(SetupServlet.groovy:114)
at tigase.http.setup.SetupServlet.init(SetupServlet.groovy:54)
at javax.servlet.GenericServlet.init(GenericServlet.java:244)
at tigase.http.java.RequestHandler.registerServlet(RequestHandler.java:94)
at tigase.http.java.RequestHandler.<init>(RequestHandler.java:59)
at tigase.http.java.JavaStandaloneHttpServer.deploy(JavaStandaloneHttpServer.java:98)
at tigase.http.java.JavaStandaloneHttpServer.deploy(JavaStandaloneHttpServer.java:77)
at tigase.http.HttpServer.deploy(HttpServer.java:99)
at tigase.http.setup.SetupModule.start(SetupModule.java:126)
at tigase.http.HttpMessageReceiver.setProperties(HttpMessageReceiver.java:233)
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.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)
java.lang.RuntimeException: Resource not found
at tigase.http.setup.SetupServlet.load(SetupServlet.groovy:145)
at tigase.http.setup.SetupServlet.this$4$load(SetupServlet.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1085)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:909)
at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:848)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:831)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethodSafe(InvokerHelper.java:71)
at tigase.http.setup.SetupServlet$_loadTemplates_closure3.doCall(SetupServlet.groovy:126)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:909)
at groovy.lang.Closure.call(Closure.java:411)
at groovy.lang.Closure.call(Closure.java:427)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1326)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1298)
at tigase.http.setup.SetupServlet.loadTemplates(SetupServlet.groovy:124)
at tigase.http.setup.SetupServlet.init(SetupServlet.groovy:54)
at javax.servlet.GenericServlet.init(GenericServlet.java:244)
at tigase.http.java.RequestHandler.registerServlet(RequestHandler.java:94)
at tigase.http.java.RequestHandler.<init>(RequestHandler.java:59)
at tigase.http.java.JavaStandaloneHttpServer.deploy(JavaStandaloneHttpServer.java:98)
at tigase.http.java.JavaStandaloneHttpServer.deploy(JavaStandaloneHttpServer.java:77)
at tigase.http.HttpServer.deploy(HttpServer.java:99)
at tigase.http.setup.SetupModule.start(SetupModule.java:126)
at tigase.http.HttpMessageReceiver.setProperties(HttpMessageReceiver.java:233)
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)
Andrzej Wójcik (Tigase) commented 1 decade ago
Remove of unnecessary log entries and reduce level of other not important log entries
Latest nightly:
2014-09-19 10:44:00.482 [main] RequestHandler.registerServlet() SEVERE: null
java.lang.ArrayIndexOutOfBoundsException: 0
java.lang.ArrayIndexOutOfBoundsException: 0