Hi Fazlan, In earlier versions of TemplateManagerAdminService <https://github.com/wso2/carbon-analytics-common/blob/master/service-stubs/org.wso2.carbon.event.template.manager.stub/src/main/resources/TemplateManagerAdminService.wsdl> , saveConfiguration operation served the purposes of creating a new configuration, as well as editing an existing configuration. Due to certain issues we observed, we changed the saveConfiguration implementation in such a way that, it will only serve the purpose of creating a new configuration. Having done that, we also introduced a new method for editing an existing a configuration.
In the given testcase, I think, the client's intention is to over-write an existing configuration. Therefore, instead of using 'saveConfiguration' operation, please use 'editConfiguration' operation. Please refer [1] for a similar fix. [1] https://github.com/wso2/product-cep/commit/b07d1c0df988972812ac2f08a8974cd15826cfd5 Thank you, Dilini On Thu, Nov 3, 2016 at 8:00 PM, Fazlan Nazeem <fazl...@wso2.com> wrote: > Hi all, > > We are seeing the following exception during integration tests for > analytics-apim when upgraded to carbon-analytics-common 5.1.3. I see there > has been a change in the TemplateManagerAdminServceStub wsdl[1] which > relates to this. Any idea on how we could solve this? > > > ERROR [org.wso2.analytics.apim.integration.common.clients. > TemplateManagerAdminServiceClient] - RemoteException > org.apache.axis2.AxisFault: Could not edit the Scenario because another > scenario with same name 'RequestSummarizer' already exists. > at org.apache.axis2.util.Utils.getInboundFaultFromMessageCont > ext(Utils.java:531) > at org.apache.axis2.description.OutInAxisOperationClient. > handleResponse(OutInAxisOperation.java:370) > at org.apache.axis2.description.OutInAxisOperationClient.send( > OutInAxisOperation.java:445) > at org.apache.axis2.description.OutInAxisOperationClient. > executeImpl(OutInAxisOperation.java:225) > at org.apache.axis2.client.OperationClient.execute( > OperationClient.java:149) > at org.wso2.carbon.event.template.manager.stub. > TemplateManagerAdminServiceStub.saveConfiguration( > TemplateManagerAdminServiceStub.java:2129) > at org.wso2.analytics.apim.integration.common.clients. > TemplateManagerAdminServiceClient.saveConfiguration( > TemplateManagerAdminServiceClient.java:94) > at org.wso2.analytics.apim.integration.tests.apim.analytics. > APIMAnalyticsBaseTestCase.saveConfiguration(APIMAnalyticsBaseTestCase. > java:328) > at org.wso2.analytics.apim.integration.tests.apim.analytics. > APIMAnalyticsBaseTestCase.init(APIMAnalyticsBaseTestCase.java:104) > at org.wso2.analytics.apim.integration.tests.apim.loganalyzer. > LoganalyzerTestCase.setup(LoganalyzerTestCase.java:69) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke( > NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:43) > > > > > [1] https://github.com/wso2/carbon-analytics-common/blob/ > master/service-stubs/org.wso2.carbon.event.template.manager. > stub/src/main/resources/TemplateManagerAdminService.wsdl > -- > Thanks & Regards, > > Fazlan Nazeem > > *Software Engineer* > > *WSO2 Inc* > Mobile : +94772338839 > <%2B94%20%280%29%20773%20451194> > fazl...@wso2.com > -- *Dilini Muthumala* Senior Software Engineer, WSO2 Inc. *E-mail :* dil...@wso2.com *Mobile: *+94 713-400-029
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev