Robotics-flow executePlugin exception

I have the same error message as in the topic


(details below).
Script is correctly running when is a stand-alone process or when it is a first step in the combined process but fails when it follows other steps in the flow.

Any suggestions?

Thank you.

org.webharvest.exception.PluginException: [urn:uuid:5150DF8F7EC214F96C1522412804910149] robotics-flow executePlugin exception: [nodeId=http://127.0.0.1:15410] com.workfusion.studio.rpa.recorder.playback.PlaybackException: Error executing TemplateAction[templateName=LaunchAppAction.ftl,id=7,name=Optional[LaunchAppAction],parent=-1,nextSibling=8,arguments=ActionArguments[delay=[0],timeoutMs=[10000],autoDetectWindow=[false],xsi:type=[recorder:LaunchAppAction, recorder:LaunchAppAction],pollingInterval=[300],active=[true],command=[${command}],awaitTimeout=[5000]]]
	at com.freedomoss.crowdcontrol.webharvest.plugin.selenium.RoboticsFlowPlugin.executePlugin(RoboticsFlowPlugin.java:116)
	at org.webharvest.runtime.processors.WebHarvestPlugin.execute(WebHarvestPlugin.java:125)
	at org.webharvest.runtime.processors.BaseProcessor.run(BaseProcessor.java:127)
	at org.webharvest.runtime.Scraper.execute(Scraper.java:169)
	at org.webharvest.runtime.Scraper.execute(Scraper.java:182)
	at com.freedomoss.crowdcontrol.webharvest.executor.LocalWebharvestTaskExecutor.executeWebHarvestTask(LocalWebharvestTaskExecutor.java:182)
	at com.freedomoss.crowdcontrol.webharvest.executor.LocalWebharvestTaskExecutor.executeWebHarvestTask(LocalWebharvestTaskExecutor.java:93)
	at com.workfusion.service.machine.SubmissionsPortionExecutionThread.processSubmission(SubmissionsPortionExecutionThread.java:367)
	at com.workfusion.service.machine.SubmissionsPortionExecutionThread.processSubmissionWithAllocationLogger(SubmissionsPortionExecutionThread.java:348)
	at com.workfusion.service.machine.SubmissionsPortionExecutionThread.lambda$processSubmissionInNamedThread$20(SubmissionsPortionExecutionThread.java:336)
	at com.workfusion.utils.thread.NamedThreadTemplate.executeWithNamedThread(NamedThreadTemplate.java:10)
	at com.workfusion.service.machine.SubmissionsPortionExecutionThread.processSubmissionInNamedThread(SubmissionsPortionExecutionThread.java:336)
	at com.workfusion.service.machine.SubmissionsPortionExecutionThread.processSubmissions(SubmissionsPortionExecutionThread.java:304)
	at com.workfusion.service.machine.SubmissionsPortionExecutionThread.run(SubmissionsPortionExecutionThread.java:208)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.webharvest.exception.PluginException: com.workfusion.studio.rpa.recorder.playback.PlaybackException: Error executing TemplateAction[templateName=LaunchAppAction.ftl,id=7,name=Optional[LaunchAppAction],parent=-1,nextSibling=8,arguments=ActionArguments[delay=[0],timeoutMs=[10000],autoDetectWindow=[false],xsi:type=[recorder:LaunchAppAction, recorder:LaunchAppAction],pollingInterval=[300],active=[true],command=[${command}],awaitTimeout=[5000]]]
	at com.freedomoss.crowdcontrol.webharvest.plugin.recorder.RecorderPlugin.executePlugin(RecorderPlugin.java:103)
	at org.webharvest.runtime.processors.WebHarvestPlugin.execute(WebHarvestPlugin.java:125)
	at org.webharvest.runtime.processors.BaseProcessor.run(BaseProcessor.java:127)
	at org.webharvest.runtime.processors.BodyProcessor.execute(BodyProcessor.java:27)
	at org.webharvest.runtime.processors.WebHarvestPlugin.executeBody(WebHarvestPlugin.java:246)
	at com.freedomoss.crowdcontrol.webharvest.plugin.selenium.RoboticsFlowPlugin.executePlugin(RoboticsFlowPlugin.java:105)
	... 16 more
Caused by: com.workfusion.studio.rpa.recorder.playback.PlaybackException: Error executing TemplateAction[templateName=LaunchAppAction.ftl,id=7,name=Optional[LaunchAppAction],parent=-1,nextSibling=8,arguments=ActionArguments[delay=[0],timeoutMs=[10000],autoDetectWindow=[false],xsi:type=[recorder:LaunchAppAction, recorder:LaunchAppAction],pollingInterval=[300],active=[true],command=[${command}],awaitTimeout=[5000]]]
	at com.workfusion.studio.rpa.recorder.playback.flow.StandardControlFlow.execute(StandardControlFlow.java:54)
	at com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.execute(TemplateAction.java:30)
	at com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.execute(TemplateAction.java:17)
	at com.workfusion.studio.rpa.recorder.playback.player.ActionPlayer.next(ActionPlayer.java:53)
	at com.freedomoss.crowdcontrol.webharvest.plugin.recorder.RecorderPlaybackProcess.start(RecorderPlaybackProcess.java:79)
	at com.freedomoss.crowdcontrol.webharvest.plugin.recorder.RecorderPlugin.play(RecorderPlugin.java:116)
	at com.freedomoss.crowdcontrol.webharvest.plugin.recorder.RecorderPlugin.executePlugin(RecorderPlugin.java:98)
	... 21 more
Caused by: org.openqa.selenium.WebDriverException: CreateProcess error=2, The system cannot find the file specified
Command duration or timeout: 0 milliseconds
Build info: version: '8.5.0.3', revision: 'd87d4f32f3', time: '2018-02-23T12:10:33.153Z'
System info: host: 'PC0LCLEM-X7', ip: '192.168.1.6', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_121'
Driver info: com.freedomoss.crowdcontrol.webharvest.selenium.wrapper.RemoteDriverWrapper
Capabilities [{extra.start.in.private=false, extra.executor.id={run.name=Test read mails-requests, task.name=Read Mail, context.path=/workfusion, host.name=http://localhost:15280, run.author.email=john@doe.ex, run.uuid=86ea0bb2-9819-42bd-92ab-5f90633641c5, run.author.fullname=John Doe}, CLOSE_ALL_WINDOWS=false, browserName=universal, maximize.on.startup=true, javascriptEnabled=true, extra.capabilities.context={"browserType":"universal","startInPrivate":false,"blockImages":false,"maximizeOnStartup":true,"customCapabilities":{"extra.start.in.private":false,"CLOSE_ALL_WINDOWS":false,"SEARCH_ALL_WINDOWS":true},"executorId":{"host.name":"http://localhost:15280","context.path":"/workfusion","run.name":"Test read mails-requests","run.uuid":"86ea0bb2-9819-42bd-92ab-5f90633641c5","run.author.fullname":"John Doe","run.author.email":"john@doe.ex","task.name":"Read Mail"}}, platformName=WINDOWS, SEARCH_ALL_WINDOWS=true, platform=WINDOWS}]
Session ID: ad1f14a5-833e-49d1-9d8c-9d8d4377cc42
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:216)
	at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:168)
	at org.openqa.selenium.remote.http.JsonHttpResponseCodec.reconstructValue(JsonHttpResponseCodec.java:41)
	at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:82)
	at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:45)
	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:656)
	at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:365)
	at com.workfusion.rpa.helpers.RPA.open(RPA.java:445)
	at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:232)
	at Script8_genScript_7.run(Script8_genScript_7.groovy:6)
	at com.workfusion.studio.rpa.recorder.playback.shell.GroovyShellWrapper.executeScript(GroovyShellWrapper.java:90)
	at com.workfusion.studio.rpa.recorder.playback.player.PlaybackContext.executeScript(PlaybackContext.java:65)
	at com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.executeBehavior(TemplateAction.java:35)
	at com.workfusion.studio.rpa.recorder.playback.flow.StandardControlFlow.execute(StandardControlFlow.java:46)
	... 27 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
	at java.lang.ProcessImpl.create(Native Method)
	at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
	at java.lang.ProcessImpl.start(ProcessImpl.java:137)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
	at java.lang.Runtime.exec(Runtime.java:620)
	at java.lang.Runtime.exec(Runtime.java:450)
	at java.lang.Runtime.exec(Runtime.java:347)
	at com.workfusion.autoit.driver.AutoItDriver.runProgram(AutoItDriver.java:249)
	at com.workfusion.autoit.driver.AutoItDriver.get(AutoItDriver.java:114)
	at com.workfusion.universal.driver.UniversalDriver.get(UniversalDriver.java:39)
	at org.openqa.selenium.remote.server.handler.ChangeUrl.call(ChangeUrl.java:40)
	at org.openqa.selenium.remote.server.handler.ChangeUrl.call(ChangeUrl.java:25)
	at org.openqa.selenium.remote.server.handler.WebDriverHandler.handle(WebDriverHandler.java:41)
	at org.openqa.selenium.remote.server.rest.ResultConfig.handle(ResultConfig.java:133)
	at org.openqa.selenium.remote.server.JsonHttpCommandHandler.handleRequest(JsonHttpCommandHandler.java:202)
	at org.openqa.selenium.remote.server.InMemorySession.execute(InMemorySession.java:98)
	at org.openqa.selenium.remote.server.WebDriverServlet.lambda$handle$0(WebDriverServlet.java:231)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	... 3 more
03.30.2018 12:26:15
ERROR	
524	
[urn:uuid:5150DF8F7EC214F96C152241276

This is a different error. The script cannot open an application. Please post the process that you try to execute here.

@sobolev_vv Could you post the process you are trying to execute here? It is hard to define what causes the error without it.

ashapkina, thank you for the response. I have resolved the issue by setting the exception handler at the end of the first process.

1 Like

Hi sobolev_vv,

could you please elaborate on the process which you followed to rectify the same. even i’m facing the same issue!!

regards
Brijesh