Min Chen created CLOUDSTACK-2629: ------------------------------------ Summary: ListRouters with networkid throws exception Key: CLOUDSTACK-2629 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2629 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the default.) Components: API Affects Versions: 4.2.0 Reporter: Min Chen Assignee: Min Chen Fix For: 4.2.0
Passing networkid parameter for listRouters api, it will throw exception: unhandled exception executing api command: listInternalLoadBalancerVMs java.lang.NullPointerException at com.cloud.utils.db.SearchCriteria.findJoin(SearchCriteria.java:204) at com.cloud.utils.db.SearchCriteria.setJoinParameters(SearchCriteria.java:223) at com.cloud.api.query.QueryManagerImpl.searchForRoutersInternal(QueryManagerImpl.java:1098) at com.cloud.api.query.QueryManagerImpl.searchForInternalLbVms(QueryManagerImpl.java:998) at org.apache.cloudstack.api.command.admin.internallb.ListInternalLBVMsCmd.execute(ListInternalLBVMsCmd.java:147) at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155) at com.cloud.api.ApiServer.queueCommand(ApiServer.java:519) at com.cloud.api.ApiServer.handleRequest(ApiServer.java:369) at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304) at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511 -- 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