stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Akila Ravihansa Perera <raviha...@wso2.com>
Subject Re: Cannot subscribe to a cartridge
Date Mon, 05 May 2014 18:47:45 GMT
Hi Pradeep,

Thank you for pointing the error. It was indeed the problem. I created
a JIRA issue [1] and attached a patch. Pl review and merge to master.

Also I fixed a problem that was causing load balancer cartridges not
to be identified properly. When deploying a LB definition, it looks
for "loadBalancer" property (LoadBalancerBean) to identify a cartridge
as a LB, but this property should not be present for LB cartridges. It
should only look for property [name: "load.balancer" value: true] to
identify as a LB.

Both of above issues are fixed with the patch (tested and verified on OpenStack)

[1] - https://issues.apache.org/jira/browse/STRATOS-644


On Mon, May 5, 2014 at 6:05 PM, Pradeep Fernando <pradeepfn@gmail.com> wrote:
> Hi Akila,
>
> As per the offline chat we had, error is due to wrong request from the
> jaggery UI.
>
> var size = request.getParameter('size');
> jsonRequest.size = size;
>
>
> I believe it sets size param to empty string when, there is none. looks like
> fix is to check size for not null && not empty before assigning size.
>
> thanks.
>
>
> On Mon, May 5, 2014 at 2:22 PM, Akila Ravihansa Perera <ravihansa@wso2.com>
> wrote:
>>
>> Hi,
>>
>> I get this error when I try to subscribe for a cartridge. Using master
>> branch.
>>
>>
>> TID: [0] [STRATOS] [2014-05-05 14:13:37,339]  INFO
>> {org.apache.stratos.rest.endpoint.services.ServiceUtils} -  Starting
>> to deploy a Cartridge [type] mongolb
>> {org.apache.stratos.rest.endpoint.services.ServiceUtils}
>> TID: [0] [STRATOS] [2014-05-05 14:13:37,963]  INFO
>> {org.apache.stratos.cloud.controller.topology.TopologyEventPublisher}
>> -  Publishing service created event: [service] mongolb
>> {org.apache.stratos.cloud.controller.topology.TopologyEventPublisher}
>> TID: [0] [STRATOS] [2014-05-05 14:13:37,976]  INFO
>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
>> -  Successfully deployed the Cartridge definition: mongolb
>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
>> TID: [0] [STRATOS] [2014-05-05 14:13:37,977]  INFO
>>
>> {org.apache.stratos.messaging.message.processor.topology.ServiceCreatedMessageProcessor}
>> -  Service created: [service] mongolb
>>
>> {org.apache.stratos.messaging.message.processor.topology.ServiceCreatedMessageProcessor}
>> TID: [0] [STRATOS] [2014-05-05 14:13:37,978]  WARN
>>
>> {org.apache.stratos.messaging.message.processor.topology.ServiceCreatedMessageProcessor}
>> -  Service already created: [service] mongolb
>>
>> {org.apache.stratos.messaging.message.processor.topology.ServiceCreatedMessageProcessor}
>> TID: [0] [STRATOS] [2014-05-05 14:13:37,982]  INFO
>> {org.apache.stratos.rest.endpoint.services.ServiceUtils} -
>> Successfully deployed Cartridge [type] mongolb
>> {org.apache.stratos.rest.endpoint.services.ServiceUtils}
>> TID: [0] [STRATOS] [2014-05-05 14:13:46,903]  INFO
>> {org.apache.stratos.rest.endpoint.services.ServiceUtils} -  Starting
>> to deploy a Cartridge [type] mongoshard
>> {org.apache.stratos.rest.endpoint.services.ServiceUtils}
>> TID: [0] [STRATOS] [2014-05-05 14:13:47,363]  INFO
>> {org.apache.stratos.cloud.controller.topology.TopologyEventPublisher}
>> -  Publishing service created event: [service] mongoshard
>> {org.apache.stratos.cloud.controller.topology.TopologyEventPublisher}
>> TID: [0] [STRATOS] [2014-05-05 14:13:47,367]  INFO
>>
>> {org.apache.stratos.messaging.message.processor.topology.ServiceCreatedMessageProcessor}
>> -  Service created: [service] mongoshard
>>
>> {org.apache.stratos.messaging.message.processor.topology.ServiceCreatedMessageProcessor}
>> TID: [0] [STRATOS] [2014-05-05 14:13:47,367]  WARN
>>
>> {org.apache.stratos.messaging.message.processor.topology.ServiceCreatedMessageProcessor}
>> -  Service already created: [service] mongoshard
>>
>> {org.apache.stratos.messaging.message.processor.topology.ServiceCreatedMessageProcessor}
>> TID: [0] [STRATOS] [2014-05-05 14:13:47,367]  INFO
>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
>> -  Successfully deployed the Cartridge definition: mongoshard
>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
>> TID: [0] [STRATOS] [2014-05-05 14:13:47,370]  INFO
>> {org.apache.stratos.rest.endpoint.services.ServiceUtils} -
>> Successfully deployed Cartridge [type] mongoshard
>> {org.apache.stratos.rest.endpoint.services.ServiceUtils}
>> TID: [0] [STRATOS] [2014-05-05 14:14:07,904]  INFO
>>
>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
>> -  Validating partitions of policy via cloud controller: [id]
>> economyDeploymentPolicy
>>
>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
>> TID: [0] [STRATOS] [2014-05-05 14:14:08,319]  INFO
>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
>> -  All partitions [P1] were validated successfully, against the
>> Cartridge: mongoshard
>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
>> TID: [0] [STRATOS] [2014-05-05 14:14:15,438]  WARN
>> {org.apache.cxf.jaxrs.provider.AbstractJAXBProvider} -
>> javax.xml.bind.UnmarshalException
>>  - with linked exception:
>> [org.xml.sax.SAXParseException; columnNumber: 0;
>> cvc-datatype-valid.1.2.1: '' is not a valid value for 'integer'.]
>> at
>> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:425)
>> at
>> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:362)
>> at
>> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:332)
>> at
>> org.apache.cxf.jaxrs.provider.json.JSONProvider.readFrom(JSONProvider.java:234)
>> at
>> org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBodyReader(JAXRSUtils.java:1288)
>> at
>> org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBody(JAXRSUtils.java:1239)
>> at
>> org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameter(JAXRSUtils.java:790)
>> at
>> org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameters(JAXRSUtils.java:749)
>> at
>> org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:236)
>> at
>> org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:101)
>> 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:745)
>> Caused by: org.xml.sax.SAXParseException; columnNumber: 0;
>> cvc-datatype-valid.1.2.1: '' is not a valid value for 'integer'.
>> at
>> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
>> Source)
>> at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
>> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>> at
>> org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown
>> Source)
>> at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown
>> Source)
>> at
>> org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidType(Unknown
>> Source)
>> at
>> org.apache.xerces.impl.xs.XMLSchemaValidator.processElementContent(Unknown
>> Source)
>> at org.apache.xerces.impl.xs.XMLSchemaValidator.handleEndElement(Unknown
>> Source)
>> at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown Source)
>> at
>> org.apache.xerces.jaxp.validation.ValidatorHandlerImpl.endElement(Unknown
>> Source)
>> at
>> com.sun.xml.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.endElement(ValidatingUnmarshaller.java:101)
>> at
>> com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.endElement(InterningXmlVisitor.java:77)
>> at
>> com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleEndElement(StAXStreamConnector.java:217)
>> at
>> com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:181)
>> at
>> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:360)
>> ... 42 more
>>  {org.apache.cxf.jaxrs.provider.AbstractJAXBProvider}
>>
>>
>> Can someone tell me what is causing this? Thanks!
>>
>> --
>> Akila Ravihansa Perera
>> Software Engineer
>> WSO2 Inc.
>> http://wso2.com
>>
>> Phone: +94 77 64 154 38
>> Blog: http://ravihansa3000.blogspot.com
>
>
>
>
> --
> Pradeep Fernando.
> http://pradeepfernando.blogspot.com/



-- 
Akila Ravihansa Perera
Software Engineer
WSO2 Inc.
http://wso2.com

Phone: +94 77 64 154 38
Blog: http://ravihansa3000.blogspot.com

Mime
View raw message