Uploaded image for project: 'ZZZ-WSO2 App Manager'
  1. ZZZ-WSO2 App Manager
  2. APPM-1194

JavaScriptException when loading public store after a server restart

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.1.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      All datasources pointed to mysql
      wso2appm-1.1.0- 16th Dec pack
      JDK 1.7
      Ubuntu 13.04

    • Severity:
      Major
    • Estimated Complexity:
      Moderate
    • Test cases added:
      Yes

      Description

      Restart server while a tenant store is loaded.
      Change URL to https://localhost:9446/store/
      The following error occurs.

      
      [2015-12-17 14:33:37,788] ERROR - WebAppManager org.mozilla.javascript.JavaScriptException: Error: Parse error on line 1:
      ...me=1">    <title>{{include title}}</tit
      ----------------------^
      Expecting 'CLOSE', 'STRING', 'INTEGER', 'BOOLEAN', 'ID', 'SEP', got 'CONTENT' (handlebars#194)
      org.jaggeryjs.scriptengine.exceptions.ScriptException: org.mozilla.javascript.JavaScriptException: Error: Parse error on line 1:
      ...me=1">    <title>{{include title}}</tit
      ----------------------^
      Expecting 'CLOSE', 'STRING', 'INTEGER', 'BOOLEAN', 'ID', 'SEP', got 'CONTENT' (handlebars#194)
      	at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
      	at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
      	at org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:536)
      	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:303)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
      	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
      	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
      	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
      	at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
      	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:950)
      	at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1736)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1695)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.lang.Thread.run(Thread.java:744)
      Caused by: org.mozilla.javascript.JavaScriptException: Error: Parse error on line 1:
      ...me=1">    <title>{{include title}}</tit
      ----------------------^
      Expecting 'CLOSE', 'STRING', 'INTEGER', 'BOOLEAN', 'ID', 'SEP', got 'CONTENT' (handlebars#194)
      	at org.mozilla.javascript.gen.handlebars_29._c_parseError_14(handlebars:194)
      	at org.mozilla.javascript.gen.handlebars_29.call(handlebars)
      	at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
      	at org.mozilla.javascript.gen.handlebars_29._c_parse_15(handlebars:243)
      	at org.mozilla.javascript.gen.handlebars_29.call(handlebars)
      	at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
      	at org.mozilla.javascript.gen.handlebars_29._c_anonymous_37(handlebars:507)
      	at org.mozilla.javascript.gen.handlebars_29.call(handlebars)
      	at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
      	at org.mozilla.javascript.gen.handlebars_29._c_compile_125(handlebars:1472)
      	at org.mozilla.javascript.gen.handlebars_29.call(handlebars)
      	at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:74)
      	at org.mozilla.javascript.gen.handlebars_29._c_anonymous_126(handlebars:1481)
      	at org.mozilla.javascript.gen.handlebars_29.call(handlebars)
      	at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
      	at org.mozilla.javascript.gen.caramel_handlebars_js_15._c_anonymous_31(caramel.handlebars.js:623)
      	at org.mozilla.javascript.gen.caramel_handlebars_js_15.call(caramel.handlebars.js)
      	at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
      	at org.jaggeryjs.rhino.store.themes.store.renderers.controllers.c0._c_anonymous_1(/store/themes/store/renderers/controllers/public-stores.js:2)
      	at org.jaggeryjs.rhino.store.themes.store.renderers.controllers.c0.call(/store/themes/store/renderers/controllers/public-stores.js)
      	at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
      	at org.mozilla.javascript.gen.caramel_handlebars_js_15._c_anonymous_28(caramel.handlebars.js:453)
      	at org.mozilla.javascript.gen.caramel_handlebars_js_15.call(caramel.handlebars.js)
      	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.callN(OptRuntime.java:52)
      	at org.jaggeryjs.rhino.store.themes.store.c0._c_anonymous_20(/store/themes/store/theme.js:173)
      	at org.jaggeryjs.rhino.store.themes.store.c0.call(/store/themes/store/theme.js)
      	at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
      	at org.mozilla.javascript.gen.caramel_core_js_14._c_anonymous_13(caramel-core.js:212)
      	at org.mozilla.javascript.gen.caramel_core_js_14.call(caramel-core.js)
      	at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
      	at org.jaggeryjs.rhino.store..controllers.c0._c_anonymous_1(/store//controllers/public-stores.jag:20)
      	at org.jaggeryjs.rhino.store..controllers.c0.call(/store//controllers/public-stores.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.store.modules.c1._c_anonymous_69(/store/modules/store.js:1086)
      	at org.jaggeryjs.rhino.store.modules.c1.call(/store/modules/store.js)
      	at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
      	at org.mozilla.javascript.gen._store__server_js_11._c_anonymous_17([store]/server.js:286)
      	at org.mozilla.javascript.gen._store__server_js_11.call([store]/server.js)
      	at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
      	at org.jaggeryjs.rhino.store.modules.c1._c_anonymous_68(/store/modules/store.js:1080)
      	at org.jaggeryjs.rhino.store.modules.c1.call(/store/modules/store.js)
      	at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
      	at org.jaggeryjs.rhino.store..controllers.c0._c_script_0(/store//controllers/public-stores.jag:8)
      	at org.jaggeryjs.rhino.store..controllers.c0.call(/store//controllers/public-stores.jag)
      	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
      	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
      	at org.jaggeryjs.rhino.store..controllers.c0.call(/store//controllers/public-stores.jag)
      	at org.jaggeryjs.rhino.store..controllers.c0.exec(/store//controllers/public-stores.jag)
      	at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
      	... 37 more
      [2015-12-17 14:33:37,790] ERROR - WebAppManager org.mozilla.javascript.JavaScriptException: Error: Parse error on line 11:
      ...le>{{include title}}</title>    <meta n
      -----------------------^
      Expecting 'EOF', 'CONTENT', 'COMMENT', 'OPEN_BLOCK', 'OPEN_INVERSE', 'OPEN_ENDBLOCK', 'OPEN', 'OPEN_UNESCAPED', 'OPEN_PARTIAL', got 'undefined' (handlebars#194)
      org.jaggeryjs.scriptengine.exceptions.ScriptException: org.mozilla.javascript.JavaScriptException: Error: Parse error on line 11:
      ...le>{{include title}}</title>    <meta n
      -----------------------^
      Expecting 'EOF', 'CONTENT', 'COMMENT', 'OPEN_BLOCK', 'OPEN_INVERSE', 'OPEN_ENDBLOCK', 'OPEN', 'OPEN_UNESCAPED', 'OPEN_PARTIAL', got 'undefined' (handlebars#194)
      	at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
      	at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
      	at org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:536)
      	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:303)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
      	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
      	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
      	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
      	at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
      	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:950)
      	at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1736)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1695)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.lang.Thread.run(Thread.java:744)
      Caused by: org.mozilla.javascript.JavaScriptException: Error: Parse error on line 11:
      ...le>{{include title}}</title>    <meta n
      -----------------------^
      Expecting 'EOF', 'CONTENT', 'COMMENT', 'OPEN_BLOCK', 'OPEN_INVERSE', 'OPEN_ENDBLOCK', 'OPEN', 'OPEN_UNESCAPED', 'OPEN_PARTIAL', got 'undefined' (handlebars#194)
      	at org.mozilla.javascript.gen.handlebars_29._c_parseError_14(handlebars:194)
      	at org.mozilla.javascript.gen.handlebars_29.call(handlebars)
      	at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
      	at org.mozilla.javascript.gen.handlebars_29._c_parse_15(handlebars:243)
      	at org.mozilla.javascript.gen.handlebars_29.call(handlebars)
      	at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
      	at org.mozilla.javascript.gen.handlebars_29._c_anonymous_37(handlebars:507)
      	at org.mozilla.javascript.gen.handlebars_29.call(handlebars)
      	at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
      	at org.mozilla.javascript.gen.handlebars_29._c_compile_125(handlebars:1472)
      	at org.mozilla.javascript.gen.handlebars_29.call(handlebars)
      	at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:74)
      	at org.mozilla.javascript.gen.handlebars_29._c_anonymous_126(handlebars:1481)
      	at org.mozilla.javascript.gen.handlebars_29.call(handlebars)
      	at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
      	at org.mozilla.javascript.gen.caramel_handlebars_js_15._c_anonymous_31(caramel.handlebars.js:623)
      	at org.mozilla.javascript.gen.caramel_handlebars_js_15.call(caramel.handlebars.js)
      	at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
      	at org.jaggeryjs.rhino.store.themes.store.renderers.controllers.c0._c_anonymous_1(/store/themes/store/renderers/controllers/public-stores.js:2)
      	at org.jaggeryjs.rhino.store.themes.store.renderers.controllers.c0.call(/store/themes/store/renderers/controllers/public-stores.js)
      	at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
      	at org.mozilla.javascript.gen.caramel_handlebars_js_15._c_anonymous_28(caramel.handlebars.js:453)
      	at org.mozilla.javascript.gen.caramel_handlebars_js_15.call(caramel.handlebars.js)
      	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.callN(OptRuntime.java:52)
      	at org.jaggeryjs.rhino.store.themes.store.c0._c_anonymous_20(/store/themes/store/theme.js:173)
      	at org.jaggeryjs.rhino.store.themes.store.c0.call(/store/themes/store/theme.js)
      	at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
      	at org.mozilla.javascript.gen.caramel_core_js_14._c_anonymous_13(caramel-core.js:212)
      	at org.mozilla.javascript.gen.caramel_core_js_14.call(caramel-core.js)
      	at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
      	at org.jaggeryjs.rhino.store..controllers.c0._c_anonymous_1(/store//controllers/public-stores.jag:20)
      	at org.jaggeryjs.rhino.store..controllers.c0.call(/store//controllers/public-stores.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.store.modules.c1._c_anonymous_69(/store/modules/store.js:1086)
      	at org.jaggeryjs.rhino.store.modules.c1.call(/store/modules/store.js)
      	at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
      	at org.mozilla.javascript.gen._store__server_js_11._c_anonymous_17([store]/server.js:286)
      	at org.mozilla.javascript.gen._store__server_js_11.call([store]/server.js)
      	at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
      	at org.jaggeryjs.rhino.store.modules.c1._c_anonymous_68(/store/modules/store.js:1080)
      	at org.jaggeryjs.rhino.store.modules.c1.call(/store/modules/store.js)
      	at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
      	at org.jaggeryjs.rhino.store..controllers.c0._c_script_0(/store//controllers/public-stores.jag:8)
      	at org.jaggeryjs.rhino.store..controllers.c0.call(/store//controllers/public-stores.jag)
      	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
      	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
      	at org.jaggeryjs.rhino.store..controllers.c0.call(/store//controllers/public-stores.jag)
      	at org.jaggeryjs.rhino.store..controllers.c0.exec(/store//controllers/public-stores.jag)
      	at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
      	... 37 more
      
      
      

        Attachments

          Activity

            People

            • Assignee:
              dinusha@wso2.com Dinusha Dilrukshi
              Reporter:
              asanthi@wso2.com Asanthi Kulasinghe
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: