Ok, thanks From: Imesh Gunaratne [mailto:im...@apache.org] Sent: Monday, May 11, 2015 6:39 PM To: dev Cc: Vishanth Balasubramaniam Subject: Re: Testing stratos 4.1: cartridge group deployment broken ? ... was ... RE: Validating the service group definition
Hi Martin, If you have dependencies defined in the cartridge group you might need to change the syntax to the new format. Please refer one of the samples in the samples folder or the other mail thread where we are discussing it. Thanks On Tue, May 12, 2015 at 3:30 AM, Martin Eppel (meppel) <mep...@cisco.com<mailto:mep...@cisco.com>> wrote: Hi Reka, Not sure if this is related but after I pulled the latest code from the master I fail to deploy cartridge groups which used to work before, see exception [1.]. Please see attached log file and cartridge group definition (cartridge-group.json). Latest commit: commit 9fd334e748dc9da51554355c8ac046048829d8d0 Author: Imesh Gunaratne <im...@apache.org<mailto:im...@apache.org>> Date: Mon May 11 19:50:05 2015 +0530 See group deployment after line in log: TID: [0] [STRATOS] [2015-05-11 21:40:18,991] DEBUG {org.apache.stratos.autoscaler.applications.ApplicationHolder} Thanks Martin [1.] Exception: TID: [0] [STRATOS] [2015-05-11 21:40:51,221] DEBUG {org.apache.stratos.autoscaler.services.impl.AutoscalerServiceImpl} - subGroups:size3 TID: [0] [STRATOS] [2015-05-11 21:40:51,221] DEBUG {org.apache.stratos.autoscaler.services.impl.AutoscalerServiceImpl} - Dependenciesorg.apache.stratos.autoscaler.pojo.Dependencies@f2718ed<mailto:Dependenciesorg.apache.stratos.autoscaler.pojo.Dependencies@f2718ed> TID: [0] [STRATOS] [2015-05-11 21:40:51,232] ERROR {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} - Could not add cartridge group org.apache.stratos.autoscaler.stub.AutoscalerServiceInvalidServiceGroupExceptionException: AutoscalerServiceInvalidServiceGroupExceptionException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at java.lang.Class.newInstance(Class.java:374) at org.apache.stratos.autoscaler.stub.AutoscalerServiceStub.addServiceGroup(AutoscalerServiceStub.java:4842) at org.apache.stratos.common.client.AutoscalerServiceClient.addServiceGroup(AutoscalerServiceClient.java:185) at org.apache.stratos.rest.endpoint.api.StratosApiV41Utils.addServiceGroup(StratosApiV41Utils.java:1058) at org.apache.stratos.rest.endpoint.api.StratosApiV41.addServiceGroup(StratosApiV41.java:447) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180) at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194) at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:100) at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57) at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271) at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239) at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223) at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203) From: Reka Thirunavukkarasu [mailto:r...@wso2.com<mailto:r...@wso2.com>] Sent: Wednesday, May 06, 2015 5:48 AM To: Vishanth Balasubramaniam Cc: dev Subject: Re: Validating the service group definition Thanks Vishanth for fixing those issues. Will verify it and push it master.. Thanks, Reka On Wed, May 6, 2015 at 6:11 PM, Vishanth Balasubramaniam <vishan...@wso2.com<mailto:vishan...@wso2.com>> wrote: Hi Devs, I have added the validation when adding a service group to check the following * duplicate cartridge name in the same group level * duplicate group name in the same group level * cyclic behaviour of groups, i.e. when a parent group name is given again in any of its sub-groups. Please review and merge the pull request [1]. [1] - https://github.com/apache/stratos/pull/296 Regards, Vishanth -- Vishanth Balasubramaniam Software Engineer WSO2 Inc.; http://wso2.com<http://wso2.com/> lean.enterprise.middleware mobile: +94771737718<tel:%2B94771737718> about me: http://about.me/vishanth -- Reka Thirunavukkarasu Senior Software Engineer, WSO2, Inc.:http://wso2.com, Mobile: +94776442007<tel:%2B94776442007> -- Imesh Gunaratne Senior Technical Lead, WSO2 Committer & PMC Member, Apache Stratos