VMware {code} Community
segadson
Contributor
Contributor

Trying to find VM properties on a VM

Hello I am getting the error below is this due to vCO to VC connection issues?  I am trying to find some properties on vm in a VC:

2015-10-23 12:00:45.292-0400 DEBUG [WorkflowHandler] pushCache

2015-10-23 12:00:45.292-0400 DEBUG [WorkflowHandler] setAttributeToCache vm

2015-10-23 12:00:45.292-0400 DEBUG [WorkflowItemTaskRunner]     Execution of item : VM_Disk_Information_Query / 'Scriptable task'(item1)

2015-10-23 12:00:45.292-0400 DEBUG [WorkflowScriptRunner] Executing script : DESC : Workflow:Get DIsk Type for either RDM or VMDK  / Scriptable task (item1)

2015-10-23 12:00:45.292-0400 DEBUG [MainScriptingObject] [** SCRIPT **] Creating New Local Scripting Object !

2015-10-23 12:00:45.292-0400 DEBUG [AccessRightsInterceptor] Calling method isInDebugMode()...

2015-10-23 12:00:45.292-0400 DEBUG [AccessRightsInterceptor] Calling method getWorkflowForId(String,)...

2015-10-23 12:00:45.307-0400 DEBUG [WorkflowHandler] getAttributeFromCache WorkflowTokenAttribute [name=vm, type=VC:VirtualMachine, value=__NULL__]

2015-10-23 12:00:45.307-0400 DEBUG [WorkflowScriptRunner] Fetching vm

2015-10-23 12:00:45.307-0400 DEBUG [WorkflowHandler] setAttributeToCache vm

2015-10-23 12:00:45.307-0400 INFO  [SCRIPTING_LOG] TypeError: Cannot read property "config" from null (Workflow:Get DIsk Type for either RDM or VMDK  / Scriptable task (item1)#4)

2015-10-23 12:00:45.307-0400 DEBUG [WorkflowScriptRunner] Execute exception

org.mozilla.javascript.EcmaError: TypeError: Cannot read property "config" from null (Workflow:Get DIsk Type for either RDM or VMDK  / Scriptable task (item1)#4)

    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3785)

    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3763)

    at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3791)

    at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3810)

    at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3823)

    at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1508)

    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1398)

    at script(Workflow:Get DIsk Type for either RDM or VMDK  / Scriptable task (item1):4)

    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)

    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)

    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)

    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3178)

    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)

    at org.mozilla.javascript.Context.evaluateString(Context.java:1111)

    at ch.dunes.scripting.server.script.MainScriptingObject.executeScript(MainScriptingObject.java:236)

    at ch.dunes.scripting.server.script.MainScriptingObject.executeScript(MainScriptingObject.java:223)

    at ch.dunes.workflow.engine.mbean.WorkflowScriptRunner.execute(WorkflowScriptRunner.java:188)

    at ch.dunes.workflow.engine.mbean.runner.WorkflowItemTaskRunner.execute(WorkflowItemTaskRunner.java:45)

    at ch.dunes.workflow.engine.mbean.runner.WorkflowItemTaskRunner.execute(WorkflowItemTaskRunner.java:24)

    at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.requestElementExecution(WorkflowHandler.java:819)

    at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.handleWorkflowTokenNextStep(WorkflowHandler.java:563)

    at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.executeToken(WorkflowHandler.java:461)

    at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.handleTokenExecution(WorkflowHandler.java:387)

    at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.access$200(WorkflowHandler.java:86)

    at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler$1.execute(WorkflowHandler.java:303)

    at ch.dunes.model.ar.AccessRightsTemplate.executeWithAccessRights(AccessRightsTemplate.java:16)

    at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.doExecute(WorkflowHandler.java:299)

    at ch.dunes.workflow.engine.mbean.helper.WorkflowHandler.run(WorkflowHandler.java:203)

    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

    at java.util.concurrent.FutureTask.run(FutureTask.java:138)

    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

    at java.lang.Thread.run(Thread.java:662)

Reply
0 Kudos
1 Reply
dvatov
VMware Employee
VMware Employee

2015-10-23 12:00:45.307-0400 DEBUG [WorkflowHandler] getAttributeFromCache WorkflowTokenAttribute [name=vm, type=VC:VirtualMachine, value=__NULL__]

Probably the VM is deleted from the vCenter inventory. Check that this attribute does not have 'Not Found' value in your workflow.

Reply
0 Kudos