Hi,

We are in the process of moving existing test cases to TAF 4.3.1 and
experienced following issue when we try to start another IS server.

automation.xml configuration -

            <instance name="identity002" type="standalone"
nonBlockingTransportEnabled="false">
                <hosts>
                    <host type="default">localhost</host>
                </hosts>
                <ports>
                    <port type="http">*9764*</port>
                    <port type="https">9444</port>
                </ports>
                <properties>
                </properties>
            </instance>

Code -

        Map<String, String> startupParameterMap = new HashMap<String,
String>();
        startupParameterMap.put("-DportOffset", "1");
        CarbonTestServerManager server1 = new CarbonTestServerManager(new
AutomationContext("IDENTITY",  "identity002",
TestUserMode.SUPER_TENANT_ADMIN), System.getProperty("carbon.zip"),
startupParameterMap);

Error -

testInit(org.wso2.identity.integration.test.provisioning.ProvisioningTestCase)
 Time elapsed: 330.967 sec  <<< FAILURE!
java.lang.RuntimeException: Port *9765* is not open
at
org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil.waitForPort(ClientConnectionUtil.java:151)
at
org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.startServerUsingCarbonHome(CarbonServerManager.java:136)
at
org.wso2.carbon.automation.extensions.servers.carbonserver.TestServerManager.startServer(TestServerManager.java:100)
at
org.wso2.identity.integration.common.utils.CarbonTestServerManager.startServer(CarbonTestServerManager.java:29)
at
org.wso2.carbon.automation.extensions.servers.carbonserver.MultipleServersManager.startServers(MultipleServersManager.java:46)
at
org.wso2.identity.integration.test.provisioning.ProvisioningTestCase.startOtherCarbonServers(ProvisioningTestCase.java:438)
at
org.wso2.identity.integration.test.provisioning.ProvisioningTestCase.testInit(ProvisioningTestCase.java:91)


Issue is it refers to port 9765 even it should be referring to port 9764.

So I changed TAF version to 4.3.2-SNAPSHOT and this issue get resolved. But
I can see following error log with TAF 4.3.2-SNAPSHOT. This happens because
we are trying to access the server before it get started properly.

INFO
 [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil]
- Waiting for user login...
INFO
 [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil]
- https://localhost:9444/services
INFO  [org.apache.axis2.transport.http.HTTPSender] - Unable to sendViaPost
to url[https://localhost:9444/services/AuthenticationAdmin]
org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found
at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:330)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:196)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
....

ERROR
[org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil]
- Unable to login as user..


Thanks,
Thanuja.

-- 
*Thanuja Lakmal*
Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94715979891 +94758009992
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to