Hi Chanaka, I have attached the log file.
Thanks, Iqbal On Tue, Feb 24, 2015 at 4:38 PM, Chanaka Fernando <[email protected]> wrote: > Hi Irham, > > Can you attach the stack trace for this error? > > inboundEndpointDTO object is not going to be a null since it is taken > through the iteration. There is no need to null check for that object. > > > Thanks, > Chanaka > > On Tue, Feb 24, 2015 at 4:31 PM, Irham Iqbal <[email protected]> wrote: > >> Hi Chanaka, >> >> I am getting this exception for test cases which doesn't have restart and >> also I have added a new method to ESBIntegrationTest class as following >> and i am calling that after restart the server to update sessionCookie >> variable. >> >> protected void reloadSessionCookie() throws Exception { >> this.context = new AutomationContext("ESB", >> TestUserMode.SUPER_TENANT_ADMIN); >> this.sessionCookie = this.login(this.context); >> } >> >> When i debug the code, I found in the same class(ESBIntegrationTest) >> inside method deleteInboundEndpoints() >> >> inboundEndpointDTO.getName() returns null even though inboundEndpointDTO >> object is not null. Now we have a condtion to check inboundEndpointDTO !=null >> >> If we check inboundEndpointDTO.getName() != null can solve the issue i think >> >> Thanks, >> >> Irham >> >> >> >> >> >> On Tue, Feb 24, 2015 at 3:29 PM, Chanaka Fernando <[email protected]> >> wrote: >> >>> Hi Irham, >>> >>> The root cause for this issue is that you have restarted the server >>> within your test class but you haven't initialized with super.init() after >>> that restart. Then, when you are trying to call the super.cleanup() method, >>> it will throw this exception since it cannot access the relevant admin >>> services since the sessionCookie has expired after the restart. To fix this >>> issue, you need to call the super.init() method after restart. >>> >>> >>> Thanks, >>> Chanaka >>> >>> On Tue, Feb 24, 2015 at 1:34 PM, Chanaka Fernando <[email protected]> >>> wrote: >>> >>>> Hi Iqbal, >>>> >>>> We are currently looking in to this. >>>> >>>> >>>> Thanks, >>>> Chanaka >>>> >>>> On Tue, Feb 24, 2015 at 11:28 AM, Irham Iqbal <[email protected]> wrote: >>>> >>>>> Hi, >>>>> >>>>> In ESB tests inside @AfterClass method when calling super.cleanup(); I >>>>> am getting the following exception. >>>>> >>>>> Code: >>>>> >>>>> @AfterClass(alwaysRun = true) >>>>> public void deleteService() throws Exception { >>>>> super.cleanup(); >>>>> } >>>>> >>>>> >>>>> Exception: >>>>> >>>>> java.lang.Exception: Error when deleting InboundEndpoint >>>>> at >>>>> org.wso2.esb.integration.common.utils.ESBIntegrationTest.deleteInboundEndpoints(ESBIntegrationTest.java:297) >>>>> at >>>>> org.wso2.esb.integration.common.utils.ESBIntegrationTest.cleanup(ESBIntegrationTest.java:143) >>>>> at >>>>> org.wso2.carbon.esb.mailto.transport.receiver.test.MailToTransportActionAfterFailureDELETETestCase.deleteService(MailToTransportActionAfterFailureDELETETestCase.java:76) >>>>> Caused by: java.lang.NullPointerException >>>>> at >>>>> org.wso2.esb.integration.common.utils.ESBIntegrationTest.deleteInboundEndpoints(ESBIntegrationTest.java:292) >>>>> ... 36 more >>>>> >>>>> Thanks, >>>>> >>>>> Iqbal >>>>> >>>>> >>>>> -- >>>>> Irham Iqbal >>>>> Software Engineer - Test Automation >>>>> WSO2, Inc.: http://wso2.com >>>>> lean. enterprise. middleware >>>>> phone: +94 777888452 >>>>> >>>>> _______________________________________________ >>>>> Dev mailing list >>>>> [email protected] >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> -- >>>> Chanaka Fernando >>>> Technical Lead >>>> WSO2, Inc.; http://wso2.com >>>> lean.enterprise.middleware >>>> >>>> mobile: +94 773337238 >>>> Blog : http://soatutorials.blogspot.com >>>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 >>>> Twitter:https://twitter.com/chanakaudaya >>>> Wordpress:http://chanakaudaya.wordpress.com >>>> >>>> >>>> >>>> >>> >>> >>> -- >>> -- >>> Chanaka Fernando >>> Technical Lead >>> WSO2, Inc.; http://wso2.com >>> lean.enterprise.middleware >>> >>> mobile: +94 773337238 >>> Blog : http://soatutorials.blogspot.com >>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 >>> Twitter:https://twitter.com/chanakaudaya >>> Wordpress:http://chanakaudaya.wordpress.com >>> >>> >>> >>> >> >> >> -- >> Irham Iqbal >> Software Engineer - Test Automation >> WSO2, Inc.: http://wso2.com >> lean. enterprise. middleware >> phone: +94 777888452 >> > > > > -- > -- > Chanaka Fernando > Technical Lead > WSO2, Inc.; http://wso2.com > lean.enterprise.middleware > > mobile: +94 773337238 > Blog : http://soatutorials.blogspot.com > LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 > Twitter:https://twitter.com/chanakaudaya > Wordpress:http://chanakaudaya.wordpress.com > > > > -- Irham Iqbal Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 777888452
error.log
Description: Binary data
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
