stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Eppel (meppel)" <mep...@cisco.com>
Subject RE: Error in deploying service group
Date Thu, 13 Nov 2014 00:36:43 GMT
I added a similar fix with DEBUG turned on, see commit e8416d340147b0c14398e74e36b782d5a329e996

Thanks

Martin

TID: [0] [STRATOS] [2014-11-12 23:13:28,808] DEBUG {org.apache.stratos.autoscaler.api.AutoScalerServiceImpl}
-  StartupOrder:size  1
TID: [0] [STRATOS] [2014-11-12 23:13:28,808] DEBUG {org.apache.stratos.autoscaler.api.AutoScalerServiceImpl}
-  ScalingOrders null
TID: [0] [STRATOS] [2014-11-12 23:13:28,808] ERROR {org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver}
-  Exception occurred while trying to invoke service method deployServiceGroup
java.lang.NullPointerException
        at org.apache.stratos.autoscaler.api.AutoScalerServiceImpl.deployServiceGroup(AutoScalerServiceImpl.java:443)
        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.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
        at org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:66)
        at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
        at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
        at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
        at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
        at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
        at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

From: Manula Chathurika Thantriwatte [mailto:manulac@wso2.com]
Sent: Monday, November 10, 2014 11:55 PM
To: Lahiru Sandaruwan
Cc: Isuru Haththotuwa; dev@stratos.apache.org; Udara Liyanage
Subject: Re: Error in deploying service group

Hi,

I'll get a pull and test it.

Thanks !

On Tue, Nov 11, 2014 at 1:23 PM, Lahiru Sandaruwan <lahirus@wso2.com<mailto:lahirus@wso2.com>>
wrote:
Fixed it.

Thanks.

On Tue, Nov 11, 2014 at 12:52 PM, Lahiru Sandaruwan <lahirus@wso2.com<mailto:lahirus@wso2.com>>
wrote:
I will look into this.

On Tue, Nov 11, 2014 at 12:45 PM, Isuru Haththotuwa <isuruh@apache.org<mailto:isuruh@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 <manulac@wso2.com<mailto:manulac@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<http://pojo.autoscaler.stratos.apache.org/xsd%7DscalingOrders>
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<http://pojo.autoscaler.stratos.apache.org/xsd%7DscalingOrders>
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<http://pojo.autoscaler.stratos.apache.org/xsd%7DscalingOrders>
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<http://pojo.autoscaler.stratos.apache.org/xsd%7DscalingOrders>
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<http://pojo.autoscaler.stratos.apache.org/xsd%7DscalingOrders>
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<http://pojo.autoscaler.stratos.apache.org/xsd%7DscalingOrders>
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 : manulac@wso2.com<mailto:manulac@wso2.com> / manula@apache.org<mailto:manula@apache.org>
phone : +94 772492511<tel:%2B94%20772492511>
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/>






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

email: lahirus@wso2.com<mailto:lahirus@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: lahirus@wso2.com<mailto:lahirus@wso2.com> blog: http://lahiruwrites.blogspot.com/
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146




--
Regards,
Manula Chathurika Thantriwatte
Software Engineer
WSO2 Inc. : http://wso2.com
lean . enterprise . middleware
email : manulac@wso2.com<mailto:manulac@wso2.com> / manula@apache.org<mailto:manula@apache.org>
phone : +94 772492511
blog : http://manulachathurika.blogspot.com/


Mime
View raw message