Error “class java.lang.NullPointerException” during scope decrease.
search cancel

Error “class java.lang.NullPointerException” during scope decrease.

book

Article ID: 396446

calendar_today

Updated On: 05-09-2025

Products

VMware Cloud Director

Issue/Introduction

  • Attempting to delete the network associated with this ip scope states the following..
    "Please delete associated networks when trying to delete DC Group".

  • Decreasing the scope of a lan from a group vdc results in error...
    "java.lang.NullPointerException".
  • There are no vapp networks associated with the Organization VDC Network in the UI.

  • Querying the database shows there are no vapps or vapp network associated with the network you are attempting to remove. 

Environment

10.x

Resolution

!! Take a backup of your database prior to making any changes. !!

Remove the stale entry in the logical_network_ip_scope table. 

  1. Query the logical_network_ip_scope in the database using the name of the Organization vDC Network. 
    SELECT * from logical_network_ip_scope where logical_network_id IN (SELECT id from logical_network where name='Organization vDC Network Name');

  2. Once you are sure you have the correct logical_network_ip_scope entry you can change your select statement to a delete. 
    DELETE from logical_network_ip_scope where logical_network_id IN (SELECT id from logical_network where name='Organization vDC Network Name');

  3. Go back to the VMware Cloud Director Tenant UI and re-attempt the deletion of the Organization VDC Network.