Project

General

Profile

MissingPropertyException

Mohammed Azhar
Added almost 3 years ago

Hi,

I am getting the following exception while running the latest tigase server

@ java_util_logging_Logger$log.call() SEVERE: Exception loading handler from script = /home/ec2-user/tigase-server-7.0.4-b3844/scripts/rest/stream/Stream.groovy

groovy.lang.MissingPropertyException: No such property: description for class: rest.stream.Stream

    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)

    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.setGroovyObjectProperty(ScriptBytecodeAdapter.java:530)

    at rest.stream.Stream.<init>(Stream.groovy:43)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

    at java.lang.reflect.Constructor.newInstance(Constructor.java:422)

    at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)

    at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:71)

    at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1536)

    at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1404)

    at org.codehaus.groovy.runtime.InvokerHelper.invokeConstructorOf(InvokerHelper.java:879)

    at org.codehaus.groovy.runtime.DefaultGroovyMethods.newInstance(DefaultGroovyMethods.java:11892)

    at org.codehaus.groovy.runtime.dgm$369.invoke(Unknown Source)

    at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrapNoCoerce.invoke(StaticMetaMethodSite.java:148)

    at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.call(StaticMetaMethodSite.java:88)

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

    at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.call(StaticMetaMethodSite.java:93)

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

    at tigase.http.rest.HandlersLoader.loadHandler(HandlersLoader.groovy:41)

    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:497)

    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:361)

    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:909)

    at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)

    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145)

    at tigase.http.rest.HandlersLoader$_loadHandlers_closure1.doCall(HandlersLoader.groovy:54)

    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:497)

    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 org.codehaus.groovy.runtime.dgm$148.invoke(Unknown Source)

    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271)

    at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)

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

    at tigase.http.rest.HandlersLoader.loadHandlers(HandlersLoader.groovy:51)

    at tigase.http.rest.HandlersLoader$loadHandlers.call(Unknown Source)

    at tigase.http.rest.RestServlet.loadHandlers(RestServlet.groovy:65)

    at tigase.http.rest.RestExtServlet.super$4$loadHandlers(RestExtServlet.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:497)

    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 org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:128)

    at tigase.http.rest.RestExtServlet.loadHandlers(RestExtServlet.groovy:43)

    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:237)

    at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)

    at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)

    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:704)

    at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)

    at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)

    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:603)

    at tigase.server.XMPPServer.start(XMPPServer.java:142)

    at tigase.server.XMPPServer.main(XMPPServer.java:112)

@

Tigase version : tigase-server-7.0.4-b3844

Please help.

Thank you


Replies (1)

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

Hi,

please remove following file /home/ec2-user/tigase-server-7.0.4-b3844/scripts/rest/stream/Stream.groovy

I know this file is part of package of Tigase XMPP Server 7.0.4, however it was added to this package by mistake. This file is designed to work only in Tigase XMPP Server 7.1.0 or newer as it requires Tigase HTTP API 1.2.0.

    (1-1/1)