Hi Akalanka,

Can you point me to the test case which you are trying to run in parallel.

Regards,
Malintha

On Thu, Nov 5, 2015 at 11:47 AM, Akalanka Pagoda Arachchi <
[email protected]> wrote:

> Hi All,
>
> When we configure to run automation tests in parallel, following error is
> thrown intermittently.
>
> I"ve enabled to run 10 threads in parallel with the following config in
> testng.xml file.
>
> <test name="tests-amqp-parallel" preserve-order="false" parallel="true"
> thread-count="10">
>
> Stacktrace
>
> java.lang.NullPointerException
>       at org.apache.xerces.dom.ParentNode.nodeListGetLength(Unknown Source)
>       at org.apache.xerces.dom.ParentNode.getLength(Unknown Source)
>       at 
> org.wso2.carbon.automation.engine.context.AutomationContext.extractUser(AutomationContext.java:307)
>       at 
> org.wso2.carbon.automation.engine.context.AutomationContext.getSuperTenant(AutomationContext.java:286)
>       at 
> org.wso2.carbon.automation.engine.context.AutomationContext.getContextTenant(AutomationContext.java:336)
>       at 
> org.wso2.carbon.automation.engine.context.AutomationContext.getContextUrls(AutomationContext.java:477)
>       at 
> org.wso2.mb.integration.common.utils.backend.MBIntegrationBaseTest.init(MBIntegrationBaseTest.java:59)
>       at 
> org.wso2.mb.integration.tests.amqp.functional.AutoAcknowledgementsTestCase.prepare(AutoAcknowledgementsTestCase.java:61)
>
>
> There are kind of similar issue reported regarding DOM usage with threads 
> [1]. This is happening when initialising each test with following two lines.
>
>
>             automationContext = new AutomationContext("MB", userMode);
>
>             backendURL = automationContext.getContextUrls().getBackEndUrl();
>
>
> Any idea on this?
>
>
> Thanks,
>
> Akalanka
>
>
> [1] - https://issues.apache.org/jira/browse/XERCESJ-727
>
>
>
>
> --
> *Darshana Akalanka Pagoda Arachchi,*
> *Software Engineer*
> *078-4721791*
>



-- 
*Malintha Adikari*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

Mobile: +94 71 2312958
Blog:    http://malinthas.blogspot.com
Page:   http://about.me/malintha
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to