NSX API "GET https://NSX-IP/policy/api/v1/infra/realized-state/virtual-machines" returns a NullPointerException.
search cancel

NSX API "GET https://NSX-IP/policy/api/v1/infra/realized-state/virtual-machines" returns a NullPointerException.

book

Article ID: 318291

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • NSX-T 3.1.x is deployed.
  • The Terraform NSX-T provider does not work 
  • You may see entries in var/log/policy/policy.log similar to:
2021-02-19T15:18:29.055Z ERROR http-nio-127.0.0.1-6440-exec-86 NsxBaseRestController 14650 SYSTEM [nsx@6876 comp="nsx-manager" errorCode="MP100" level="ERROR" subcomp="policy"]
java.lang.NullPointerException: null
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) ~[catalina.jar:8.5.57]

2021-02-19T15:18:29.055Z  INFO http-nio-127.0.0.1-6440-exec-86 NsxBaseRestController 14650 SYSTEM [nsx@6876 audit="true" comp="nsx-manager" level="INFO" subcomp="policy"] UserName:'admin' ModuleName:'common-services' Operation:'GET@/api/v1/infra/realized-state/virtual-machines' Operation status: 'failure' Error: General error has occurred
  • You may also see similar entries to the below in var/log/proxy/localhost_access_log.txt
2021-02-16T13:25:13.564Z 10.110.18.225 - "GET /policy/api/v1/infra/realized-state/virtual-machines HTTP/1.1" 500 169 1181 1181

Environment

VMware NSX-T Data Center

Cause

This issue can occur if the Transport Zone associated with the Edge is removed due to a missing validation check.

Resolution

This issue is resolved in VMware NSX-T Data Center 3.1.2, available at Broadcom downloads.

If you are having difficulty finding and downloading software, please review the Download Broadcom products and software KB.