Hi,
I am having trouble using the vcenter orchestrator (windows 2008) to create a folder on the C drive on the same machine. I am using a domain account to login to the vcenter orchestrator and run the workflow to create a folder in C drive. However, everytime i run the workflow to create a folder i get the following error in the Workflow log window.
Wrapped java.lang.RuntimeException: Unable to initialize default FileHandlerAccessRights, reason : The filename, directory name, or volume label syntax is incorrect (Workflow:Copy of Prepare Global Data / Create log dir (item4)#5)
I looked at the system log and found more details about this error.
-----------------------------------------------------------------------------------------------
2013-08-07 18:18:07.994-0700 INFO [SCRIPTING_LOG] Wrapped java.lang.RuntimeException: Unable to initialize default FileHandlerAccessRights, reason : The filename, directory name, or volume label syntax is incorrect (Workflow:Copy of Prepare Global Data / Create log dir (item4)#5)
2013-08-07 18:18:07.994-0700 WARN [WorkflowItemTaskRunner] Script execution error on workflow : Copy of Prepare Global Data / 'Create log dir'(item4) : Wrapped java.lang.RuntimeException: Unable to initialize default FileHandlerAccessRights, reason : The filename, directory name, or volume label syntax is incorrect (Workflow:Copy of Prepare Global Data / Create log dir (item4)#5)
2013-08-07 18:18:08.025-0700 INFO [WorkflowHandler] Copy of Prepare Global Data
2013-08-07 18:22:43.562-0700 INFO [Execution] Executing workflow 'Copy of Prepare Global Data'
2013-08-07 18:22:43.640-0700 INFO [SCRIPTING_LOG] [Copy of Prepare Global Data (8/7/13 18:22:43)] creating log dir
2013-08-07 18:22:43.640-0700 ERROR [FileHandlerAccessRightsFactory] Cannot initialize Javascript File access rights
java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:396)
at java.io.File.getCanonicalPath(File.java:559)
at java.io.File.getCanonicalFile(File.java:583)
at ch.dunes.util.security.FileHandlerAccessRights$AccessRightItem.getAbsoluteOrCanonicalFile(FileHandlerAccessRights.java:184)
at ch.dunes.util.security.FileHandlerAccessRights$AccessRightItem.<init>(FileHandlerAccessRights.java:167)
at ch.dunes.util.security.FileHandlerAccessRights.parseNewLine(FileHandlerAccessRights.java:105)
at ch.dunes.util.security.FileHandlerAccessRights.initWithStringContent(FileHandlerAccessRights.java:65)
at ch.dunes.util.security.FileHandlerAccessRights.initWithInputStream(FileHandlerAccessRights.java:51)
at ch.dunes.util.security.FileHandlerAccessRights.initWithFile(FileHandlerAccessRights.java:38)
at ch.dunes.util.security.FileHandlerAccessRightsFactory.getDefaultFileHandlerAccessRights(FileHandlerAccessRightsFactory.java:43)
at ch.dunes.scripting.jsmodel.JSFile.jsFunction_createDirectory(JSFile.java:254)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:476)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701)
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:457)
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)
2013-08-07 18:22:43.640-0700 INFO [SCRIPTING_LOG] Wrapped java.lang.RuntimeException: Unable to initialize default FileHandlerAccessRights, reason : The filename, directory name, or volume label syntax is incorrect (Workflow:Copy of Prepare Global Data / Create log dir (item4)#5)
2013-08-07 18:22:43.640-0700 WARN [WorkflowItemTaskRunner] Script execution error on workflow : Copy of Prepare Global Data / 'Create log dir'(item4) : Wrapped java.lang.RuntimeException: Unable to initialize default FileHandlerAccessRights, reason : The filename, directory name, or volume label syntax is incorrect (Workflow:Copy of Prepare Global Data / Create log dir (item4)#5)
2013-08-07 18:22:43.687-0700 INFO [WorkflowHandler] Copy of Prepare Global Data
The workflow uses a simple script as shown below
var logPath = "D:\\logs";
var logFolder = new File( logPath );
if ( !logFolder.exists ){
System.log("creating log dir")
logFolder.createDirectory();
System.log("created log dir")
}else{
System.log("log dir already exists")
}
I have set "full control" permission for the domain user on the entire D drive. Note: This domain user is not a domain administrator but belongs to a domain group which is also a member of the local administrator group on the orchestrator machine.
I would appreciate if someone could point me in the right direction here.