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

Missing table exceptions when adding , editting and publishing a web app

    Details

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

      MySQL
      wso2appm-1.1.0-SNAPSHOT-02-12-2015
      JDK 1.7
      Ubuntu 13.04

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

      Description

      Point all datasources to MySQL.

      Log into publisher and try to create a web app, or edit and already existing one or publish a web app..
      Missing table exceptions are thrown.

      It was also noticed that the following tables don't seem to get created in the AM DB when the server is started with -Dsetup option, although they are available in the script

      APM_APP_JAVA_POLICY
      APM_APP_JAVA_POLICY_MAPPING

      
      
      [2015-12-04 00:25:57,085]  INFO - SessionDataStore Thread pool size for session persistent consumer : 100
      [2015-12-04 00:26:03,681]  INFO - acs:jag Emitting event : login
      [2015-12-04 00:26:03,796]  INFO - assets_router:jag Emitting event : login
      [2015-12-04 00:26:09,278] ERROR - AppMDAO SQL Error while executing the query to get available Java Policies :  SELECT POL.JAVA_POLICY_ID AS JAVA_POLICY_ID ,DISPLAY_NAME ,DESCRIPTION ,DISPLAY_ORDER_SEQ_NO ,APP.APP_ID AS APP_ID FROM APM_APP_JAVA_POLICY POL LEFT JOIN APM_APP_JAVA_POLICY_MAPPING MAP ON POL.JAVA_POLICY_ID=MAP.JAVA_POLICY_ID LEFT JOIN APM_APP APP ON APP.APP_ID=MAP.APP_ID AND APP.UUID = ? WHERE IS_MANDATORY= ? AND IS_GLOBAL= ? ORDER BY DISPLAY_ORDER_SEQ_NO  Table 'am_appm110.APM_APP_JAVA_POLICY' doesn't exist
      com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'am_appm110.APM_APP_JAVA_POLICY' doesn't exist
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      	at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
      	at com.mysql.jdbc.Util.getInstance(Util.java:381)
      	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1030)
      	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
      	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3558)
      	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3490)
      	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959)
      	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2109)
      	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2643)
      	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2077)
      	at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2228)
      	at org.wso2.carbon.appmgt.impl.dao.AppMDAO.getAvailableJavaPolicyList(AppMDAO.java:7409)
      	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.NativeJavaMethod.call(NativeJavaMethod.java:225)
      	at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
      	at org.jaggeryjs.rhino.publisher.apis.v_1.c3._c_getAvailableJavaPolicyList_36(/publisher/apis/v1/entitlement_api_router.jag:243)
      	at org.jaggeryjs.rhino.publisher.apis.v_1.c3.call(/publisher/apis/v1/entitlement_api_router.jag)
      	at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
      	at org.jaggeryjs.rhino.publisher.apis.v_1.c3._c_anonymous_18(/publisher/apis/v1/entitlement_api_router.jag:102)
      	at org.jaggeryjs.rhino.publisher.apis.v_1.c3.call(/publisher/apis/v1/entitlement_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.c3._c_anonymous_1(/publisher/apis/v1/entitlement_api_router.jag:302)
      	at org.jaggeryjs.rhino.publisher.apis.v_1.c3.call(/publisher/apis/v1/entitlement_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_11._c_anonymous_17([store]/server.js:273)
      	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.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.c3._c_script_0(/publisher/apis/v1/entitlement_api_router.jag:5)
      	at org.jaggeryjs.rhino.publisher.apis.v_1.c3.call(/publisher/apis/v1/entitlement_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.c3.call(/publisher/apis/v1/entitlement_api_router.jag)
      	at org.jaggeryjs.rhino.publisher.apis.v_1.c3.exec(/publisher/apis/v1/entitlement_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.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)
      [2015-12-04 00:26:09,284] ERROR - WebAppManager org.mozilla.javascript.WrappedException: Wrapped org.wso2.carbon.appmgt.api.AppManagementException: SQL Error while executing the query to get available Java Policies :  SELECT POL.JAVA_POLICY_ID AS JAVA_POLICY_ID ,DISPLAY_NAME ,DESCRIPTION ,DISPLAY_ORDER_SEQ_NO ,APP.APP_ID AS APP_ID FROM APM_APP_JAVA_POLICY POL LEFT JOIN APM_APP_JAVA_POLICY_MAPPING MAP ON POL.JAVA_POLICY_ID=MAP.JAVA_POLICY_ID LEFT JOIN APM_APP APP ON APP.APP_ID=MAP.APP_ID AND APP.UUID = ? WHERE IS_MANDATORY= ? AND IS_GLOBAL= ? ORDER BY DISPLAY_ORDER_SEQ_NO  Table 'am_appm110.APM_APP_JAVA_POLICY' doesn't exist (/publisher/apis/v1/entitlement_api_router.jag#243)
      org.jaggeryjs.scriptengine.exceptions.ScriptException: org.mozilla.javascript.WrappedException: Wrapped org.wso2.carbon.appmgt.api.AppManagementException: SQL Error while executing the query to get available Java Policies :  SELECT POL.JAVA_POLICY_ID AS JAVA_POLICY_ID ,DISPLAY_NAME ,DESCRIPTION ,DISPLAY_ORDER_SEQ_NO ,APP.APP_ID AS APP_ID FROM APM_APP_JAVA_POLICY POL LEFT JOIN APM_APP_JAVA_POLICY_MAPPING MAP ON POL.JAVA_POLICY_ID=MAP.JAVA_POLICY_ID LEFT JOIN APM_APP APP ON APP.APP_ID=MAP.APP_ID AND APP.UUID = ? WHERE IS_MANDATORY= ? AND IS_GLOBAL= ? ORDER BY DISPLAY_ORDER_SEQ_NO  Table 'am_appm110.APM_APP_JAVA_POLICY' doesn't exist (/publisher/apis/v1/entitlement_api_router.jag#243)
      	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.WrappedException: Wrapped org.wso2.carbon.appmgt.api.AppManagementException: SQL Error while executing the query to get available Java Policies :  SELECT POL.JAVA_POLICY_ID AS JAVA_POLICY_ID ,DISPLAY_NAME ,DESCRIPTION ,DISPLAY_ORDER_SEQ_NO ,APP.APP_ID AS APP_ID FROM APM_APP_JAVA_POLICY POL LEFT JOIN APM_APP_JAVA_POLICY_MAPPING MAP ON POL.JAVA_POLICY_ID=MAP.JAVA_POLICY_ID LEFT JOIN APM_APP APP ON APP.APP_ID=MAP.APP_ID AND APP.UUID = ? WHERE IS_MANDATORY= ? AND IS_GLOBAL= ? ORDER BY DISPLAY_ORDER_SEQ_NO  Table 'am_appm110.APM_APP_JAVA_POLICY' doesn't exist (/publisher/apis/v1/entitlement_api_router.jag#243)
      	at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
      	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
      	at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
      	at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
      	at org.jaggeryjs.rhino.publisher.apis.v_1.c3._c_getAvailableJavaPolicyList_36(/publisher/apis/v1/entitlement_api_router.jag:243)
      	at org.jaggeryjs.rhino.publisher.apis.v_1.c3.call(/publisher/apis/v1/entitlement_api_router.jag)
      	at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
      	at org.jaggeryjs.rhino.publisher.apis.v_1.c3._c_anonymous_18(/publisher/apis/v1/entitlement_api_router.jag:102)
      	at org.jaggeryjs.rhino.publisher.apis.v_1.c3.call(/publisher/apis/v1/entitlement_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.c3._c_anonymous_1(/publisher/apis/v1/entitlement_api_router.jag:302)
      	at org.jaggeryjs.rhino.publisher.apis.v_1.c3.call(/publisher/apis/v1/entitlement_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_11._c_anonymous_17([store]/server.js:273)
      	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.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.c3._c_script_0(/publisher/apis/v1/entitlement_api_router.jag:5)
      	at org.jaggeryjs.rhino.publisher.apis.v_1.c3.call(/publisher/apis/v1/entitlement_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.c3.call(/publisher/apis/v1/entitlement_api_router.jag)
      	at org.jaggeryjs.rhino.publisher.apis.v_1.c3.exec(/publisher/apis/v1/entitlement_api_router.jag)
      	at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
      	... 37 more
      Caused by: org.wso2.carbon.appmgt.api.AppManagementException: SQL Error while executing the query to get available Java Policies :  SELECT POL.JAVA_POLICY_ID AS JAVA_POLICY_ID ,DISPLAY_NAME ,DESCRIPTION ,DISPLAY_ORDER_SEQ_NO ,APP.APP_ID AS APP_ID FROM APM_APP_JAVA_POLICY POL LEFT JOIN APM_APP_JAVA_POLICY_MAPPING MAP ON POL.JAVA_POLICY_ID=MAP.JAVA_POLICY_ID LEFT JOIN APM_APP APP ON APP.APP_ID=MAP.APP_ID AND APP.UUID = ? WHERE IS_MANDATORY= ? AND IS_GLOBAL= ? ORDER BY DISPLAY_ORDER_SEQ_NO  Table 'am_appm110.APM_APP_JAVA_POLICY' doesn't exist
      	at org.wso2.carbon.appmgt.impl.dao.AppMDAO.handleException(AppMDAO.java:4786)
      	at org.wso2.carbon.appmgt.impl.dao.AppMDAO.getAvailableJavaPolicyList(AppMDAO.java:7423)
      	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)
      	... 70 more
      Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'am_appm110.APM_APP_JAVA_POLICY' doesn't exist
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      	at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
      	at com.mysql.jdbc.Util.getInstance(Util.java:381)
      	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1030)
      	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
      	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3558)
      	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3490)
      	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959)
      	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2109)
      	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2643)
      	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2077)
      	at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2228)
      	at org.wso2.carbon.appmgt.impl.dao.AppMDAO.getAvailableJavaPolicyList(AppMDAO.java:7409)
      	... 75 more
      [2015-12-04 00:26:09,419]  INFO - CarbonAuthenticationUtil 'admin123@carbon.super [-1234]' logged in at [2015-12-04 00:26:09,419+0530]
      [2015-12-04 00:26:09,556]  INFO - CarbonAuthenticationUtil 'admin123@carbon.super [-1234]' logged in at [2015-12-04 00:26:09,556+0530]
      
      
      

        Attachments

          Activity

            People

            • Assignee:
              jenananthan@wso2.com Jenananthan Yogendran
              Reporter:
              asanthi@wso2.com Asanthi Kulasinghe
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: