stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Imesh Gunaratne (JIRA)" <j...@apache.org>
Subject [jira] [Created] (STRATOS-1044) Validate Cartridge Groups when adding an Application
Date Fri, 19 Dec 2014 03:53:13 GMT
Imesh Gunaratne created STRATOS-1044:
----------------------------------------

             Summary: Validate Cartridge Groups when adding an Application
                 Key: STRATOS-1044
                 URL: https://issues.apache.org/jira/browse/STRATOS-1044
             Project: Stratos
          Issue Type: Bug
    Affects Versions: 4.1.0 M5
            Reporter: Imesh Gunaratne


As it looks like now cartridge groups defined in the application definition are not validated.
As a result it is possible to add an application with a cartridge group which does not exist.
Once the application is deployed the below NPE is raised:

[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)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message