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

[Oracle] Most of Statistics graphs don't work.

    Details

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

      wso2appm-1.1.0-SNAPSHOT-09-12-2015
      JDK1.7
      Ubuntu14.04
      All databases are pointed to Oracle12c

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

      Description

      Following exception is occurred when trying to get statistics.

      2015-12-11 17:39:18,467] ERROR - AppMDAO Failed to get subscriptionCount of apps for provider :_all_providers_for the period 2015-11-13 17:39:00to2015-12-12
      java.sql.SQLSyntaxErrorException: ORA-00979: not a GROUP BY expression

      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:450)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)
      at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1017)
      at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:655)
      at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:249)
      at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:566)
      at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:215)
      at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:58)
      at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:776)
      at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:897)
      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1034)
      at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3820)
      at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3867)
      at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1502)
      at org.wso2.carbon.appmgt.impl.dao.AppMDAO.GetSubscriptionCountByApp(AppMDAO.java:2435)
      at org.wso2.carbon.appmgt.impl.APIProviderImpl.getSubscriptionCountByAPPs(APIProviderImpl.java:1713)
      at org.wso2.carbon.appmgt.impl.UserAwareAPIProvider.getSubscriptionCountByAPPs(UserAwareAPIProvider.java:36)
      at org.wso2.carbon.appmgt.hostobjects.APIProviderHostObject.jsFunction_getSubscriberCountByAPIs(APIProviderHostObject.java:1481)
      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:606)
      at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
      at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
      at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
      at org.jaggeryjs.rhino.publisher.apis.v_1.c6._c_anonymous_2(/publisher/apis/v1/assets_api_router.jag:59)
      at org.jaggeryjs.rhino.publisher.apis.v_1.c6.call(/publisher/apis/v1/assets_api_router.jag)
      at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
      at org.jaggeryjs.rhino.publisher.modules.c4._c_anonymous_12(/publisher/modules/router-g.js:183)
      at org.jaggeryjs.rhino.publisher.modules.c4.call(/publisher/modules/router-g.js)
      at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
      at org.jaggeryjs.rhino.publisher.apis.v_1.c6._c_anonymous_1(/publisher/apis/v1/assets_api_router.jag:757)
      at org.jaggeryjs.rhino.publisher.apis.v_1.c6.call(/publisher/apis/v1/assets_api_router.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:438)
      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_13._c_anonymous_17([store]/server.js:273)
      at org.mozilla.javascript.gen.store_server_js_13.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:433)
      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.apis.v_1.c6._c_script_0(/publisher/apis/v1/assets_api_router.jag:3)
      at org.jaggeryjs.rhino.publisher.apis.v_1.c6.call(/publisher/apis/v1/assets_api_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.apis.v_1.c6.call(/publisher/apis/v1/assets_api_router.jag)
      at org.jaggeryjs.rhino.publisher.apis.v_1.c6.exec(/publisher/apis/v1/assets_api_router.jag)
      at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
      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.doPost(JaggeryServlet.java:29)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
      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:745)
      [2015-12-11 17:39:18,481] ERROR - UserAwareAPIProvider Failed to get subscriptionCount by apps for provider :_all_providers_for the period 2015-11-13 17:39:00to2015-12-12
      org.wso2.carbon.appmgt.api.AppManagementException: Failed to get subscriptionCount of apps for provider :_all_providers_for the period 2015-11-13 17:39:00to2015-12-12
      at org.wso2.carbon.appmgt.impl.dao.AppMDAO.handleException(AppMDAO.java:4811)
      at org.wso2.carbon.appmgt.impl.dao.AppMDAO.GetSubscriptionCountByApp(AppMDAO.java:2461)
      at org.wso2.carbon.appmgt.impl.APIProviderImpl.getSubscriptionCountByAPPs(APIProviderImpl.java:1713)
      at org.wso2.carbon.appmgt.impl.UserAwareAPIProvider.getSubscriptionCountByAPPs(UserAwareAPIProvider.java:36)
      at org.wso2.carbon.appmgt.hostobjects.APIProviderHostObject.jsFunction_getSubscriberCountByAPIs(APIProviderHostObject.java:1481)
      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:606)
      at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
      at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
      at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
      at org.jaggeryjs.rhino.publisher.apis.v_1.c6._c_anonymous_2(/publisher/apis/v1/assets_api_router.jag:59)
      at org.jaggeryjs.rhino.publisher.apis.v_1.c6.call(/publisher/apis/v1/assets_api_router.jag)
      at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
      at org.jaggeryjs.rhino.publisher.modules.c4._c_anonymous_12(/publisher/modules/router-g.js:183)
      at org.jaggeryjs.rhino.publisher.modules.c4.call(/publisher/modules/router-g.js)
      at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
      at org.jaggeryjs.rhino.publisher.apis.v_1.c6._c_anonymous_1(/publisher/apis/v1/assets_api_router.jag:757)
      at org.jaggeryjs.rhino.publisher.apis.v_1.c6.call(/publisher/apis/v1/assets_api_router.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:438)
      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_13._c_anonymous_17([store]/server.js:273)
      at org.mozilla.javascript.gen.store_server_js_13.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:433)
      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.apis.v_1.c6._c_script_0(/publisher/apis/v1/assets_api_router.jag:3)
      at org.jaggeryjs.rhino.publisher.apis.v_1.c6.call(/publisher/apis/v1/assets_api_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.apis.v_1.c6.call(/publisher/apis/v1/assets_api_router.jag)
      at org.jaggeryjs.rhino.publisher.apis.v_1.c6.exec(/publisher/apis/v1/assets_api_router.jag)
      at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
      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.doPost(JaggeryServlet.java:29)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
      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:745)
      Caused by: java.sql.SQLSyntaxErrorException: ORA-00979: not a GROUP BY expression

      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:450)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)
      at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1017)
      at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:655)
      at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:249)
      at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:566)
      at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:215)
      at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:58)
      at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:776)
      at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:897)
      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1034)
      at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3820)
      at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3867)
      at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1502)
      at org.wso2.carbon.appmgt.impl.dao.AppMDAO.GetSubscriptionCountByApp(AppMDAO.java:2435)
      ... 75 more
      [2015-12-11 17:39:18,490] ERROR - WebAppManager org.mozilla.javascript.WrappedException: Wrapped org.wso2.carbon.appmgt.api.AppManagementException: Failed to get subscriptionCount by apps for provider :_all_providers_for the period 2015-11-13 17:39:00to2015-12-12 (/publisher/apis/v1/assets_api_router.jag#59)
      org.jaggeryjs.scriptengine.exceptions.ScriptException: org.mozilla.javascript.WrappedException: Wrapped org.wso2.carbon.appmgt.api.AppManagementException: Failed to get subscriptionCount by apps for provider :_all_providers_for the period 2015-11-13 17:39:00to2015-12-12 (/publisher/apis/v1/assets_api_router.jag#59)
      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.doPost(JaggeryServlet.java:29)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
      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:745)
      Caused by: org.mozilla.javascript.WrappedException: Wrapped org.wso2.carbon.appmgt.api.AppManagementException: Failed to get subscriptionCount by apps for provider :_all_providers_for the period 2015-11-13 17:39:00to2015-12-12 (/publisher/apis/v1/assets_api_router.jag#59)
      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.callN(OptRuntime.java:52)
      at org.jaggeryjs.rhino.publisher.apis.v_1.c6._c_anonymous_2(/publisher/apis/v1/assets_api_router.jag:59)
      at org.jaggeryjs.rhino.publisher.apis.v_1.c6.call(/publisher/apis/v1/assets_api_router.jag)
      at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
      at org.jaggeryjs.rhino.publisher.modules.c4._c_anonymous_12(/publisher/modules/router-g.js:183)
      at org.jaggeryjs.rhino.publisher.modules.c4.call(/publisher/modules/router-g.js)
      at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
      at org.jaggeryjs.rhino.publisher.apis.v_1.c6._c_anonymous_1(/publisher/apis/v1/assets_api_router.jag:757)
      at org.jaggeryjs.rhino.publisher.apis.v_1.c6.call(/publisher/apis/v1/assets_api_router.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:438)
      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_13._c_anonymous_17([store]/server.js:273)
      at org.mozilla.javascript.gen.store_server_js_13.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:433)
      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.apis.v_1.c6._c_script_0(/publisher/apis/v1/assets_api_router.jag:3)
      at org.jaggeryjs.rhino.publisher.apis.v_1.c6.call(/publisher/apis/v1/assets_api_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.apis.v_1.c6.call(/publisher/apis/v1/assets_api_router.jag)
      at org.jaggeryjs.rhino.publisher.apis.v_1.c6.exec(/publisher/apis/v1/assets_api_router.jag)
      at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
      ... 37 more
      Caused by: org.wso2.carbon.appmgt.api.AppManagementException: Failed to get subscriptionCount by apps for provider :_all_providers_for the period 2015-11-13 17:39:00to2015-12-12
      at org.wso2.carbon.appmgt.impl.AbstractAPIManager.handleException(AbstractAPIManager.java:665)
      at org.wso2.carbon.appmgt.impl.APIProviderImpl.getSubscriptionCountByAPPs(APIProviderImpl.java:1715)
      at org.wso2.carbon.appmgt.impl.UserAwareAPIProvider.getSubscriptionCountByAPPs(UserAwareAPIProvider.java:36)
      at org.wso2.carbon.appmgt.hostobjects.APIProviderHostObject.jsFunction_getSubscriberCountByAPIs(APIProviderHostObject.java:1481)
      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:606)
      at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
      ... 67 more
      Caused by: org.wso2.carbon.appmgt.api.AppManagementException: Failed to get subscriptionCount of apps for provider :_all_providers_for the period 2015-11-13 17:39:00to2015-12-12
      at org.wso2.carbon.appmgt.impl.dao.AppMDAO.handleException(AppMDAO.java:4811)
      at org.wso2.carbon.appmgt.impl.dao.AppMDAO.GetSubscriptionCountByApp(AppMDAO.java:2461)
      at org.wso2.carbon.appmgt.impl.APIProviderImpl.getSubscriptionCountByAPPs(APIProviderImpl.java:1713)
      ... 74 more
      Caused by: java.sql.SQLSyntaxErrorException: ORA-00979: not a GROUP BY expression

      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:450)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)
      at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1017)
      at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:655)
      at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:249)
      at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:566)
      at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:215)
      at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:58)
      at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:776)
      at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:897)
      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1034)
      at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3820)
      at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3867)
      at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1502)
      at org.wso2.carbon.appmgt.impl.dao.AppMDAO.GetSubscriptionCountByApp(AppMDAO.java:2435)
      ... 75 more

        Attachments

          Activity

            People

            • Assignee:
              lakshani@wso2.com Lakshani Gamage
              Reporter:
              lakshani@wso2.com Lakshani Gamage
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: