Yes there seems to be a functional issue here:
https://github.com/apache/stratos/commit/c41e66b2678a463c4ccdfdf01298daf723e0eb2f?diff=unified

Dependency order property is set twice to the application, second call overwrites the startup orders set at the beginning.

On Sun, Jan 25, 2015 at 8:37 AM, Lahiru Sandaruwan <lahirus@wso2.com> wrote:
Did some debugging. Found that DependencyContext become null.
On Sun, Jan 25, 2015 at 8:29 AM, Imesh Gunaratne <imesh@apache.org> wrote:
s/I need to/We need to/g

On Sun, Jan 25, 2015 at 8:28 AM, Imesh Gunaratne <imesh@apache.org> wrote:
Yes seems like yesterday Gayan has added below logic to add dependency orders and startup orders to application:



I need to check null here, I will fix this.

Thanks

On Sun, Jan 25, 2015 at 8:16 AM, Lahiru Sandaruwan <lahirus@wso2.com> wrote:
Hi,

$subject([1]) at master. Sample "/single-cartridge/mock". 

Did we change rest API(addApplication)?

Thanks.

[1] 

[2015-01-25 08:16:06,584] 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.buildCompositeAppStructure(DefaultApplicationParser.java:182)

at org.apache.stratos.autoscaler.applications.parser.DefaultApplicationParser.parse(DefaultApplicationParser.java:101)

at org.apache.stratos.autoscaler.services.impl.AutoscalerServiceImpl.addApplication(AutoscalerServiceImpl.java:201)

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)


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



--
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos



--
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos



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



--
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos