You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Koushik Das (JIRA)" <ji...@apache.org> on 2014/06/05 11:06:01 UTC

[jira] [Resolved] (CLOUDSTACK-6843) [Automation] List listServiceOfferings api fails with NPE

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-6843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Koushik Das resolved CLOUDSTACK-6843.
-------------------------------------

    Resolution: Fixed

Fixed in 4.4-forward and master

> [Automation] List listServiceOfferings api fails with NPE
> ---------------------------------------------------------
>
>                 Key: CLOUDSTACK-6843
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6843
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.4.0
>         Environment: KVM - RHEL 6.3
> 4.4-forward brach
>            Reporter: Rayees Namathponnan
>            Assignee: Koushik Das
>             Fix For: 4.4.0
>
>         Attachments: management-server.rar
>
>
> Create advanced zone in KVM, and execute below  api 
> http://10.223.49.195:8096/?command=listServiceOfferings&issystem=true&systemvmtype=secondarystoragevm
> API failes with below NPE
> 2014-06-04 09:22:12,874 DEBUG [c.c.a.ApiServlet] (catalina-exec-3:ctx-bbfc4fe7) ===START===  10.223.240.194 -- GET  jobid=6ad437e8-e8a5-43f0-9836-9a971895f2ff&apiKey=fRS2dHRVFlXSTC9bs2rBKXwD0FNnpHk-Dz_2XI8fgFZii_P6Tx5eLyzluOx8lvuonsbqknPHnIFYT5xNhEvUEA&command=queryAsyncJobResult&response=json&signature=vWt6TJzRGujyODUGV4qlWRw2PnU%3D
> 2014-06-04 09:22:12,889 DEBUG [c.c.a.ApiServlet] (catalina-exec-3:ctx-bbfc4fe7 ctx-6459f16c ctx-ee0f0e0d) ===END===  10.223.240.194 -- GET  jobid=6ad437e8-e8a5-43f0-9836-9a971895f2ff&apiKey=fRS2dHRVFlXSTC9bs2rBKXwD0FNnpHk-Dz_2XI8fgFZii_P6Tx5eLyzluOx8lvuonsbqknPHnIFYT5xNhEvUEA&command=queryAsyncJobResult&response=json&signature=vWt6TJzRGujyODUGV4qlWRw2PnU%3D
> 2014-06-04 09:22:15,343 ERROR [c.c.a.ApiServer] (ApiServer-2:ctx-b32fc69a ctx-2409f636) unhandled exception executing api command: [Ljava.lang.String;@3e2251cf
> com.cloud.utils.exception.CloudRuntimeException: Caught: com.mysql.jdbc.JDBC4PreparedStatement@5998caad: SELECT service_offering_view.id, service_offering_view.uuid, service_offering_view.name, service_offering_view.display_text, service_offering_view.tags, service_offering_view.use_local_storage, service_offering_view.system_use, service_offering_view.cpu, service_offering_view.speed, service_offering_view.ram_size, service_offering_view.nw_rate, service_offering_view.mc_rate, service_offering_view.ha_enabled, service_offering_view.limit_cpu_use, service_offering_view.is_volatile, service_offering_view.host_tag, service_offering_view.default_use, service_offering_view.vm_type, service_offering_view.customized_iops, service_offering_view.min_iops, service_offering_view.max_iops, service_offering_view.hv_ss_reserve, service_offering_view.sort_key, service_offering_view.bytes_read_rate, service_offering_view.bytes_write_rate, service_offering_view.iops_read_rate, service_offering_view.iops_write_rate, service_offering_view.created, service_offering_view.removed, service_offering_view.domain_id, service_offering_view.domain_uuid, service_offering_view.domain_name, service_offering_view.domain_path, service_offering_view.deployment_planner FROM service_offering_view WHERE service_offering_view.system_use = 1  AND  AND service_offering_view.removed IS NULL  ORDER BY service_offering_view.sort_key DESC  LIMIT 0, 500
>         at com.cloud.utils.db.GenericDaoBase.searchIncludingRemoved(GenericDaoBase.java:427)
>         at com.cloud.utils.db.GenericDaoBase.searchIncludingRemoved(GenericDaoBase.java:361)
>         at com.cloud.utils.db.GenericDaoBase.search(GenericDaoBase.java:345)
>         at com.cloud.utils.db.GenericDaoBase.searchAndCount(GenericDaoBase.java:1296)
>         at sun.reflect.GeneratedMethodAccessor122.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
>         at com.cloud.utils.db.TransactionContextInterceptor.invoke(TransactionContextInterceptor.java:34)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
>         at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
>         at com.sun.proxy.$Proxy277.searchAndCount(Unknown Source)
>         at com.cloud.api.query.QueryManagerImpl.searchForServiceOfferingsInternal(QueryManagerImpl.java:2552)
>         at com.cloud.api.query.QueryManagerImpl.searchForServiceOfferings(QueryManagerImpl.java:2413)
>         at org.apache.cloudstack.api.command.user.offering.ListServiceOfferingsCmd.execute(ListServiceOfferingsCmd.java:106)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141)
>         at com.cloud.api.ApiServer.queueCommand(ApiServer.java:683)
>         at com.cloud.api.ApiServer.handleRequest(ApiServer.java:506)
>         at com.cloud.api.ApiServer.handle(ApiServer.java:416)
>         at org.apache.http.protocol.HttpService.doService(HttpService.java:375)
>         at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:290)
>         at com.cloud.api.ApiServer$WorkerTask.runInContext(ApiServer.java:1169)
>         at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
>         at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:744)
> Caused by: java.lang.NullPointerException
>         ... 33 more
> 2014-06-04 09:22:15,465 ERROR [c.c.a.ApiServer] (ApiServer-4:ctx-28f055e8 ctx-29e0d36a) invalid request, no command sent
> 2014-06-04 09:22



--
This message was sent by Atlassian JIRA
(v6.2#6252)