Hi Nuwan,

The Server does not start and the testing process hangs at 'INFO: Starting
Carbon Server...........' until the timeout.

Another way is that You can write an extension to start the servers
> separately


Yes. I also think this would be a better option. I'll look into that.

Thank you very much Nuwan.

Best regards.
Menaka



On Tue, Jan 3, 2017 at 1:58 PM, Nuwan Wimalasekara <nuw...@wso2.com> wrote:

> Hi Menaka,
>
> Is the server started on port 9763? Please make sure that service is
> started properly
>
> Another ways is that You can write a extension to start the servers
> separately.
>
> Thanks,
> Nuwanw
>
> On Tue, Jan 3, 2017 at 12:48 PM, Menaka Jayawardena <men...@wso2.com>
> wrote:
>
>> Hi,
>>
>> In IOTS we have 3 separate servers (Analytics, Broker and IOT Core),
>> which are invoked by a single shell script. (Or we can manually start each
>> server individually). And in order to execute a full IOT scenario, all the
>> three servers have to be up and running.
>>
>> There were some integration tests which were written before this change
>> (Separating the servers), which test scenarios such as user login, device
>> type installation, and virtual device enrollment etc.
>>
>> As Test Automation Framework looks for wso2server.sh in {carbon_home}/bin
>> directory, I renamed the script. (was start-all.sh)
>>
>> When running, I got the following error.
>>
>> I think as the servers are started in processes forked by the 'start-all'
>> script TAF does not have the access to the logs.
>>
>> Is there any fix for this issue?
>>
>> Can we change the script location in test configuration file?
>>
>> ------------- ERROR MSG ------------------
>>
>> INFO: Starting carbon server.............
>> Jan 03, 2017 12:08:15 PM org.wso2.carbon.automation.ext
>> ensions.servers.carbonserver.CarbonServerExtension handleException
>> SEVERE: Fail to start carbon server
>> java.lang.RuntimeException: Port 9763 is not open
>> at org.wso2.carbon.automation.extensions.servers.utils.ClientCo
>> nnectionUtil.waitForPort(ClientConnectionUtil.java:248)
>> at org.wso2.carbon.automation.extensions.servers.carbonserver.C
>> arbonServerManager.startServerUsingCarbonHome(CarbonServerMa
>> nager.java:120)
>> at org.wso2.carbon.automation.extensions.servers.carbonserver.T
>> estServerManager.startServer(TestServerManager.java:116)
>> at org.wso2.carbon.automation.extensions.servers.carbonserver.C
>> arbonServerExtension.onExecutionStart(CarbonServerExtension.java:50)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>> ssorImpl.java:62)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at org.wso2.carbon.automation.engine.extensions.TestNGExtension
>> Executor.executeExtensible(TestNGExtensionExecutor.java:75)
>> at org.wso2.carbon.automation.engine.testlisteners.TestExecutio
>> nListener.onExecutionStart(TestExecutionListener.java:47)
>> at org.testng.TestNG.runExecutionListeners(TestNG.java:1068)
>> at org.testng.TestNG.run(TestNG.java:1015)
>> at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGEx
>> ecutor.java:295)
>> at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(
>> TestNGXmlTestSuite.java:84)
>> at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestN
>> GProvider.java:90)
>> at org.apache.maven.surefire.booter.ForkedBooter.invokeProvider
>> InSameClassLoader(ForkedBooter.java:203)
>> at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInPro
>> cess(ForkedBooter.java:155)
>> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBoo
>> ter.java:103)
>>
>> Jan 03, 2017 12:08:15 PM org.wso2.carbon.automation.eng
>> ine.testlisteners.TestExecutionListener handleException
>> SEVERE: Execution error occurred in TestExecutionListener:-
>> java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>> ssorImpl.java:62)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at org.wso2.carbon.automation.engine.extensions.TestNGExtension
>> Executor.executeExtensible(TestNGExtensionExecutor.java:75)
>> at org.wso2.carbon.automation.engine.testlisteners.TestExecutio
>> nListener.onExecutionStart(TestExecutionListener.java:47)
>> at org.testng.TestNG.runExecutionListeners(TestNG.java:1068)
>> at org.testng.TestNG.run(TestNG.java:1015)
>> at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGEx
>> ecutor.java:295)
>> at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(
>> TestNGXmlTestSuite.java:84)
>> at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestN
>> GProvider.java:90)
>> at org.apache.maven.surefire.booter.ForkedBooter.invokeProvider
>> InSameClassLoader(ForkedBooter.java:203)
>> at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInPro
>> cess(ForkedBooter.java:155)
>> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBoo
>> ter.java:103)
>> Caused by: java.lang.RuntimeException: Fail to start carbon server
>> at org.wso2.carbon.automation.extensions.servers.carbonserver.C
>> arbonServerExtension.handleException(CarbonServerExtension.java:70)
>> at org.wso2.carbon.automation.extensions.servers.carbonserver.C
>> arbonServerExtension.onExecutionStart(CarbonServerExtension.java:54)
>> ... 14 more
>> Caused by: java.lang.RuntimeException: Port 9763 is not open
>> at org.wso2.carbon.automation.extensions.servers.utils.ClientCo
>> nnectionUtil.waitForPort(ClientConnectionUtil.java:248)
>> at org.wso2.carbon.automation.extensions.servers.carbonserver.C
>> arbonServerManager.startServerUsingCarbonHome(CarbonServerMa
>> nager.java:120)
>> at org.wso2.carbon.automation.extensions.servers.carbonserver.T
>> estServerManager.startServer(TestServerManager.java:116)
>> at org.wso2.carbon.automation.extensions.servers.carbonserver.C
>> arbonServerExtension.onExecutionStart(CarbonServerExtension.java:50)
>> ... 14 more
>>
>> -----------------------------------------------------------
>>
>>
>> Thanks and regards,
>> Menaka
>>
>> --
>> *Menaka Jayawardena*
>> *Software Engineer - WSO2 Inc*
>> *Tel : 071 350 5470 <071%20350%205470>/ 071 885 1183 <071%20885%201183>*
>> *LinkedIn: https://lk.linkedin.com/in/menakajayawardena
>> <https://lk.linkedin.com/in/menakajayawardena>*
>> *Blog: https://menakamadushanka.wordpress.com/
>> <https://menakamadushanka.wordpress.com/>*
>>
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Nuwan Wimalasekara
> Associate Technical Lead
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620 <+94%2071%20668%204620>
>
>
>
>


-- 
*Menaka Jayawardena*
*Software Engineer - WSO2 Inc*
*Tel : 071 350 5470/ 071 885 1183*
*LinkedIn: https://lk.linkedin.com/in/menakajayawardena
<https://lk.linkedin.com/in/menakajayawardena>*
*Blog: https://menakamadushanka.wordpress.com/
<https://menakamadushanka.wordpress.com/>*
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to