IBM Support

License Service: NullPointerException: Cannot invoke "java.util.Map.get(Object)" because the return value of "io.kubernetes.client.openapi.models.V1NodeStatus.getCapacity()"

Troubleshooting


Problem

License Service is not able to start because of a missing label on the network node. The following error is returned:
2025-06-30 10:52:52.417 [scheduling-1] DEBUG Getting data from Kubernetes API
2025-06-30 10:52:52.617 [scheduling-1] ERROR Error while importing and processing data (Cannot invoke 
"java.util.Map.get(Object)" because the return value of "io.kubernetes.client.openapi.models.V1NodeStatus.getCapacity()" is null) 
java.lang.NullPointerException: Cannot invoke "java.util.Map.get(Object)" because the return value of 
"io.kubernetes.client.openapi.models.V1NodeStatus.getCapacity()" is null\n at 
com.ibm.cloud.licensing.datacollector.DataCollectorKubernetes.lambda$getNodesCpuCapacity$0(DataCollectorKubernetes.java:186)\n 
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)\n at com.ibm.cloud.licensing.datacollector.DataCollectorKubernetes.getNodesCpuCapacity(DataCollectorKubernetes.java:184)\n

Resolving The Problem

There is no workaround available. The fix is tentatively planned to be delivered in License Service 4.2.18. Plans are subject to change. 

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SS8JFY","label":"IBM License Metric Tool"},"ARM Category":[{"code":"a8m3p000000hB01AAE","label":"License Service"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.0.0;9.0.1;9.1.0;9.2.0"}]

Document Information

Modified date:
04 August 2025

UID

ibm17241043