Hi, I got the following two issues when trying new changes with UUF.
1) When loading the pets-store app it gives only the HTML template, does not shows the styles 2) "Pet of the month" click gives the following exception [2016-06-05 17:43:45,512] ERROR {org.wso2.carbon.uuf.internal.UUFRegistry} - A server error occurred while serving for request '{"method": "GET", "protocol": "HTTP/1.1", "uri": "/pets-store/pets/snowball", "queryString": "null"}'. org.wso2.carbon.uuf.exception.UUFException: An error occurred when executing the 'onRequest' function in JavaScript file '/home/sudharma/Documents/carbon-uuf/product/target/wso2uuf-1.0.0-SNAPSHOT/deployment/uufapps/org.wso2.uuf.sample.pets-store/components/root/pages/pets/{id}.js' with context '{app={context=/pets-store, config={lifecycle=[{state=adopted, show=false}, {state=new, show=true}], elementsPerPage=10, menu={main=[{icon=fw-home, link=#home, text=Home}, {Pets=[{icon=fw fw-list, link=pets, text=See all our amazing pets}, {icon=fw fw-add, link=pets/new, text=Add a new pets}, {icon=fw fw-bug, link=pets/snowball, text=Pet of the month}]}]}, defaultTheme=org.wso2.uuf.theme.default, appName=Pet Store, productName=Unified UI Base}}, request={"method": "GET", "protocol": "HTTP/1.1", "uri": "/pets-store/pets/snowball", "queryString": "null"}, uriParams=null}'. at org.wso2.carbon.uuf.handlebars.JSExecutable.execute(JSExecutable.java:75) at org.wso2.carbon.uuf.handlebars.renderable.HbsPageRenderable.executeExecutable(HbsPageRenderable.java:87) at org.wso2.carbon.uuf.handlebars.renderable.HbsPageRenderable.render(HbsPageRenderable.java:60) at org.wso2.carbon.uuf.core.Page.render(Page.java:54) at org.wso2.carbon.uuf.core.App.renderPage(App.java:118) at org.wso2.carbon.uuf.internal.UUFRegistry.serve(UUFRegistry.java:112) at org.wso2.carbon.uuf.connector.ms.UUFMicroservice.execute(UUFMicroservice.java:105) at org.wso2.carbon.uuf.connector.ms.UUFMicroservice.get(UUFMicroservice.java:93) 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.wso2.msf4j.internal.router.HttpMethodInfo.invoke(HttpMethodInfo.java:95) at org.wso2.msf4j.internal.router.HttpDispatcher.channelRead0(HttpDispatcher.java:53) at org.wso2.msf4j.internal.router.HttpDispatcher.channelRead0(HttpDispatcher.java:31) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308) at io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:32) at io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:299) at io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:36) at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:110) at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) at java.lang.Thread.run(Thread.java:745) Caused by: javax.script.ScriptException: TypeError: Cannot get property "id" of null in /home/sudharma/Documents/carbon-uuf/product/target/wso2uuf-1.0.0-SNAPSHOT/deployment/uufapps/org.wso2.uuf.sample.pets-store/components/root/pages/pets/{id}.js at line number 3 at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:455) at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:387) at jdk.nashorn.api.scripting.NashornScriptEngine.invokeFunction(NashornScriptEngine.java:187) at org.wso2.carbon.uuf.handlebars.JSExecutable.execute(JSExecutable.java:72) ... 22 more Caused by: /home/sudharma/Documents/carbon-uuf/product/target/wso2uuf-1.0.0-SNAPSHOT/deployment/uufapps/org.wso2.uuf.sample.pets-store/components/root/pages/pets/{id}.js:3 TypeError: Cannot get property "id" of null at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:213) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:185) at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:172) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.linkNull(NashornBottomLinker.java:175) at jdk.nashorn.internal.runtime.linker.NashornBottomLinker.getGuardedInvocation(NashornBottomLinker.java:64) at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124) at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:149) at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:233) at jdk.nashorn.internal.scripts.Script$Recompilation$10$72A$\^eval\_.onRequest(/home/sudharma/Documents/carbon-uuf/product/target/wso2uuf-1.0.0-SNAPSHOT/deployment/uufapps/org.wso2.uuf.sample.pets-store/components/root/pages/pets/{id}.js:3) at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:658) at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:229) at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:387) at jdk.nashorn.api.scripting.ScriptObjectMirror.callMember(ScriptObjectMirror.java:192) at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:381) ... 24 more Appreciate your response. Thanks Sudharma -- Sudharma Subasinghe, Software Engineer, WSO2 Inc. Email: sudhar...@wso2.com <hasi...@wso2.com> Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev