如何在不重新安装的情况下添加/更改Workfusion OCR配置或解决OCR问题

时间:2018-07-25 07:33:13

标签: workfusion

打开Workfusion Studio。

选择右下角
服务器配置文件:默认

点击管理个人资料

在“首选项”窗口中
选择 WorkFusion studio->服务器配置文件侧面菜单

在此配置中,以下字段的值是什么。
OCR
实例?
JWT发行人?
JWT机密吗?

实际上,当我在Workfusion Studio中运行OCR时,我遇到了以下错误 enter image description here执行OcrAction时出错   com.workfusion.studio.rpa.recorder.playback.PlaybackException:执行TemplateAction [templateName = OcrAction.ftl,id = 2,name = Optional [OcrAction],parent = -1,nextSibling = 3,arguments = ActionArguments [varName = [名称],imageName = [C:\ Users \ Administrator \ workfusion-workspace \ rpae_project \ OCR \ 1532498224608-anchor-1532498224737.apng],fullImageName = [1532498224608.png],xsi:type = [recorder:OcrAction,记录器: OcrAction],pollingInterval = [300],active = [true],type = [CONTROL],offsetX = [-353],delay = [5000],offsetY = [272],width = [156],actionDetails = [(到“名称”矩形156 x 26)],高度= [26],awaitTimeout = [5000]]]       在com.workfusion.studio.rpa.recorder.playback.flow.StandardControlFlow.execute(StandardControlFlow.java:54)       在com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.execute(TemplateAction.java:30)       在com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.execute(TemplateAction.java:17)       在com.workfusion.studio.rpa.recorder.playback.player.ActionPlayer.next(ActionPlayer.java:53)       在com.workfusion.studio.rpa.recorder.player.PlaybackLogic.playNextAction(PlaybackLogic.java:153)       在com.workfusion.studio.rpa.recorder.player.PlaybackLogic.run(PlaybackLogic.java:113)       在java.lang.Thread.run(Thread.java:745)   引起原因:org.openqa.selenium.WebDriverException:无法执行脚本。 URI不是绝对的 内部版本信息:版本:'9.0.0.3',版本:'1610cb545e',时间:'2018-05-24T16:45:36.185Z' 系统信息:主机:'WIN-NC78EG9TDCU',ip:'192.168.192.133',操作系统名称:'Windows Server 2012 R2',os.arch:'amd64',os.version:'6.3',java.version: '1.8.0_121' 驱动程序信息:driver.version:UniversalDriver 命令持续时间或超时:0毫秒       在sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)处       在sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)       在sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)       在java.lang.reflect.Constructor.newInstance(Constructor.java:423)       在org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:216)       在org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:168)       在org.openqa.selenium.remote.http.JsonHttpResponseCodec.reconstructValue(JsonHttpResponseCodec.java:41)       在org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:82)       在org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:45)       在org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)       在org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:656)       在org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:592)       在com.workfusion.rpa.helpers.RPA.executeScript(RPA.java:864)       在com.workfusion.rpa.helpers.RPA.executeGroovyScript(RPA.java:930)       在com.workfusion.rpa.helpers.Ocr.proccessImage(Ocr.java:111)       在com.workfusion.rpa.helpers.Ocr.proccessImage(Ocr.java:35)       在com.workfusion.rpa.helpers.Ocr $ proccessImage.call中(未知来源)       在org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)       在org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)       在Script2.run(Script2.groovy:7)       在com.workfusion.studio.rpa.recorder.playback.shell.GroovyShellWrapper.executeScript(GroovyShellWrapper.java:90)       在com.workfusion.studio.rpa.recorder.playback.player.PlaybackContext.executeScript(PlaybackContext.java:65)       在com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.executeBehavior(TemplateAction.java:35)       在com.workfusion.studio.rpa.recorder.playback.flow.StandardControlFlow.execute(StandardControlFlow.java:46)       在com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.execute(TemplateAction.java:30)       在com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.execute(TemplateAction.java:17)       在com.workfusion.studio.rpa.recorder.playback.player.ActionPlayer.next(ActionPlayer.java:53)       在com.workfusion.studio.rpa.recorder.player.PlaybackLogic.playNextAction(PlaybackLogic.java:153)       在com.workfusion.studio.rpa.recorder.player.PlaybackLogic.run(PlaybackLogic.java:113)       在java.lang.Thread.run(Thread.java:745)   引起原因:org.openqa.selenium.WebDriverException:无法执行脚本。 URI不是绝对的 内部版本信息:版本:'9.0.0.3',版本:'1610cb545e',时间:'2018-05-24T16:45:36.185Z' 系统信息:主机:'WIN-NC78EG9TDCU',ip:'192.168.192.133',操作系统名称:'Windows Server 2012 R2',os.arch:'amd64',os.version:'6.3',java.version: '1.8.0_121' 驱动程序信息:driver.version:UniversalDriver 内部版本信息:版本:'9.0.0.3',版本:'1610cb545e',时间:'2018-05-24T16:45:36.185Z' 系统信息:主机:'WIN-NC78EG9TDCU',ip:'192.168.192.133',操作系统名称:'Windows Server 2012 R2',os.arch:'amd64',os.version:'6.3',java.version: '1.8.0_121' 驱动程序信息:driver.version:UniversalDriver       在com.workfusion.autoit.driver.AutoItDriver.executeScript(AutoItDriver.java:189)       在com.workfusion.universal.driver.UniversalDriver.executeScript(UniversalDriver.java:149)       在org.openqa.selenium.remote.server.handler.ExecuteScript.call(ExecuteScript.java:54)       在org.openqa.selenium.remote.server.handler.WebDriverHandler.handle(WebDriverHandler.java:41)       在org.openqa.selenium.remote.server.rest.ResultConfig.handle(ResultConfig.java:133)       在org.openqa.selenium.remote.server.JsonHttpCommandHandler.handleRequest(JsonHttpCommandHandler.java:203)       在org.openqa.selenium.remote.server.InMemorySession.execute(InMemorySession.java:98)       在org.openqa.selenium.remote.server.WebDriverServlet.lambda $ handle $ 0(WebDriverServlet.java:231)       在java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511)       在java.util.concurrent.FutureTask.run(FutureTask.java:266)       在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)       在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)       在java.lang.Thread.run(Thread.java:745)

1 个答案:

答案 0 :(得分:0)

如果RPA Express安装在单台计算机上(服务器+工作站安装在同一系统上),请输入以下详细信息:

实例:http://localhost:15580/api

JWT Issuer:输入用户名(安装过程中提供,请检查以下屏幕以提醒您)

JWT Secret:输入密码(安装过程中提供)

enter image description here

如果OCR服务器不同,则相应地更改实例URL。