Hi, With the latest build of API Manager in trunk,it's unable to access the API Store App and following null pointer exception[1] appears in the console.[Note that API Provider app can be accessed and its functionalities are working without any issue.]
According to the below stack trace,the error coming from 4th line of /apistore/site/themes/fancy/templates/ui/dialogs/template.jag file,and that line contains the code as; * var showLogin = <%=session.get("showLogin")%>;* Is this happening due to a change done in session host object? Appreciate any help regarding this. [1] [2012-06-22 22:15:19,456] INFO - CarbonAuthenticationUtil 'admin@carbon.super [-1234]' logged in at [2012-06-22 22:15:19,456+0430] from IP address 175.157.133.6 [2012-06-22 22:15:26,158] ERROR - RhinoEngine org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (/apistore/site/themes/fancy/templates/ui/dialogs/template.jag#4) [2012-06-22 22:15:26,165] ERROR - WebAppManager org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (/apistore/site/themes/fancy/templates/ui/dialogs/template.jag#4) org.wso2.carbon.scriptengine.exceptions.ScriptException: org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (/apistore/site/themes/fancy/templates/ui/dialogs/template.jag#4) at org.wso2.carbon.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:448) at org.wso2.carbon.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:202) at org.wso2.carbon.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:224) at org.wso2.carbon.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:46) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) 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.StandardWrapperValve.invoke(StandardWrapperValve.java:225) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:143) at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:48) 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:999) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1620) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (/apistore/site/themes/fancy/templates/ui/dialogs/template.jag#4) at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1654) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:175) at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:411) at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97) at org.wso2.carbon.rhino.site.themes.fancy.templates.ui.dialogs.c0._c1(/apistore/site/themes/fancy/templates/ui/dialogs/template.jag:4) at org.wso2.carbon.rhino.site.themes.fancy.templates.ui.dialogs.c0.call(/apistore/site/themes/fancy/templates/ui/dialogs/template.jag) at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:86) at org.wso2.carbon.rhino.jagg.c0._c23(/apistore/jagg/jagg.jag:161) at org.wso2.carbon.rhino.jagg.c0.call(/apistore/jagg/jagg.jag) at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97) at org.wso2.carbon.rhino.jagg.c0._c38(/apistore/jagg/jagg.jag:444) at org.wso2.carbon.rhino.jagg.c0.call(/apistore/jagg/jagg.jag) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76) at org.wso2.carbon.rhino.site.themes.fancy.templates.page.base.c0._c1(/apistore/site/themes/fancy/templates/page/base/template.jag:46) at org.wso2.carbon.rhino.site.themes.fancy.templates.page.base.c0.call(/apistore/site/themes/fancy/templates/page/base/template.jag) at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:86) at org.wso2.carbon.rhino.jagg.c0._c37(/apistore/jagg/jagg.jag:440) at org.wso2.carbon.rhino.jagg.c0.call(/apistore/jagg/jagg.jag) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66) at org.wso2.carbon.rhino.site.pages.c0._c1(/apistore/site/pages/list-apis.jag:24) at org.wso2.carbon.rhino.site.pages.c0.call(/apistore/site/pages/list-apis.jag) at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:57) at org.wso2.carbon.rhino.site.pages.c0._c0(/apistore/site/pages/list-apis.jag:5) at org.wso2.carbon.rhino.site.pages.c0.call(/apistore/site/pages/list-apis.jag) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3003) at org.wso2.carbon.rhino.site.pages.c0.call(/apistore/site/pages/list-apis.jag) at org.wso2.carbon.rhino.site.pages.c0.exec(/apistore/site/pages/list-apis.jag) at org.wso2.carbon.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:443) ... 24 more Caused by: java.lang.NullPointerException at org.wso2.carbon.scriptengine.util.HostObjectUtil.serializeJSON(HostObjectUtil.java:102) at org.wso2.carbon.scriptengine.util.HostObjectUtil.serializeObject(HostObjectUtil.java:130) at org.wso2.carbon.jaggery.core.manager.CommonManager.print(CommonManager.java:308) at org.wso2.carbon.jaggery.core.manager.WebAppManager.print(WebAppManager.java:99) at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:160) ... 51 more -- Lalaji Sureshika Software Engineer WSO2 Inc.
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev