You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by chris snow <ch...@gmail.com> on 2013/12/10 01:58:30 UTC

commit 522db60 - build error: Method org.testng.internal.ConfigurationMethod.startServer() didn't finish within the time-out 300000

I'm hitting the following error when running "mvn install"

---
startServer(org.apache.stratos.manager.integration.tests.StratosManagerTestServerManager)
 Time elapsed: 300.909 sec  <<< FAILURE!
org.testng.internal.thread.ThreadTimeoutException: Method
org.testng.internal.ConfigurationMethod.startServer() didn't finish within
the time-out 300000
at java.lang.Thread.sleep(Native Method)
at
org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForPort(ClientConnectionUtil.java:114)
at
org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:104)
at
org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:49)
at
org.wso2.carbon.integration.framework.TestServerManager.startServer(TestServerManager.java:80)
at
org.apache.stratos.manager.integration.tests.StratosManagerTestServerManager.startServer(StratosManagerTestServerManager.java:40)

[2013-12-09 23:28:00,965]  INFO
{org.wso2.carbon.integration.framework.utils.ServerUtils} -  Shutting down
server...
---

It looks as if a previous test is starting an instance of stratos (and
grabbing the ports) and that instance is not getting closed down:

---
snowc    12403  1509  0 Dec09 pts/4    00:00:00 sh bin/stratos.sh
-DportOffset=0
-Demma.properties=/home/snowc/incubator-stratos/products/stratos-controller/modules/integration/targ
snowc    12422 12403  0 Dec09 pts/4    00:00:22
/usr/lib/jvm/java-7-openjdk-amd64/bin/java -Xbootclasspath/a: -Xms256m
-Xmx1024m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError
---

Is anyone else running into this issue?

Re: commit 522db60 - build error: Method org.testng.internal.ConfigurationMethod.startServer() didn't finish within the time-out 300000

Posted by chris snow <ch...@gmail.com>.
Build seems to be working ok now.


On Tue, Dec 10, 2013 at 3:42 AM, Nirmal Fernando <ni...@gmail.com>wrote:

>
>
>
> On Tue, Dec 10, 2013 at 6:28 AM, chris snow <ch...@gmail.com> wrote:
>
>> I'm hitting the following error when running "mvn install"
>>
>> ---
>> startServer(org.apache.stratos.manager.integration.tests.StratosManagerTestServerManager)
>>  Time elapsed: 300.909 sec  <<< FAILURE!
>> org.testng.internal.thread.ThreadTimeoutException: Method
>> org.testng.internal.ConfigurationMethod.startServer() didn't finish within
>> the time-out 300000
>> at java.lang.Thread.sleep(Native Method)
>>  at
>> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForPort(ClientConnectionUtil.java:114)
>> at
>> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:104)
>>  at
>> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:49)
>> at
>> org.wso2.carbon.integration.framework.TestServerManager.startServer(TestServerManager.java:80)
>>  at
>> org.apache.stratos.manager.integration.tests.StratosManagerTestServerManager.startServer(StratosManagerTestServerManager.java:40)
>>
>> [2013-12-09 23:28:00,965]  INFO
>> {org.wso2.carbon.integration.framework.utils.ServerUtils} -  Shutting down
>> server...
>> ---
>>
>> It looks as if a previous test is starting an instance of stratos (and
>> grabbing the ports) and that instance is not getting closed down:
>>
>
> Yes this could be the reason.  Can we add a sleep just before the second
> test started and let the ports to be free?
>
>>
>> ---
>> snowc    12403  1509  0 Dec09 pts/4    00:00:00 sh bin/stratos.sh
>> -DportOffset=0
>> -Demma.properties=/home/snowc/incubator-stratos/products/stratos-controller/modules/integration/targ
>> snowc    12422 12403  0 Dec09 pts/4    00:00:22
>> /usr/lib/jvm/java-7-openjdk-amd64/bin/java -Xbootclasspath/a: -Xms256m
>> -Xmx1024m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError
>> ---
>>
>> Is anyone else running into this issue?
>>
>
> I guess this happens intermittently.
>
> --
> Best Regards,
> Nirmal
>
> Nirmal Fernando.
> PPMC Member & Committer of Apache Stratos,
> Senior Software Engineer, WSO2 Inc.
>
> Blog: http://nirmalfdo.blogspot.com/
>



-- 
Check out my professional profile and connect with me on LinkedIn.
http://lnkd.in/cw5k69

