server24 commented on issue #3497: VMs stuck in Stopping state due to NPE at 
org.apache.cloudstack.network.topology.BasicNetworkVisitor.visit(BasicNetworkVisitor.java:201)
URL: https://github.com/apache/cloudstack/issues/3497#issuecomment-512289225
 
 
   I have attached jdb and the problem seems to be that destination is NULL, 
specifically that dhcp.getDestination() returns NULL. From the debugger:
   
   ```
   Breakpoint hit: "thread=API-Job-Executor-1", 
org.apache.cloudstack.network.topology.BasicNetworkVisitor.visit(), line=193 
bci=0
   
   API-Job-Executor-1[1] list
   Source file not found: BasicNetworkVisitor.java
   API-Job-Executor-1[1] locals
   Method arguments:
   dhcp = instance of com.cloud.network.rules.DhcpEntryRules(id=11576)
   Local variables:
   API-Job-Executor-1[1] print dhcp
    dhcp = "com.cloud.network.rules.DhcpEntryRules@725a95d4"
   API-Job-Executor-1[1] print dhcp.getNicVo()
    dhcp.getNicVo() = 
"Nic[862-609-9f0f0a12-c397-4735-84b2-a6222a929e1a-84.33.37.153]"
   API-Job-Executor-1[1] print dhcp.getUserVM()
    dhcp.getUserVM() = "VM[User|i-9-609-VM]"
   API-Job-Executor-1[1] print dhcp.getDestination()
    dhcp.getDestination() = null
   API-Job-Executor-1[1] print dhcp.isRemove()
    dhcp.isRemove() = true
   ```
   
   So no destination is specified and this is causing the NPE. Hope this helps.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to