+1 for implementing application validation which we are not having at the moment.
Thanks, Reka On Fri, Dec 19, 2014 at 12:43 AM, Imesh Gunaratne <im...@apache.org> wrote: > > Hi Devs, > > I found the following error when deploying an application without > deploying the cartridge groups. May be we need to have an application > definition validation rule to detect this at the application creation time. > > [2014-12-18 23:19:12,809] ERROR > {org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver} - Exception > occurred while trying to invoke service method addApplication > java.lang.NullPointerException > at > org.apache.stratos.autoscaler.applications.parser.DefaultApplicationParser.getNestedServiceGroup(DefaultApplicationParser.java:638) > at > org.apache.stratos.autoscaler.applications.parser.DefaultApplicationParser.isGroupScalingEnabled(DefaultApplicationParser.java:628) > at > org.apache.stratos.autoscaler.applications.parser.DefaultApplicationParser.parseGroup(DefaultApplicationParser.java:465) > at > org.apache.stratos.autoscaler.applications.parser.DefaultApplicationParser.parseGroups(DefaultApplicationParser.java:392) > at > org.apache.stratos.autoscaler.applications.parser.DefaultApplicationParser.buildCompositeAppStructure(DefaultApplicationParser.java:200) > at > org.apache.stratos.autoscaler.applications.parser.DefaultApplicationParser.parse(DefaultApplicationParser.java:109) > at > org.apache.stratos.autoscaler.api.AutoScalerServiceImpl.addApplication(AutoScalerServiceImpl.java:174) > 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) > > Thanks > > -- > Imesh Gunaratne > > Technical Lead, WSO2 > Committer & PMC Member, Apache Stratos > -- Reka Thirunavukkarasu Senior Software Engineer, WSO2, Inc.:http://wso2.com, Mobile: +94776442007