Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 168455

Re: Trying to Update vCAC Blueprint Entity, gets "java.lang.NullPointerException"

$
0
0

I have now simplified the setup.

 

I have a workflow with only one Scriptable Task.

The Scriptable Task takes two inputs:

 

vcacHost, Type = vCAC:VCACHost (I only have one vCAC:VCACHost, so can't have selected the wrong one)

theBlueprint, Type = vCAC:Blueprint

 

The script of the Scriptable Task is:

var entity = System.getModule("com.vmware.library.vcac").getBluePrintEntity(vcacHost,theBlueprint);

var links = entity.getLinks(vcacHost);

var properties =
{
  virtualMachineTemplateDescription : "Testing Description"
}; 

var headers =
{
}; 

var hostId = entity.hostId; 
var modelName = entity.modelName; 
var setName = entity.entitySetName; 
var keyString = entity.keyString; 

vCACEntityManager.updateModelEntityBySerializedKey(hostId, modelName, setName, keyString, properties, links, headers); 

 

When I run this workflow, it fails with the following exception:

 

java.lang.NullPointerException (Workflow:Update a vCAC Blueprint Entity / Scriptable task (item1)#19)

Viewing all articles
Browse latest Browse all 168455

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>