"JavaNullPointerException" error encountered when trying to edit an Advanced Edge
search cancel

"JavaNullPointerException" error encountered when trying to edit an Advanced Edge

book

Article ID: 325598

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Symptoms:
  • When trying to edit anything on the edge it fails with error in the UI "JavaNullPointerExeption"
  • In the logs, /opt/vmware/vcloud-director/logs/vcloud-container-debug.log, you see the following:

2019-05-06 11:06:27,505 | WARN     | pool-jetty-2227470        | BatchTask                      | Error executing backend call. | requestId=<REQUEST_UUID>,request=POST https://<VCD_URL>/cloud/amfsecure,requestTime=1557165987260,remoteAddress=<IP>:55864,userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ...,accept=*/* method=networkService.updateGatewayProperties

java.lang.NullPointerException

        at com.vmware.vcloud.networking.model.edge.specconverter.IpSecVpnSpecToDtoConverter.getSitesConfigFromServiceSpec(IpSecVpnSpecToDtoConverter.java:156)

  • The Edge experiencing the issue is an Advanced Edge


Environment

VMware Cloud Director for Service Provider 9.x

Cause

This issue occurs when a configured IPSec VPN Site is using and Encryption Algorithm that is not defined whithin the vCloud Director code such as 'AES-GCM'.

Resolution

Change the algorithm to and algorithm supported by vCloud Director.
  1. 'Right Click' on the Edge and 'click' on Edge Gateway Services
  2. On the new screen, 'click' on VPN -> IPsec VPN Sites
  3. Highlight the Site Name and 'click' on the 'Paper and Pencil Icon' (Edit button) 
  4. In the drop down for, Encryption Algorithm, select either, AES, AES256, or 3DES (Deprecated)
  5. Save Changes