Re: commit 522db60 - build error: Method org.testng.internal.ConfigurationMethod.startServer() didn't finish within the time-out 300000

Posted by Nirmal Fernando <ni...@gmail.com>.
On Tue, Dec 10, 2013 at 6:28 AM, chris snow <ch...@gmail.com> wrote:

> I'm hitting the following error when running "mvn install"
>
> ---
> startServer(org.apache.stratos.manager.integration.tests.StratosManagerTestServerManager)
>  Time elapsed: 300.909 sec  <<< FAILURE!
> org.testng.internal.thread.ThreadTimeoutException: Method
> org.testng.internal.ConfigurationMethod.startServer() didn't finish within
> the time-out 300000
> at java.lang.Thread.sleep(Native Method)
>  at
> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForPort(ClientConnectionUtil.java:114)
> at
> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:104)
>  at
> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:49)
> at
> org.wso2.carbon.integration.framework.TestServerManager.startServer(TestServerManager.java:80)
>  at
> org.apache.stratos.manager.integration.tests.StratosManagerTestServerManager.startServer(StratosManagerTestServerManager.java:40)
>
> [2013-12-09 23:28:00,965]  INFO
> {org.wso2.carbon.integration.framework.utils.ServerUtils} -  Shutting down
> server...
> ---
>
> It looks as if a previous test is starting an instance of stratos (and
> grabbing the ports) and that instance is not getting closed down:
>

Yes this could be the reason.  Can we add a sleep just before the second
test started and let the ports to be free?

>
> ---
> snowc    12403  1509  0 Dec09 pts/4    00:00:00 sh bin/stratos.sh
> -DportOffset=0
> -Demma.properties=/home/snowc/incubator-stratos/products/stratos-controller/modules/integration/targ
> snowc    12422 12403  0 Dec09 pts/4    00:00:22
> /usr/lib/jvm/java-7-openjdk-amd64/bin/java -Xbootclasspath/a: -Xms256m
> -Xmx1024m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError
> ---
>
> Is anyone else running into this issue?
>

I guess this happens intermittently.

-- 
Best Regards,
Nirmal

Nirmal Fernando.
PPMC Member & Committer of Apache Stratos,
Senior Software Engineer, WSO2 Inc.

Blog: http://nirmalfdo.blogspot.com/

Re: commit 522db60 - build error: Method org.testng.internal.ConfigurationMethod.startServer() didn't finish within the time-out 300000

Posted by Imesh Gunaratne <im...@apache.org>.
Hi Chris,

I just did a clean build (mvn clean install) with a git pull but didn't
encounter this problem.
I wonder this is something to do with Open JDK.

Thanks
Imesh


On Tue, Dec 10, 2013 at 6:28 AM, chris snow <ch...@gmail.com> wrote:

> I'm hitting the following error when running "mvn install"
>
> ---
> startServer(org.apache.stratos.manager.integration.tests.StratosManagerTestServerManager)
>  Time elapsed: 300.909 sec  <<< FAILURE!
> org.testng.internal.thread.ThreadTimeoutException: Method
> org.testng.internal.ConfigurationMethod.startServer() didn't finish within
> the time-out 300000
> at java.lang.Thread.sleep(Native Method)
>  at
> org.wso2.carbon.integration.framework.ClientConnectionUtil.waitForPort(ClientConnectionUtil.java:114)
> at
> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:104)
>  at
> org.wso2.carbon.integration.framework.utils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:49)
> at
> org.wso2.carbon.integration.framework.TestServerManager.startServer(TestServerManager.java:80)
>  at
> org.apache.stratos.manager.integration.tests.StratosManagerTestServerManager.startServer(StratosManagerTestServerManager.java:40)
>
> [2013-12-09 23:28:00,965]  INFO
> {org.wso2.carbon.integration.framework.utils.ServerUtils} -  Shutting down
> server...
> ---
>
> It looks as if a previous test is starting an instance of stratos (and
> grabbing the ports) and that instance is not getting closed down:
>
> ---
> snowc    12403  1509  0 Dec09 pts/4    00:00:00 sh bin/stratos.sh
> -DportOffset=0
> -Demma.properties=/home/snowc/incubator-stratos/products/stratos-controller/modules/integration/targ
> snowc    12422 12403  0 Dec09 pts/4    00:00:22
> /usr/lib/jvm/java-7-openjdk-amd64/bin/java -Xbootclasspath/a: -Xms256m
> -Xmx1024m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError
> ---
>
> Is anyone else running into this issue?
>