Community

run: Invalid license password

Hello,

I use Abbyy Fine Reader Engine 11 with java. Application runs well with the SDK License. However, when I run application with the runtime License, abbyy dll gives me : run: Invalid license password

Can you help me to go ahead.

Log file %ProgramData%\ABBYY\SDK\11\Licenses\ProductProtection.log content is :

08/01/14 13:51:15 (2532) Application context [0000000001C84230] created. Identity is user USERADMIN, computer USER-PC
08/01/14 13:51:15 (2532) Initializing network subsystem
08/01/14 13:51:15 (2532) Server address: , LocalInterprocessCommunication, ABBYY FREngine Windows 11.0 Licensing Service
08/01/14 13:51:15 (2532) Initializing inproc subsystem
08/01/14 13:51:15 (2532) Application context [0000000001C84230] identity changed. New is user USERADMIN, computer USER-PC
08/01/14 13:51:15 (2532) Application context [0000000001C84230] identity changed. New is user USERBEEADMIN, computer USERBEE-PC
08/01/14 13:51:15 (2532) Exception caught on license SWExxxxxxxxxxx run: Invalid license password
08/01/14 13:51:15 (2532) Deinitializing product protection
08/01/14 13:51:15 (2532) Application context [0000000001C84230] removed
0

Comments

1 comment

  • Avatar
    fasar

    Ok, It works for me with this code.

        System.out.println( "Initializing Abbyy engine OUTPROC..." );
        IEngineLoader engineLoader = Engine.CreateEngineOutprocLoader();
        IEngine engine = engineLoader.GetEngineObject( null );
        ILicenses licenses = engine.GetAvailableLicenses(serialNumber, password);
        int nbLicenses = licenses.getCount();
        ILicense licenseRes = null;
        int i = 0;
        while(licenseRes == null && i<nbLicenses) {
            ILicense license = licenses.getElement(i);
            System.out.println((i+1) + "/" + nbLicenses + ": " + licenseToString(license));
            if(license.getVolumeRemaining(LicenseCounterTypeEnum.LCT_Pages) > 0) {
                licenseRes = license;
            }
            i++;
        }
    
        if(licenseRes != null) {
           engine.SetCurrentLicense(licenseRes, false);
        } else {
            unloadEngine();
            String licensesStr = "NB/"+nbLicenses+": SN+PagesRemains+AllowedCoresCount\n";
            for(int j = 0; j<nbLicenses; j++) {
                ILicense license = licenses.getElement(i);
                licensesStr += (i+1) + "/" + nbLicenses + ": ";
                licensesStr += licenseToString(license);
            }
            throw new AbbyyBuildException("No license found with available pages. Licenses are : \n" + licensesStr );
        }
    
        ... DO WHAT YOU WANT ...
    
     if(engine != null) engine.Release();
     engine = null;
     if(engineLoader!=null) {
         engineLoader.ExplicitlyUnload();
         engineLoader = null;
         Engine.Unload();
     }
    
    1

Please sign in to leave a comment.