cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "youxianyang" <youxiany...@gmail.com>
Subject listPublicIpAddressesCmd空指针错误
Date Thu, 18 Jul 2013 14:07:34 GMT
请问一下,4.0.1-nonoss选择DefaultSharedNetscalerEIPandELBNetworkofferring网络方案建立basic
Zone时,在来宾网络guestNetworkForBasicZone中点击查看IP地址


listPublicIpAddressesCmd报530错误,也导致不能添加负载均衡器,但点击获取新的网络地址正常,下次查看IP地址还是530错误。


2013-07-19 05:16:30,040 ERROR [cloud.api.ApiDispatcher] (catalina-exec-4:null) Exception while
executing ListPublicIpAddressesCmd:
java.lang.NullPointerException
        at com.cloud.api.ApiResponseHelper.createIPAddressResponse(ApiResponseHelper.java:802)
        at com.cloud.api.commands.ListPublicIpAddressesCmd.execute(ListPublicIpAddressesCmd.java:148)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:138)
        at com.cloud.api.ApiServer.queueCommand(ApiServer.java:543)
        at com.cloud.api.ApiServer.handleRequest(ApiServer.java:422)
        at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304)
        at com.cloud.api.ApiServlet.doGet(ApiServlet.java:63)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
        at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2268)
        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)


下面是我导入eclipse中的ApiResponseHelper.java:802代码:
  if (ipAddr.getAssociatedWithVmId() != null) {
            //第802行
            UserVm vm = ApiDBUtils.findUserVmById(ipAddr.getAssociatedWithVmId());
            ipResponse.setVirtualMachineId(vm.getId());
            ipResponse.setVirtualMachineName(vm.getHostName());
            if (vm.getDisplayName() != null) {
                ipResponse.setVirtualMachineDisplayName(vm.getDisplayName());
            } else {
                ipResponse.setVirtualMachineDisplayName(vm.getHostName());
            }
        }




user_ip_address表中点击获取到的新的IP是Allocated状态,但vm_id是null值
nescaler我用的vpx9.3,不知道是不是配置错误还是什么原因,想请各位大侠帮我看看
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message