java.lang.UnsatisfiedLinkError: com.abbyy.FREngine.Engine.unload()

  • 568 Views
  • Last Post 20 September 2016
FranciskaS posted this 19 September 2016

Hi,

I am using the EnginesPool from the java samples and during the initialization of the Engines Pool I got an exception like this:

Exception in thread "main" java.lang.UnsatisfiedLinkError: com.abbyy.FREngine.Engine.unload()V
    at com.abbyy.FREngine.Engine.unload(Native Method)
    at com.abbyy.FREngine.Engine.DeinitializeEngine(Engine.java:70)
    at com.snapaddy.ocr.server.scanner.EnginesPoolInit.GetAllowedCoresNumber(EnginesPoolInit.java:24)
    at com.snapaddy.ocr.server.scanner.EnginesPoolInit.initialize(EnginesPoolInit.java:32)
    at com.snapaddy.ocr.server.Main.main(Main.java:14) 

This exception doesn't cause serious issue at this moment, because my server works well, but in long term I would like to know what the issue can be.

Here is the code where the exception came :

private static int GetAllowedCoresNumber(String projectId) throws Exception {
        int cores = 0;
        // It's need to load FREngine instance to get information about license
        IEngine engine;
        try {
            engine = Engine.GetEngineObject(ScanningConfigs.getDllFolder(), "");
            ILicense license = engine.GetAvailableLicenses(projectId, "").Find(projectId);
            if (license == null) {
                throw new Exception("License " + projectId + " not found!");
            }
            cores = license.getAllowedCoresCount();
        } finally {
            ***Engine.DeinitializeEngine();***
        }
        return cores;
    }

The exception came from the Engine.DeinitializeEngine().

I am using FineReader Engine 11 on a Windows server.

Thanks for the help!

Regards, Franciska

Oksana Serdyuk posted this 20 September 2016

Kindly provide the following information to SDK_Support@abbyy.com:

  1. The serial number of your FREngine package.

  2. The build number of your FREngine distribution. To determine the build number please see the Readme.htm file.

  3. The FREngine log, which can be obtained by calling the Engine.StartLogging() method in your application right after the Engine object was created.

Thank you in advance!

Close