OCR Plugin not working in RPA Express WF Studio and in Control Tower

While running the sample OCR plugin code, I’m getting the following exception:

10:40:54 [INFO] VarDefProcessorValidated starts processing…
10:40:54 [INFO] OcrPlugin starts processing…
10:40:54 [ERROR] plugin: fail: null
10:40:54 [ERROR]
java.lang.NullPointerException
at com.freedomoss.crowdcontrol.webharvest.plugin.ocr.OcrPlugin.setContext(OcrPlugin.java:127)
at com.freedomoss.crowdcontrol.webharvest.plugin.ocr.OcrPlugin.executePlugin(OcrPlugin.java:101)
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.VarDefProcessor.execute(VarDefProcessor.java:59)
at com.freedomoss.crowdcontrol.webharvest.processors.VarDefProcessorValidated.execute(VarDefProcessorValidated.java:28)
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:187)
at com.workfusion.studio.launch.SingleThreadWebHarvestProcess.processTaskInputs(SingleThreadWebHarvestProcess.java:77)
at com.workfusion.studio.launch.SingleThreadWebHarvestProcess.start(SingleThreadWebHarvestProcess.java:46)
at com.workfusion.studio.launch.WebHarvestMainLauncher.launch(WebHarvestMainLauncher.java:102)
at com.workfusion.studio.launch.WebHarvestMainLauncher.main(WebHarvestMainLauncher.java:174)
10:40:54 [INFO] -------------------------------------------
10:40:54 [INFO] EXECUTION FAILED
10:40:54 [INFO] Exception occurred (sample.xml:4)
10:40:54 [INFO] -------------------------------------------

Below is my code:

<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://web-harvest.sourceforge.net/schema/1.0/config" scriptlang="groovy">
  <var-def name="ocr_scanned_img">
    <ocr correct-skew="true">
      <ocr-image>
        <http url="https://blog.magestore.com/wp-content/uploads/2018/02/Ideal-POS-receipt-configure.png" />
      </ocr-image>
    </ocr>
  </var-def>

  <script><![CDATA[
		println ocr_scanned_img.getWrappedObject().getClass().toString()
		println ocr_scanned_img.toString()
  ]]></script>

  <export include-original-data="false">
  </export>
</config>

Even the code is not getting executed in the Control Tower. I’m getting the below error:

I/O error on POST request for “https://copernicus-ocr1.workfusion.com/api/v1/cloud/processImage

(I have started OCR from the tray menu)
OCR Version - 9.0.0.3

Hi @hemaswapnika_e we are aware of this bug in WorkFusion Studio.


It has been fixed for the new version we are planning to release next week.

As for the issue with Control Tower, are you trying to run it from local RPA Express Control Tower or SPA Control Tower?

Hi,
While running from local RPA Express Control Tower, I’m getting the following error:

IO error during HTTP execution for URL: https://blog.magestore.com/wp-content/uploads/2018/02/Ideal-POS-receipt-configure.png

I have opened it manually in the browser. It is getting opened.

While running from SPA Control Tower, I’m getting the following error:

I/O error on POST request for “https://copernicus-ocr1.workfusion.com/api/v1/cloud/processImage"

Hi ashapkina,

Is the bug fixed in the new version?

@hemaswapnika_e Is has been been fixed for the next release, 2.1.0. We will release it by the end of this week.

Can you look into the issue why I am getting the error in Control Tower

@hemaswapnika_e please update to a newer version of RPA Express. Let me know if you still have this error on the new version.

@hemaswapnika_e did updating to a new version help?