HI Dilan, Can you share the test case code?
Thanks, On Mon, Jan 12, 2015 at 10:23 AM, Dilan Udara Ariyaratne <[email protected]> wrote: > Hi Krishanthan, > > With in the test class, I do not explicitly access or populate any > CarbonContext in any place... > > Thanks. > > > *Dilan U. Ariyaratne* > Software Engineer > WSO2 Inc. <http://wso2.com/> > Mobile: +94775149066 > lean . enterprise . middleware > > On Sat, Jan 10, 2015 at 11:04 AM, Kishanthan Thangarajah < > [email protected]> wrote: > >> Does the device registration at server-side access/populate >> CarbonContext in any place? >> >> On Thu, Jan 8, 2015 at 4:34 PM, Dilan Udara Ariyaratne <[email protected]> >> wrote: >> >>> Hi Kishanthan, >>> >>> I checked on a separate manual server shutdown and it seems to be fine. >>> No errors appear as in this case. >>> >>> Regards, >>> Dilan. >>> >>> >>> *Dilan U. Ariyaratne* >>> Software Engineer >>> WSO2 Inc. <http://wso2.com/> >>> Mobile: +94775149066 >>> lean . enterprise . middleware >>> >>> On Thu, Jan 8, 2015 at 2:26 PM, Dilan Udara Ariyaratne <[email protected]> >>> wrote: >>> >>>> Hi Kishanthan, >>>> >>>> I am doing a dummy device registration at server-side to check whether >>>> the registration functionality >>>> works fine with an ORACLE connection. >>>> >>>> I will check whether a normal server shutdown also brings out these >>>> exceptions, to isolate the issue from automation framework. >>>> >>>> Thanks for the feedback. >>>> >>>> >>>> >>>> *Dilan U. Ariyaratne* >>>> Software Engineer >>>> WSO2 Inc. <http://wso2.com/> >>>> Mobile: +94775149066 >>>> lean . enterprise . middleware >>>> >>>> On Thu, Jan 8, 2015 at 1:43 PM, Kishanthan Thangarajah < >>>> [email protected]> wrote: >>>> >>>>> The root cause here is : "java.lang.SecurityException: Illegal >>>>> access attempt by tenant[-1] to sessions owned by tenant[-1234]" >>>>> >>>>> This is because the CarbonContext is is not populated with the tenant >>>>> information on showdown path which leads to this. There can be multiple >>>>> reasons. Can you isolate this issue from automation framework, by manually >>>>> starting and stopping the EMM server? Also what are you doing within the >>>>> test case here? >>>>> >>>>> >>>>> >>>>> On Tue, Jan 6, 2015 at 2:17 PM, Dilan Udara Ariyaratne < >>>>> [email protected]> wrote: >>>>> >>>>>> Hi Folks, >>>>>> >>>>>> I have been working on writing a test case for the device >>>>>> registration use-case of EMM with Oracle Support. >>>>>> When I built the product with the test, every thing ran well with a >>>>>> build success message except >>>>>> the server shutdown. >>>>>> >>>>>> Following is the stack trace of it... >>>>>> >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> [2015-01-06 14:03:25,696] ERROR >>>>>> {org.apache.axis2.deployment.DeploymentEngine} - Error occurred while >>>>>> cleaning up deployer >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> org.apache.axis2.deployment.DeploymentException: Error occurred during >>>>>> cleaning up webapps >>>>>> ............ >>>>>> ............ >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> at >>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> at >>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> at java.lang.Thread.run(Thread.java:662) >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> Caused by: org.wso2.carbon.CarbonException: Cannot lazy unload webapp >>>>>> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/store-admin] >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> at >>>>>> org.wso2.carbon.webapp.mgt.WebApplication.lazyUnload(WebApplication.java:379) >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> at >>>>>> org.wso2.carbon.webapp.mgt.WebApplication.lazyUnload(WebApplication.java:354) >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> at >>>>>> org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.lazyUnload(TomcatGenericWebappsDeployer.java:379) >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> at >>>>>> org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.cleanup(AbstractWebappDeployer.java:259) >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> ... 44 more >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> Caused by: org.apache.catalina.LifecycleException: Failed to stop >>>>>> component >>>>>> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/store-admin]] >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:236) >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> at >>>>>> org.wso2.carbon.webapp.mgt.WebApplication.lazyUnload(WebApplication.java:365) >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> ... 47 more >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> Caused by: org.apache.catalina.LifecycleException: Failed to stop >>>>>> component >>>>>> [org.wso2.carbon.webapp.mgt.CarbonTomcatSessionManager[/store-admin]] >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:236) >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> at >>>>>> org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5474) >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> ... 48 more >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> Caused by: java.lang.SecurityException: Illegal access attempt by >>>>>> tenant[-1] to sessions owned by tenant[-1234] >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> at >>>>>> org.wso2.carbon.webapp.mgt.CarbonTomcatSessionManager.checkAccess(CarbonTomcatSessionManager.java:126) >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> at >>>>>> org.wso2.carbon.webapp.mgt.CarbonTomcatSessionManager.findSessions(CarbonTomcatSessionManager.java:78) >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> at >>>>>> org.apache.catalina.session.StandardManager.stopInternal(StandardManager.java:525) >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> ... 50 more >>>>>> INFO >>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - >>>>>> [2015-01-06 14:03:25,734] ERROR >>>>>> {org.wso2.carbon.tomcat.internal.ServerManager} - Error while stopping >>>>>> tomcat >>>>>> ............ >>>>>> ............ >>>>>> >>>>>> Any idea on why these errors pop up? >>>>>> >>>>>> Appreciate your feedback on this. >>>>>> >>>>>> Thanks. >>>>>> >>>>>> >>>>>> *Dilan U. Ariyaratne* >>>>>> Software Engineer >>>>>> WSO2 Inc. <http://wso2.com/> >>>>>> Mobile: +94775149066 >>>>>> lean . enterprise . middleware >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> *Kishanthan Thangarajah* >>>>> Senior Software Engineer, >>>>> Platform Technologies Team, >>>>> WSO2, Inc. >>>>> lean.enterprise.middleware >>>>> >>>>> Mobile - +94773426635 >>>>> Blog - *http://kishanthan.wordpress.com >>>>> <http://kishanthan.wordpress.com>* >>>>> Twitter - *http://twitter.com/kishanthan >>>>> <http://twitter.com/kishanthan>* >>>>> >>>> >>>> >>> >> >> >> -- >> *Kishanthan Thangarajah* >> Senior Software Engineer, >> Platform Technologies Team, >> WSO2, Inc. >> lean.enterprise.middleware >> >> Mobile - +94773426635 >> Blog - *http://kishanthan.wordpress.com >> <http://kishanthan.wordpress.com>* >> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>* >> > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear.
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
