[
https://issues.apache.org/jira/browse/CLOUDSTACK-2122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13638803#comment-13638803
]
Devdeep Singh edited comment on CLOUDSTACK-2122 at 4/23/13 5:33 AM:
--------------------------------------------------------------------
It looks like virtual machine id wasn't passed when the api was invoked. The
parameter is required but it hasn't been given the right annotation. I'll fix
the issue by marking the parameter as required. Moreover, the NP exception was
thrown while creating an invalid parameter exception object. I'll fix that too.
was (Author: devdeep):
It looks like virtual machine id wasn't passed when the api was invoked.
The parameter is required but it hasn't been given the right annotation. I'll
fix the issue by marking the parameter as required. Moreover, the NP exception
was thrown while creating an invalid parameter exception object. I'll fic that
too.
> SXM: findHostsForMigration API is causing NPE
> ---------------------------------------------
>
> Key: CLOUDSTACK-2122
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2122
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Management Server
> Affects Versions: 4.2.0
> Reporter: Srikanteswararao Talluri
> Assignee: Devdeep Singh
> Priority: Blocker
> Fix For: 4.2.0
>
>
> Fire findHostsForMigration API
> It is causing NPE
> 2013-04-20 17:52:43,959 ERROR [cloud.api.ApiServer] (ApiServer-7:null)
> unhandled exception executing api command: findHostsForMigration
> java.lang.NullPointerException
> at
> com.cloud.utils.AnnotationHelper.getTableName(AnnotationHelper.java:34)
> at
> com.cloud.utils.exception.CloudRuntimeException.addProxyObject(CloudRuntimeException.java:59)
> at
> com.cloud.server.ManagementServerImpl.listHostsForMigrationOfVM(ManagementServerImpl.java:706)
> at
> org.apache.cloudstack.api.command.admin.host.FindHostsForMigrationCmd.execute(FindHostsForMigrationCmd.java:76)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:164)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:454)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:304)
> at com.cloud.api.ApiServer.handle(ApiServer.java:238)
> 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.run(ApiServer.java:912)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> at java.lang.Thread.run(Thread.java:679)
> 2013-04-20 17:52:43,997 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-419:null) Seq 5-732758021: Executing request
> 2013-04-20 17:
--
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