IBM Support

IBM Cloud Pak System - virtual appliance deployment fails with error message: Cannot invoke method size() on null object

Troubleshooting


Problem

Virtual Appliance deployment fails and instances.va_deploy job log records error message Cannot invoke method size() on null object

Cause

The error occurs if there are No available IP addresses in the IP Group used for the Virtual Appliance deployment.

Diagnosing The Problem

From the IBM Cloud Pak System UI, check for a failed Virtual Appliance Deploy job under System --> Job queue.  In the job log, search for error message java.lang.NullPointerException: Cannot invoke method size() on null object
example:
instances.va_deploy.180a1499-5065-4e50-9e39-22e89293e500.991d618b-2d55-44df-b7ff-f4e47c0d3a51.log
-
pooljvm.1609755240561.457 [09-11-20 18:27:20] 1030 instances.va_deploy | Starting deploy job Virtual Appliance deploy ...
pooljvm.1609755240561.457 [09-11-20 18:27:20] 1030 pooltask       | java.lang.NullPointerException: Cannot invoke method size() on null object
instances.va_deploy.execute(va_deploy.groovy:51)
zero.core.groovysupport.GroovySupport.invokeMethodOnScript(GroovySupport.java:402)
zero.core.groovysupport.GroovySupport.invokeGroovy(GroovySupport.java:334)
zero.core.groovysupport.GroovySupport.invokeMethod(GroovySupport.java:178)
job.queue._execute(queue.groovy:421)
job.queue.start(queue.groovy:792)
pooltask$_run_closure1_closure2.doCall(pooltask.groovy:155)
zero.core.groovysupport.GroovySupportMetaClass.invokeMethod(GroovySupportMetaClass.java:54)
utils.thread.withHungThreadTimeout(thread.groovy:185)
pooltask$_run_closure1.doCall(pooltask.groovy:151)
zero.core.groovysupport.GroovySupportMetaClass.invokeMethod(GroovySupportMetaClass.java:54)
utils.thread$_inThreadGroupNonBlocking_closure3.doCall(thread.groovy:247)
zero.core.groovysupport.GroovySupportMetaClass.invokeMethod(GroovySupportMetaClass.java:54)
java.lang.Thread.run(Thread.java:798)

Resolving The Problem

ADD an additional IP address to the IP Group or DELETE an existing deployed instance that is no longer needed.  Either of these actions releases an existing IP address, so it can then be used for the virtual appliance deployment.

Document Location

Worldwide

[{"Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSFQSV","label":"IBM Cloud Pak System Software"},"ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]

Product Synonym

IPAS; PureApp; CPS; PureApplication System

Document Information

Modified date:
23 September 2020

UID

ibm16332341