stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Eppel (meppel)" <mep...@cisco.com>
Subject Testing stratos 4.1: cartridge group deployment broken ? ... was ... RE: Validating the service group definition
Date Mon, 11 May 2015 22:00:47 GMT
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 <imesh@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
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:reka@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 <vishanthb@wso2.com<mailto:vishanthb@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
about me: http://about.me/vishanth



--
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007

Mime
View raw message