Sanjay Tripathi created CLOUDSTACK-1371: -------------------------------------------
Summary: In case ResourceAllocationException, server is not returning any response. Key: CLOUDSTACK-1371 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1371 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the default.) Components: API Affects Versions: 4.1.0 Environment: Master branch latest code Reporter: Sanjay Tripathi Assignee: Sanjay Tripathi Fix For: 4.2.0 If user tries to cross resource limits assigned for his/her account, MS throws ResourceAllocationException but server is not returning any response and throwing ClassCastException. MS logs: ERROR [cloud.api.ApiServlet] (13967358@qtp-22973293-13:) unknown exception writing api response java.lang.ClassCastException: com.cloud.exception.ResourceAllocationException cannot be cast to com.cloud.utils.exception.CloudRuntimeException at org.apache.cloudstack.api.ServerApiException.<init>(ServerApiException.java:47) at com.cloud.api.ApiServer.handleRequest(ApiServer.java:392) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80) at com.cloud.utils.db.TransactionContextBuilder.AroundAnyMethod(TransactionContextBuilder.java:43) at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) ........ -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira