Hello Chan,

That error is usually caused by one of the extension files in the
config/ext/ folder referencing a field that is not present in the original
RXT file.

As a solution please attempt the following;

   - Please check if there are any extension files for RXTs that are
   currently not deployed (If present please remove them and attempt to
   restart the server)
   - Please ensure that field and fieldProperties blocks in the extension
   files (e.g. config/ext/mobileapp.json) are correctly spelt.



Thank You,
Sameera


On Fri, Nov 1, 2013 at 8:45 AM, Dulitha R. Wijewantha <
[email protected]> wrote:

> Hi Sameera,
>
> I am trying to integrate Publisher app to the Mobile Server and I am
> facing the below error after adding the publisher -
>
>
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.WrappedException: Wrapped
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.EcmaError: TypeError: Cannot read property "meta"
> from null (/publisher/modules/ext/core/extension.core.js#311)
> (/publisher/controllers/assets_router.jag#83)
>
> at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:575)
>
> at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
>
> at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:435)
>
> at org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
>
> at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
>
> at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
>
> at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
>
> at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
>
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>
> at
> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>
> at
> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
>
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
>
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
>
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
>
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>
> at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
>
> at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
>
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>
> at java.lang.Thread.run(Thread.java:722)
>
> Caused by: org.mozilla.javascript.WrappedException: Wrapped
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.EcmaError: TypeError: Cannot read property "meta"
> from null (/publisher/modules/ext/core/extension.core.js#311)
> (/publisher/controllers/assets_router.jag#83)
>
> at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
>
> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
>
> at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
>
> at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
>
> at
> org.jaggeryjs.rhino.publisher.controllers.c0._c_anonymous_1(/publisher/controllers/assets_router.jag:83)
>
> at
> org.jaggeryjs.rhino.publisher.controllers.c0.call(/publisher/controllers/assets_router.jag)
>
> at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
>
> at
> org.jaggeryjs.rhino.publisher.controllers.c0._c_script_0(/publisher/controllers/assets_router.jag:8)
>
> at
> org.jaggeryjs.rhino.publisher.controllers.c0.call(/publisher/controllers/assets_router.jag)
>
> at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
>
> at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
>
> at
> org.jaggeryjs.rhino.publisher.controllers.c0.call(/publisher/controllers/assets_router.jag)
>
> at
> org.jaggeryjs.rhino.publisher.controllers.c0.exec(/publisher/controllers/assets_router.jag)
>
> at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:570)
>
> ... 35 more
>
> Caused by: org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.EcmaError: TypeError: Cannot read property "meta"
> from null (/publisher/modules/ext/core/extension.core.js#311)
>
> at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:575)
>
> at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
>
> at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.executeScript(WebAppManager.java:271)
>
> at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.include(WebAppManager.java:125)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:601)
>
> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>
> ... 47 more
>
> Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read
> property "meta" from null
> (/publisher/modules/ext/core/extension.core.js#311)
>
> at
> org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3687)
>
> at
> org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3665)
>
> at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3693)
>
> at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3712)
>
> at
> org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3725)
>
> at
> org.mozilla.javascript.ScriptRuntime.getObjectPropNoWarn(ScriptRuntime.java:1509)
>
> at
> org.jaggeryjs.rhino.publisher.modules.ext.core.c2._c_addPropertyToField_19(/publisher/modules/ext/core/extension.core.js:311)
>
> at
> org.jaggeryjs.rhino.publisher.modules.ext.core.c2.call(/publisher/modules/ext/core/extension.core.js)
>
> at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
>
> at
> org.jaggeryjs.rhino.publisher.modules.ext.core.c2._c_anonymous_17(/publisher/modules/ext/core/extension.core.js:288)
>
> at
> org.jaggeryjs.rhino.publisher.modules.ext.core.c2.call(/publisher/modules/ext/core/extension.core.js)
>
> at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
>
> at
> org.jaggeryjs.rhino.publisher.modules.ext.core.c2._c_anonymous_16(/publisher/modules/ext/core/extension.core.js:253)
>
> at
> org.jaggeryjs.rhino.publisher.modules.ext.core.c2.call(/publisher/modules/ext/core/extension.core.js)
>
> at
> org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
>
> at
> org.jaggeryjs.rhino.publisher.modules.c6._c_anonymous_10(/publisher/modules/publisher.js:235)
>
> at
> org.jaggeryjs.rhino.publisher.modules.c6.call(/publisher/modules/publisher.js)
>
> at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
>
> at
> org.jaggeryjs.rhino.publisher.modules.c6._c_anonymous_9(/publisher/modules/publisher.js:154)
>
> at
> org.jaggeryjs.rhino.publisher.modules.c6.call(/publisher/modules/publisher.js)
>
> at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:338)
>
> at org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2349)
>
> at
> org.jaggeryjs.rhino.publisher.modules.c6._c_anonymous_8(/publisher/modules/publisher.js:148)
>
> at
> org.jaggeryjs.rhino.publisher.modules.c6.call(/publisher/modules/publisher.js)
>
> at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
>
> at
> org.jaggeryjs.rhino.publisher.assets.default.c0._c_anonymous_1(/publisher/assets/default/assets.jag:19)
>
> at
> org.jaggeryjs.rhino.publisher.assets.default.c0.call(/publisher/assets/default/assets.jag)
>
> at
> org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
>
> at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
>
> at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
>
> at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
>
> at
> org.jaggeryjs.rhino.publisher.modules.c6._c_anonymous_17(/publisher/modules/publisher.js:436)
>
> at
> org.jaggeryjs.rhino.publisher.modules.c6.call(/publisher/modules/publisher.js)
>
> at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
>
> at
> org.mozilla.javascript.gen._store__server_js_29._c_anonymous_17([store]/server.js:271)
>
> at org.mozilla.javascript.gen._store__server_js_29.call([store]/server.js)
>
> at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
>
> at
> org.jaggeryjs.rhino.publisher.modules.c6._c_anonymous_16(/publisher/modules/publisher.js:431)
>
> at
> org.jaggeryjs.rhino.publisher.modules.c6.call(/publisher/modules/publisher.js)
>
> at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>
> at
> org.jaggeryjs.rhino.publisher.assets.default.c0._c_script_0(/publisher/assets/default/assets.jag:13)
>
> at
> org.jaggeryjs.rhino.publisher.assets.default.c0.call(/publisher/assets/default/assets.jag)
>
> at
> org.jaggeryjs.rhino.publisher.assets.default.c0.exec(/publisher/assets/default/assets.jag)
>
> at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:570)
>
> ... 55 more
>
>
> I have tried updating the modules and the RXTs but it's still getting the
> above error.
>
> *Peace~*
> ---
> Chan (Dulitha Wijewantha)
> Software Engineer - Mobile Development
> WSO2Mobile
> Lean.Enterprise.Mobileware
>  * ~Email       [email protected]*
> *  ~Mobile     +94712112165*
> *  ~Website   dulithawijewantha.com
> *
> *  ~Blog         blog.dulithawijewantha.com<http://dulichan.github.io/chan/>
> *
> *  ~Twitter     @dulitharw <https://twitter.com/dulitharw>*
>



-- 
Sameera Medagammaddegedara
Software Engineer

Contact:
Email: [email protected]
Mobile: + 94 077 255 3005
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to