Hi Dilini, Thanks for the solution. That worked.
On Thu, Nov 3, 2016 at 10:00 PM, Dilini Muthumala <dil...@wso2.com> wrote: > 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.getInboundFaultFromMessageContex >> t(Utils.java:531) >> at org.apache.axis2.description.OutInAxisOperationClient.handle >> Response(OutInAxisOperation.java:370) >> at org.apache.axis2.description.OutInAxisOperationClient.send(O >> utInAxisOperation.java:445) >> at org.apache.axis2.description.OutInAxisOperationClient.execut >> eImpl(OutInAxisOperation.java:225) >> at org.apache.axis2.client.OperationClient.execute(OperationCli >> ent.java:149) >> at org.wso2.carbon.event.template.manager.stub.TemplateManagerA >> dminServiceStub.saveConfiguration(TemplateMana >> gerAdminServiceStub.java:2129) >> at org.wso2.analytics.apim.integration.common.clients.TemplateM >> anagerAdminServiceClient.saveConfiguration(TemplateMana >> gerAdminServiceClient.java:94) >> at org.wso2.analytics.apim.integration.tests.apim.analytics.API >> MAnalyticsBaseTestCase.saveConfiguration(APIMAnalyticsBaseTe >> stCase.java:328) >> at org.wso2.analytics.apim.integration.tests.apim.analytics.API >> MAnalyticsBaseTestCase.init(APIMAnalyticsBaseTestCase.java:104) >> at org.wso2.analytics.apim.integration.tests.apim.loganalyzer.L >> oganalyzerTestCase.setup(LoganalyzerTestCase.java:69) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce >> ssorImpl.java:57) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe >> thodAccessorImpl.java:43) >> >> >> >> >> [1] https://github.com/wso2/carbon-analytics-common/blob/mas >> ter/service-stubs/org.wso2.carbon.event.template.manager.stu >> b/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 > -- Thanks & Regards, Fazlan Nazeem *Software Engineer* *WSO2 Inc* Mobile : +94772338839 <%2B94%20%280%29%20773%20451194> fazl...@wso2.com
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev