Hi,

Im using the Test Automation Framework 4.3.1, and experiencing the $subject
in ML integration test. I get the following error.
However, superTenant gets created successfully. Also, if I remove any
tenants listed under the "Tenants" in automation.xml, server starts-up with
no errors. Attached the automation.xml.

Any idea whats going wrong here? Looking at the mail thread "[Dev] [ES]
Can't add tenants in latest ES pack" it seems this is something to do with
carbon-multitenancy 4.3.4.


*INFO  [org.wso2.carbon.integration.common.utils.ClientConnectionUtil] -
Waiting to login  user...*
*WARN  [org.apache.axiom.util.stax.dialect.StAXDialectDetector] - Unable to
determine dialect of the StAX implementation at
jar:file:/home/supun/.m2/repository/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v5/axiom-1.2.11.wso2v5.jar!/*
*INFO
 [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] -
[2015-03-16 17:41:26,676]  INFO
{org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
 '[email protected] [-1234]' logged in at [2015-03-16 17:41:26,675+0530]*
*INFO
 [org.wso2.carbon.integration.common.admin.client.AuthenticatorClient] -
Login Successful*
*INFO
 
[org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerManager]
- Server started successfully.*
*INFO
 [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] -
[2015-03-16 17:41:26,820]  INFO
{org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
 '[email protected] [-1234]' logged in at [2015-03-16 17:41:26,820+0530]*
*INFO
 [org.wso2.carbon.integration.common.admin.client.AuthenticatorClient] -
Login Successful*
*INFO
 [org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator] -
User - user3 created in tenant domain of  carbon.super*
*INFO
 [org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator] -
User - user4 created in tenant domain of  carbon.super*
*ERROR
[org.wso2.carbon.integration.common.admin.client.TenantManagementServiceClient]
- RemoteException thrown while adding user/tenants : *
*org.apache.axis2.AxisFault:
org/wso2/carbon/tenant/mgt/message/TenantDeleteClusterMessage*
* at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)*
* at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:367)*
* at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:413)*
* at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224)*
* at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)*
* at
org.wso2.carbon.tenant.mgt.stub.TenantMgtAdminServiceStub.getTenant(TenantMgtAdminServiceStub.java:1612)*
* at
org.wso2.carbon.integration.common.admin.client.TenantManagementServiceClient.addTenant(TenantManagementServiceClient.java:71)*
* at
org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator.populateUsers(UserPopulator.java:89)*
* at
org.wso2.carbon.integration.common.extensions.usermgt.UserPopulateExtension.onExecutionStart(UserPopulateExtension.java:59)*
* at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
* at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)*
* at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)*
* at java.lang.reflect.Method.invoke(Method.java:597)*
* at
org.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.executeExtensible(TestNGExtensionExecutor.java:75)*
* at
org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:47)*
* at org.testng.TestNG.runExecutionListeners(TestNG.java:1094)*
* at org.testng.TestNG.run(TestNG.java:1041)*
* at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)*
* at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)*
* at
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)*
* at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
* at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)*
* at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)*
* at java.lang.reflect.Method.invoke(Method.java:597)*
* at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)*
* at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)*
* at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)*
* at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)*
* at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)*
*ERROR
[org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener] -
Execution error occurred in
TestExecutionListener:-[Ljava.lang.StackTraceElement;@37b82d69*
*org.apache.maven.surefire.util.SurefireReflectionException:
java.lang.reflect.InvocationTargetException; nested exception is
java.lang.reflect.InvocationTargetException: null*
*java.lang.reflect.InvocationTargetException*
* at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
* at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)*
* at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)*
* at java.lang.reflect.Method.invoke(Method.java:597)*
* at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)*
* at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)*
* at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)*
* at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)*
* at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)*
*Caused by: java.lang.RuntimeException: Error on initializing test
environment *
* at
org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.handleException(TestExecutionListener.java:71)*
* at
org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:52)*
* at org.testng.TestNG.runExecutionListeners(TestNG.java:1094)*
* at org.testng.TestNG.run(TestNG.java:1041)*
* at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)*
* at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)*
* at
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)*
* ... 9 more*
*Caused by: java.lang.reflect.InvocationTargetException*
* at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
* at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)*
* at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)*
* at java.lang.reflect.Method.invoke(Method.java:597)*
* at
org.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.executeExtensible(TestNGExtensionExecutor.java:75)*
* at
org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:47)*
* ... 14 more*
*Caused by: java.rmi.RemoteException: RemoteException thrown while adding
user/tenants : ; nested exception is: *
* org.apache.axis2.AxisFault:
org/wso2/carbon/tenant/mgt/message/TenantDeleteClusterMessage*
* at
org.wso2.carbon.integration.common.admin.client.TenantManagementServiceClient.addTenant(TenantManagementServiceClient.java:84)*
* at
org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator.populateUsers(UserPopulator.java:89)*
* at
org.wso2.carbon.integration.common.extensions.usermgt.UserPopulateExtension.onExecutionStart(UserPopulateExtension.java:59)*
* ... 20 more*
*Caused by: org.apache.axis2.AxisFault:
org/wso2/carbon/tenant/mgt/message/TenantDeleteClusterMessage*
* at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)*
* at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:367)*
* at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:413)*
* at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224)*
* at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)*
* at
org.wso2.carbon.tenant.mgt.stub.TenantMgtAdminServiceStub.getTenant(TenantMgtAdminServiceStub.java:1612)*
* at
org.wso2.carbon.integration.common.admin.client.TenantManagementServiceClient.addTenant(TenantManagementServiceClient.java:71)*
* ... 22 more*


Regards,
Supun

-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
http://wso2.com/
lean | enterprise | middleware
Mobile : +94 716546324
<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
  ~
  ~ WSO2 Inc. licenses this file to you under the Apache License,
  ~ Version 2.0 (the "License"); you may not use this file except
  ~ in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~   http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing,
  ~ software distributed under the License is distributed on an
  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  ~ KIND, either express or implied.  See the License for the
  ~ specific language governing permissions and limitations
  ~ under the License.
  -->
  
<automation xmlns="automationSchema.xsd">
    <!--  =================================================  -->
    <!--                   Parameters                        -->
    <!--  =================================================  -->
    <configurations>
        <!--
         Change this to edit wait time for test artifact deployment
        -->
        <deploymentDelay>60000</deploymentDelay>
        <!--
         Change this to product|platform/cloud to execute test on specific environment
        -->
        <executionEnvironment>standalone</executionEnvironment>
        <!--
         Change this to user/tenant to execute test with user mode or tenant mode
        -->
        <multiTenantMode>false</multiTenantMode>
        <!--
         Change this to true if you want to generate coverage statistics
        -->
        <coverage>true</coverage>
        <!--
         Change this to true if you want to enable framework dashboard
        -->
        <frameworkDashboard>false</frameworkDashboard>
        <!--
         Browser type with used by framework to execute UI test, supported types - chrome|firefox|opera|ie|htmlUnit
        -->
    </configurations>
    <tools>
        <selenium>
            <!-- Change to enable remote webDriver -->
            <!-- URL of remote webDriver server  -->
            <remoteDriverUrl enable="false">http://10.100.2.51:4444/wd/hub/</remoteDriverUrl>

            <!-- Type of the browser selenium tests are running" -->
            <browser>
                <browserType>firefox</browserType>
                <!-- path to webDriver executable - required only for chrome-->
                <webdriverPath enable="false">/usr/bin/firefox</webdriverPath>
            </browser>
        </selenium>
    </tools>
    <!--
    Database configuration to be used for data service testing. DB configuration in dbs files will be replaced with
               below configuration at test run time
    -->
    <datasources>
        <datasource name="dataService">
            <url>jdbc:h2:testDB</url>
            <username>wso2carbon</username>
            <password>wso2carbon</password>
            <driverClassName>org.h2.Driver</driverClassName>
        </datasource>
        <datasource name="dataService1">
            <url>jdbc:h2:testDB</url>
            <username>wso2carbon</username>
            <password>wso2carbon</password>
            <driverClassName>org.h2.Driver</driverClassName>
        </datasource>
    </datasources>
    <security>
        <!--
                    KeyStore which will be used for encrypting/decrypting passwords
                    and other sensitive information.
        -->
        <keystore name="wso2">
            <!--  Keystore file location -->
            <fileName>keystores/products/wso2carbon.jks</fileName>
            <!--  Keystore type (JKS/PKCS12 etc.) -->
            <type>JKS</type>
            <!--  Keystore password -->
            <password>wso2carbon</password>
            <!--  Private Key alias -->
            <keyAlias>wso2carbon</keyAlias>
            <!--  Private Key password -->
            <keyPassword>wso2carbon</keyPassword>
        </keystore>
        <!--
                    System wide trust-store which is used to maintain the certificates of all
                    the trusted parties.
        -->
        <truststore name="wso2">
            <!--  trust-store file location  -->
            <fileName>client-truststore.jks</fileName>
            <!--  trust-store type (JKS/PKCS12 etc.)  -->
            <type>JKS</type>
            <!--  trust-store password  -->
            <password>wso2carbon</password>
        </truststore>
    </security>
    <featureManagement>
        <p2Repositories>
            <repository name="localDefault">
                <repository repo-id="online-repository">https://wso2.org/repo</repository>
                <repository repo-id="file-repository">file:///home/.m2/repository</repository>
            </repository>
        </p2Repositories>
    </featureManagement>
    <!--
               System wide users who to be registered at the test initiation
    -->
    <userManagement>
        <superTenant>
            <tenant domain="carbon.super" key="superTenant">
                <admin>
                    <user key="superAdmin">
                        <userName>admin</userName>
                        <password>admin</password>
                    </user>
                </admin>
                <users>
                    <user key="user1">
                        <userName>testuser11</userName>
                        <password>testuser11</password>
                    </user>
                    <user key="user2">
                        <userName>testuser21</userName>
                        <password>testuser21</password>
                    </user>
                </users>
            </tenant>
        </superTenant>
        <tenants>
            <tenant domain="wso2.com" key="wso2">
                <admin>
                    <user key="admin">
                        <userName>admin</userName>
                        <password>admin</password>
                    </user>
                </admin>
                <users>
                    <user key="user1">
                        <userName>testuser11</userName>
                        <password>testuser11</password>
                    </user>
                    <user key="user2">
                        <userName>testuser21</userName>
                        <password>testuser21</password>
                    </user>
                </users>
            </tenant>
        </tenants>
    </userManagement>
    <!--
   This section will initiate the initial deployment of the platform required by
   the test suites.
-->
    <platform>
        <!--
        cluster instance details to be used to platform test execution
        -->
        <productGroup name="ML" clusteringEnabled="false" default="true">
            <instance name="ml001" type="standalone" nonBlockingTransportEnabled="false">
                <hosts>
                    <host type="default">localhost</host>
                </hosts>
                <ports>
                    <port type="http">9763</port>
                    <port type="https">9443</port>
                </ports>
                <properties> </properties>
            </instance>
            <instance name="ml002" type="manager" nonBlockingTransportEnabled="false">
                <hosts>
                    <host type="default">localhost</host>
                </hosts>
                <ports>
                    <port type="http">9764</port>
                    <port type="https">9444</port>
                </ports>
                <properties> </properties>
            </instance>
        </productGroup>
    </platform>

    <listenerExtensions>

        <!--<className>org.wso2.carbon.automation.extentions.servers.wso2server.Wso2ServerExtention</className>-->
        <platformExecutionManager>
            <extentionClasses>
                <class>
                    <name>org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerExtension</name>
                    <!--<parameter name="-DportOffset" value="0" />-->
                    <!--<parameter name="cmdArg" value="debug 5005" />-->
                </class>
                <class>
                    <name>org.wso2.carbon.integration.common.extensions.usermgt.UserPopulateExtension</name>
                </class>
            </extentionClasses>
        </platformExecutionManager>
    
        <PlatformSuiteManager>
            <extentionClasses>
                <!--<className>org.wso2.carbon.automation.extentions.servers.wso2server.Wso2ServerExtention</className>-->
            </extentionClasses>
        </PlatformSuiteManager>

        <PlatformAnnotationTransferManager>
            <extentionClasses>
                <!--<className>org.wso2.carbon.automation.extentions.servers.wso2server.Wso2ServerExtention</className>-->
            </extentionClasses>
        </PlatformAnnotationTransferManager>

        <PlatformTestManager>
            <extentionClasses>
            </extentionClasses>
        </PlatformTestManager>

        <PlatformReportManager>
            <extentionClasses>
            </extentionClasses>
        </PlatformReportManager>

    </listenerExtensions>
</automation>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to