incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanjay Tripathi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-1371) In case ResourceAllocationException, server is not returning any response.
Date Fri, 22 Feb 2013 10:50:13 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-1371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13584180#comment-13584180
] 

Sanjay Tripathi commented on CLOUDSTACK-1371:
---------------------------------------------

Mice,

I think this is because the limits are not only applicable to accounts, admin can impose the
limits on domain also. Any way i will look into these exception and also the limit resource
code to see if any exception change is required or not.

                
> 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

Mime
View raw message