Fixed it.

Thanks.

On Tue, Nov 11, 2014 at 12:52 PM, Lahiru Sandaruwan <lahi...@wso2.com>
wrote:

> I will look into this.
>
> On Tue, Nov 11, 2014 at 12:45 PM, Isuru Haththotuwa <isu...@apache.org>
> wrote:
>
>> Hi,
>>
>> Seems to be an issue with the element 'scalingOrders'. Is this something
>> that got added recently?
>>
>> On Tue, Nov 11, 2014 at 12:22 PM, Manula Chathurika Thantriwatte <
>> manu...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> I have successfully deploy one group. But after deploying the second
>>> group I get following error.
>>>
>>> TID: [0] [STRATOS] [2014-11-11 06:43:51,795] ERROR
>>> {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper} -  Error
>>> while fulfilling the request
>>> org.apache.stratos.rest.endpoint.exception.RestAPIException
>>> at
>>> org.apache.stratos.rest.endpoint.api.StratosApiV41Utils.deployServiceGroupDefinition(StratosApiV41Utils.java:1461)
>>> at
>>> org.apache.stratos.rest.endpoint.api.StratosApiV41.deployServiceGroupDefinition(StratosApiV41.java:195)
>>> 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)
>>> at
>>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
>>> at
>>> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
>>> at
>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
>>> at
>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
>>> at
>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>> at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>> at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>>> at
>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>>> at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>>> at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>>> at
>>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
>>> at
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
>>> at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>>> at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>>> at
>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
>>> at
>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>>> at
>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>> at java.lang.Thread.run(Thread.java:744)
>>> Caused by: org.apache.stratos.manager.exception.ADCException
>>> at
>>> org.apache.stratos.manager.grouping.deployer.DefaultServiceGroupDeployer.getServiceGroupDefinition(DefaultServiceGroupDeployer.java:197)
>>> at
>>> org.apache.stratos.manager.grouping.deployer.DefaultServiceGroupDeployer.deployServiceGroupDefinition(DefaultServiceGroupDeployer.java:146)
>>> at
>>> org.apache.stratos.manager.grouping.manager.ServiceGroupingManager.deployServiceGroupDefinition(ServiceGroupingManager.java:45)
>>> at
>>> org.apache.stratos.rest.endpoint.api.StratosApiV41Utils.deployServiceGroupDefinition(StratosApiV41Utils.java:1454)
>>> ... 45 more
>>> Caused by: org.apache.axis2.AxisFault:
>>> org.apache.axis2.databinding.ADBException: Unexpected subelement {
>>> http://pojo.autoscaler.stratos.apache.org/xsd}scalingOrders
>>> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>>> at
>>> org.apache.stratos.autoscaler.stub.AutoScalerServiceStub.fromOM(AutoScalerServiceStub.java:13333)
>>> at
>>> org.apache.stratos.autoscaler.stub.AutoScalerServiceStub.getServiceGroup(AutoScalerServiceStub.java:3163)
>>> at
>>> org.apache.stratos.manager.client.AutoscalerServiceClient.getServiceGroup(AutoscalerServiceClient.java:232)
>>> at
>>> org.apache.stratos.manager.grouping.deployer.DefaultServiceGroupDeployer.getServiceGroupDefinition(DefaultServiceGroupDeployer.java:191)
>>> ... 48 more
>>> Caused by: java.lang.Exception:
>>> org.apache.axis2.databinding.ADBException: Unexpected subelement {
>>> http://pojo.autoscaler.stratos.apache.org/xsd}scalingOrders
>>> at
>>> org.apache.stratos.autoscaler.pojo.xsd.Dependencies$Factory.parse(Dependencies.java:651)
>>> at
>>> org.apache.stratos.autoscaler.pojo.xsd.ServiceGroup$Factory.parse(ServiceGroup.java:833)
>>> at
>>> org.apache.stratos.autoscaler.stub.api.GetServiceGroupResponse$Factory.parse(GetServiceGroupResponse.java:417)
>>> at
>>> org.apache.stratos.autoscaler.stub.AutoScalerServiceStub.fromOM(AutoScalerServiceStub.java:12844)
>>> ... 51 more
>>> Caused by: org.apache.axis2.databinding.ADBException: Unexpected
>>> subelement {http://pojo.autoscaler.stratos.apache.org/xsd}scalingOrders
>>> at
>>> org.apache.stratos.autoscaler.pojo.xsd.Dependencies$Factory.parse(Dependencies.java:645)
>>> ... 54 more
>>> TID: [0] [STRATOS] [2014-11-11 06:44:44,729] ERROR
>>> {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper} -  Error
>>> while fulfilling the request
>>> org.apache.stratos.rest.endpoint.exception.RestAPIException
>>> at
>>> org.apache.stratos.rest.endpoint.api.StratosApiV41Utils.getServiceGroupDefinition(StratosApiV41Utils.java:1477)
>>> at
>>> org.apache.stratos.rest.endpoint.api.StratosApiV41.getServiceGroupDefinition(StratosApiV41.java:207)
>>> 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)
>>> at
>>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
>>> at
>>> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
>>> at
>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
>>> at
>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:211)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
>>> at
>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>> at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>> at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>>> at
>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>>> at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>>> at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>>> at
>>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
>>> at
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
>>> at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>>> at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>>> at
>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
>>> at
>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>>> at
>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>> at java.lang.Thread.run(Thread.java:744)
>>> Caused by: org.apache.stratos.manager.exception.ADCException
>>> at
>>> org.apache.stratos.manager.grouping.deployer.DefaultServiceGroupDeployer.getServiceGroupDefinition(DefaultServiceGroupDeployer.java:197)
>>> at
>>> org.apache.stratos.manager.grouping.manager.ServiceGroupingManager.getServiceGroupDefinition(ServiceGroupingManager.java:50)
>>> at
>>> org.apache.stratos.rest.endpoint.api.StratosApiV41Utils.getServiceGroupDefinition(StratosApiV41Utils.java:1472)
>>> ... 45 more
>>> Caused by: org.apache.axis2.AxisFault:
>>> org.apache.axis2.databinding.ADBException: Unexpected subelement {
>>> http://pojo.autoscaler.stratos.apache.org/xsd}scalingOrders
>>> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>>> at
>>> org.apache.stratos.autoscaler.stub.AutoScalerServiceStub.fromOM(AutoScalerServiceStub.java:13333)
>>> at
>>> org.apache.stratos.autoscaler.stub.AutoScalerServiceStub.getServiceGroup(AutoScalerServiceStub.java:3163)
>>> at
>>> org.apache.stratos.manager.client.AutoscalerServiceClient.getServiceGroup(AutoscalerServiceClient.java:232)
>>> at
>>> org.apache.stratos.manager.grouping.deployer.DefaultServiceGroupDeployer.getServiceGroupDefinition(DefaultServiceGroupDeployer.java:191)
>>> ... 47 more
>>> Caused by: java.lang.Exception:
>>> org.apache.axis2.databinding.ADBException: Unexpected subelement {
>>> http://pojo.autoscaler.stratos.apache.org/xsd}scalingOrders
>>> at
>>> org.apache.stratos.autoscaler.pojo.xsd.Dependencies$Factory.parse(Dependencies.java:651)
>>> at
>>> org.apache.stratos.autoscaler.pojo.xsd.ServiceGroup$Factory.parse(ServiceGroup.java:833)
>>> at
>>> org.apache.stratos.autoscaler.stub.api.GetServiceGroupResponse$Factory.parse(GetServiceGroupResponse.java:417)
>>> at
>>> org.apache.stratos.autoscaler.stub.AutoScalerServiceStub.fromOM(AutoScalerServiceStub.java:12844)
>>> ... 50 more
>>> Caused by: org.apache.axis2.databinding.ADBException: Unexpected
>>> subelement {http://pojo.autoscaler.stratos.apache.org/xsd}scalingOrders
>>> at
>>> org.apache.stratos.autoscaler.pojo.xsd.Dependencies$Factory.parse(Dependencies.java:645)
>>> ... 53 more
>>>
>>> My group definition as follows.
>>>
>>> {
>>>   "name": "group1",
>>>   "cartridges": [
>>>       "tomcat2"
>>>   ],
>>>   "dependencies": {
>>>     "terminationBehaviour": "terminate-none"
>>>   }
>>> }
>>>
>>> {
>>>     "name": "group2",
>>>     "subGroups": [
>>>         "group1"
>>>     ],
>>>     "cartridges": [
>>>         "tomcat1"
>>>     ],
>>>     "dependencies": {
>>>         "startupOrders": [
>>>                 "group.group1,cartridge.tomcat1"
>>>         ],
>>>         "terminationBehaviour": "terminate-dependents"
>>>     }
>>> }
>>>
>>> I have already deployed the dependent cartridges.
>>>
>>> Thanks !
>>>
>>> --
>>> Regards,
>>> Manula Chathurika Thantriwatte
>>> Software Engineer
>>> WSO2 Inc. : http://wso2.com
>>> lean . enterprise . middleware
>>>
>>> email : manu...@wso2.com / man...@apache.org
>>> phone : +94 772492511
>>> blog : http://manulachathurika.blogspot.com/
>>>
>>> --
>>> <http://manulachathurika.blogspot.com/>
>>> <http://manulachathurika.blogspot.com/>
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> <http://manulachathurika.blogspot.com/>
>>> +94 716 358 048 <http://manulachathurika.blogspot.com/>*
>>> <http://wso2.com/>*
>>>
>>>
>>> * <http://wso2.com/>*
>>>
>>>
>>>
>
>
> --
> --
> Lahiru Sandaruwan
> Committer and PMC member, Apache Stratos,
> Senior Software Engineer,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>


-- 
--
Lahiru Sandaruwan
Committer and PMC member, Apache Stratos,
Senior Software Engineer,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146

Reply via email to