Hi all, We were able to get rid of this issue by excluding axis2-client dependency from org.wso2.carbon.analytics.hive.stub. This is because test framework uses different version of axis2-client dependency. Thanks Dharshana for looking into this.
thank you. On Wed, Apr 29, 2015 at 1:18 PM, Manjula Rathnayake <[email protected]> wrote: > Hi all, > > When we are running AF integration tests, below exception is thrown. This > class is loaded from [Loaded org.apache.axiom.om.OMXMLBuilderFactory from > file:/home/manjula/.m2/repository/org/apache/ws/commons/axiom/axiom-api/1.2.13/axiom-api-1.2.13.jar] > file. > Have we seen this issue before? > > setEnvironment(org.wso2.appfactory.tests.scenarios.ApplicationCreationTestCase) > Time elapsed: 2.137 sec <<< FAILURE! > java.lang.NoSuchMethodError: > org.apache.axiom.om.OMXMLBuilderFactory.createSOAPModelBuilder(Ljava/io/InputStream;Ljava/lang/String;)Lorg/apache/axiom/om/OMXMLParserWrapper; > at > org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:55) > at > org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:180) > at > org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:146) > at > org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:109) > at > org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:68) > at > org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:346) > 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.authenticator.stub.AuthenticationAdminStub.login(AuthenticationAdminStub.java:659) > at > org.wso2.carbon.integration.common.admin.client.AuthenticatorClient.login(AuthenticatorClient.java:59) > at > org.wso2.carbon.integration.common.utils.LoginLogoutClient.login(LoginLogoutClient.java:68) > at > org.wso2.appfactory.integration.test.utils.AppFactoryIntegrationTest.login(AppFactoryIntegrationTest.java:390) > at > org.wso2.appfactory.integration.test.utils.AppFactoryIntegrationTest.init(AppFactoryIntegrationTest.java:72) > at > org.wso2.appfactory.integration.test.utils.AppFactoryIntegrationTest.initWithTenantCreation(AppFactoryIntegrationTest.java:82) > at > org.wso2.appfactory.tests.scenarios.ApplicationCreationTestCase.setEnvironment(ApplicationCreationTestCase.java:38) > > [Loaded org.apache.maven.surefire.booter.ForkedBooter$1 from > file:/home/manjula/.m2/repository/org/apache/maven/surefire/surefire-booter/2.12.4/surefire-booter-2.12.4.jar] > [Loaded java.util.IdentityHashMap$IdentityHashMapIterator from > /home/manjula/custom/software/instaled/java/jdk1.7.0_51/jre/lib/rt.jar] > [Loaded java.util.IdentityHashMap$KeyIterator from > /home/manjula/custom/software/instaled/java/jdk1.7.0_51/jre/lib/rt.jar] > > Results : > > Failed tests: > setEnvironment(org.wso2.appfactory.tests.scenarios.ApplicationCreationTestCase): > org.apache.axiom.om.OMXMLBuilderFactory.createSOAPModelBuilder(Ljava/io/InputStream;Ljava/lang/String;)Lorg/apache/axiom/om/OMXMLParserWrapper; > > Tests run: 2, Failures: 1, Errors: 0, Skipped: 1 > > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 15.560s > [INFO] Finished at: Wed Apr 29 13:09:47 IST 2015 > [INFO] Final Memory: 93M/965M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) > on project org.wso2.appfactory.tests.scenarios: There are test failures. > [ERROR] > [ERROR] Please refer to > /home/manjula/source/wso2/git/product-af/modules/integration/tests-integration/tests-scenarios/target/surefire-reports > for the individual test results. > [ERROR] -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the > -e switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, > please read the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException > > thank you. > > -- > Manjula Rathnayaka > Software Engineer > WSO2, Inc. > Mobile:+94 77 743 1987 > -- Manjula Rathnayaka Software Engineer WSO2, Inc. Mobile:+94 77 743 1987
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
