ConfUtil is updated to support multiple config file instance by maintaining the map.Those changes are applied with PR #133 merge.
Thanks, Gayan On Wed, Dec 3, 2014 at 5:55 PM, Gayan Gunarathne <gay...@wso2.com> wrote: > Yeah. Seems like we need to maintain the map.Otherwise it returns the same > instance every time. I will work on this. > > On Wed, Dec 3, 2014 at 5:42 PM, Nirmal Fernando <nirmal070...@gmail.com> > wrote: > >> Root cause is ConfUtil is singleton but currently autoscaler code tries >> to read different config files using it. >> >> @Gayan seems we need to remove the Singleton behavior from ConfUtil ? >> >> On Wed, Dec 3, 2014 at 5:37 PM, Lahiru Sandaruwan <lahi...@wso2.com> >> wrote: >> >>> >>> >>> On Wed, Dec 3, 2014 at 5:31 PM, Nirmal Fernando <nirmal070...@gmail.com> >>> wrote: >>> >>>> But there's a new issue. autoscaler.xml file not read properly. I will >>>> check this. >>>> >>> >>> Yes, it seems it get the cloud controller port from constances. >>> >>>> >>>> On Wed, Dec 3, 2014 at 5:29 PM, Lahiru Sandaruwan <lahi...@wso2.com> >>>> wrote: >>>> >>>>> Ahh.. It seems it's working after getting the new pack again. May be i >>>>> had an older one.. >>>>> >>>>> Thanks. >>>>> >>>>> On Wed, Dec 3, 2014 at 5:28 PM, Nirmal Fernando < >>>>> nirmal070...@gmail.com> wrote: >>>>> >>>>>> I didn't get it. >>>>>> >>>>>> On Wed, Dec 3, 2014 at 5:25 PM, Lahiru Sandaruwan <lahi...@wso2.com> >>>>>> wrote: >>>>>> >>>>>>> It seems it's again there, after Gayan fixing the server startup >>>>>>> using his PR it comes again. >>>>>>> >>>>>>> >>>>>>> Will look into this. >>>>>>> >>>>>>> Thanks. >>>>>>> >>>>>>> On Wed, Dec 3, 2014 at 4:21 PM, Lahiru Sandaruwan <lahi...@wso2.com> >>>>>>> wrote: >>>>>>> >>>>>>>> It's fixed by Reka. It was a threading issue. >>>>>>>> >>>>>>>> Thanks. >>>>>>>> >>>>>>>> On Wed, Dec 3, 2014 at 4:00 PM, Nirmal Fernando < >>>>>>>> nirmal070...@gmail.com> wrote: >>>>>>>> >>>>>>>>> Do you still get this? >>>>>>>>> >>>>>>>>> On Wed, Dec 3, 2014 at 12:59 PM, Lahiru Sandaruwan < >>>>>>>>> lahi...@wso2.com> wrote: >>>>>>>>> >>>>>>>>>> Hi all, >>>>>>>>>> >>>>>>>>>> I face $subject in master, >>>>>>>>>> >>>>>>>>>> My command is, >>>>>>>>>> >>>>>>>>>> curl -X POST -H "Content-Type: application/json" -d >>>>>>>>>> @'autoscale-policy.json' -k -v -u admin:admin >>>>>>>>>> https://23.2.2.2:9443/api/autoscalePolicies >>>>>>>>>> >>>>>>>>>> Which gives error [1]. >>>>>>>>>> Anything changed recently? >>>>>>>>>> >>>>>>>>>> Thanks. >>>>>>>>>> >>>>>>>>>> [1] >>>>>>>>>> >>>>>>>>>> [2014-12-03 07:26:38,218] INFO >>>>>>>>>> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} - >>>>>>>>>> Deploying >>>>>>>>>> autoscaling policy: [id] autoscale_policy_mysql >>>>>>>>>> >>>>>>>>>> [2014-12-03 07:26:38,298] ERROR >>>>>>>>>> {org.apache.axis2.description.ClientUtils} - Address information >>>>>>>>>> does not >>>>>>>>>> exist in the Endpoint Reference (EPR).The system cannot infer the >>>>>>>>>> transport >>>>>>>>>> mechanism. >>>>>>>>>> >>>>>>>>>> [2014-12-03 07:26:38,299] ERROR >>>>>>>>>> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} - Address >>>>>>>>>> information does not exist in the Endpoint Reference (EPR).The system >>>>>>>>>> cannot infer the transport mechanism. >>>>>>>>>> >>>>>>>>>> org.apache.axis2.AxisFault: Address information does not exist in >>>>>>>>>> the Endpoint Reference (EPR).The system cannot infer the transport >>>>>>>>>> mechanism. >>>>>>>>>> >>>>>>>>>> at >>>>>>>>>> org.apache.axis2.description.ClientUtils.inferOutTransport(ClientUtils.java:73) >>>>>>>>>> >>>>>>>>>> at >>>>>>>>>> org.apache.axis2.client.OperationClient.prepareMessageContext(OperationClient.java:288) >>>>>>>>>> >>>>>>>>>> at >>>>>>>>>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:176) >>>>>>>>>> >>>>>>>>>> at >>>>>>>>>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) >>>>>>>>>> >>>>>>>>>> at >>>>>>>>>> org.apache.stratos.autoscaler.stub.AutoScalerServiceStub.addAutoScalingPolicy(AutoScalerServiceStub.java:3158) >>>>>>>>>> >>>>>>>>>> at >>>>>>>>>> org.apache.stratos.manager.client.AutoscalerServiceClient.deployAutoscalingPolicy(AutoscalerServiceClient.java:212) >>>>>>>>>> >>>>>>>>>> at >>>>>>>>>> org.apache.stratos.rest.endpoint.api.StratosApiV41Utils.deployAutoscalingPolicy(StratosApiV41Utils.java:368) >>>>>>>>>> >>>>>>>>>> at >>>>>>>>>> org.apache.stratos.rest.endpoint.api.StratosApiV41.deployAutoscalingPolicyDefintion(StratosApiV41.java:417) >>>>>>>>>> >>>>>>>>>> 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) >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> -- >>>>>>>>>> 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 >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Best Regards, >>>>>>>>> Nirmal >>>>>>>>> >>>>>>>>> Nirmal Fernando. >>>>>>>>> PPMC Member & Committer of Apache Stratos, >>>>>>>>> Senior Software Engineer, WSO2 Inc. >>>>>>>>> >>>>>>>>> Blog: http://nirmalfdo.blogspot.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 >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Best Regards, >>>>>> Nirmal >>>>>> >>>>>> Nirmal Fernando. >>>>>> PPMC Member & Committer of Apache Stratos, >>>>>> Senior Software Engineer, WSO2 Inc. >>>>>> >>>>>> Blog: http://nirmalfdo.blogspot.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 >>>>> >>>>> >>>> >>>> >>>> -- >>>> Best Regards, >>>> Nirmal >>>> >>>> Nirmal Fernando. >>>> PPMC Member & Committer of Apache Stratos, >>>> Senior Software Engineer, WSO2 Inc. >>>> >>>> Blog: http://nirmalfdo.blogspot.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 >>> >>> >> >> >> -- >> Best Regards, >> Nirmal >> >> Nirmal Fernando. >> PPMC Member & Committer of Apache Stratos, >> Senior Software Engineer, WSO2 Inc. >> >> Blog: http://nirmalfdo.blogspot.com/ >> > > > > -- > > Gayan Gunarathne > Technical Lead > WSO2 Inc. (http://wso2.com) > email : gay...@wso2.com | mobile : +94 766819985 > > -- Gayan Gunarathne Technical Lead WSO2 Inc. (http://wso2.com) email : gay...@wso2.com | mobile : +94 766819985