Modifying the Org VDC Distributed Firewall fails with java.lang.NullPointerException: uuid

UI Error:

java.lang.NullPointerException: uuid

Error in the logs:

2018-11-01 11:33:55,446 | DEBUG | pool-jetty-81 | ExceptionHandlerAdvice | Handling unmapped exception | requestId=8aeb2135-78a0-447f-901f-aa46c02b13ad,request=PUT https://cloudcom/network/firewall/globalroot-0/config/layer3sections/ce30a14f-8703-4aeb-a444-e17e81a4b402,requestTime=1541025233061,remoteAddress=,userAgent=Mozilla/5.0 (Macintosh; Intel Mac O

S X 10_14_0) AppleWebKit/5...,accept=application/xml
java.lang.NullPointerException: uuid
        at com.vmware.vcloud.common.model.BaseObjectId.from(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(
        at com.sun.proxy.$Proxy284.getVAppVmModel(Unknown Source)
        at com.vmware.vcloud.networking.model.translator.NetworkObjectTranslator.vmNsxToVcd(
        at com.vmware.vcloud.networking.model.dfw.DfwConverter.vcdValue(
        at com.vmware.vcloud.networking.model.dfw.DfwConverter.withTranslatedValues(

Cause :

This happens when the VMs part of the distributed firewall has a missing cloud_uuid in the vCloud director database.

Fix :

Note : Always take a snapshot prior to making any changes in database.

  1. Check the "vm_inv" table in the vCD database to find the cloud_uuid 
  2. Update the same to "vm" table to resolve the issue

Example :

  1. - Select * from vm_inv where name like '%Enter_the_VMname_here%';
  2. - Make a note of the cloud.uuid and moref for the VM
  3. - Update vm set cloud_uuid = ''Paste_Cloud_UUID_here" where moref = ''Paste_Moref_here';


Popular posts from this blog

vCloud director 9.7 appliance deployment step by step guide

How to Install and Uninstall Guest agent for vRA Windows machines

VM console fails to connect - vCloud director 9.7