It's all about the answers!

Ask a question

UnsatisfiedLinkError: The specified module could not be found .... from Rational Quality Manager


0
1
Yonathan Andres (1312) | asked May 31 '13, 5:39 a.m.
edited Jun 04 '13, 5:17 a.m.
Hi!
We are working with RFT testing a command line application, and just starting to move some things to Rational Quality Manager. All our scripts are working just fine running them from RFT. We encounter some problems with NoClassFoundError and solve them copying all libraries (including a exported jar of our whole project) to customization folder.

Now the scripts start running but when they use a OCR library it crash with UnsatisfiedLinkError
The structure of our project is something like this:

Automation (our personal framework library)
- lib
* com.abbyy.FREngine.jar (OCR lib)
* other libs
- ocrPackage
* AbbyyEngine.java (OCR class for using in our projects)
- otherPackages

ActualAutotestingProject
- lib
* Automation.jar
* other libs
- projectStructure
* Some classes are using AbbyEngine
scriptsDemo.
Demo00CreateClient (very simple script using OCR)

I saw this thread but didnt help that much :/
Thx in advance for the help.

The logs from RQM: 
NFORMATION 31 май 2013 г. 13:01:30 MSK Script start [scriptsDemo.Demo00CreateClient]
  • Line Number = 1
  • Script Iteration count = 0
  • Script Name = scriptsDemo.Demo00CreateClient
  • Script Id = scriptsDemo.Demo00CreateClient.java
  • \scriptsDemo\ClientDatapool.rftdp
FAIL 31 май 2013 г. 13:02:09 MSK scriptsDemo.Demo00CreateClient.testMain had an unhandled error.
  • java.lang.UnsatisfiedLinkError
  • C:\Users\user1\AppData\Local\Temp\win\x86\FREngine.JNI.dll (Не найден указанный модуль. )
  • Script Name = scriptsDemo.Demo00CreateClient
  • Script Id = scriptsDemo.Demo00CreateClient.java
  • Line Number = 21
  • at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1018) at java.lang.System.load(System.java:460) at com.abbyy.FREngine.Engine.loadFREngineJNIdll(Engine.java:102) at com.abbyy.FREngine.Engine.Load(Engine.java:19) at Automation.ocr.AbbyyEngine.loadEngine(AbbyyEngine.java:30) at Automation.ocr.AbbyyEngine.recognizeTextOnImage(AbbyyEngine.java:16) at Automation.app.TextRecognitionHelper.recognizeTextOnImage(TextRecognitionHelper.java:29) at Automation.app.TextRecognitionHelper.recognizeTextInRectangle(TextRecognitionHelper.java:19) at scriptsDemo.Demo00CreateClient.testMain(Demo00CreateClient.java:21) at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408) at org.eclipse.equinox.launcher.Main.main(Main.java:1384) at org.eclipse.core.launcher.Main.main(Main.java:34)
FAIL 31 май 2013 г. 13:02:09 MSK Script end [scriptsDemo.Demo00CreateClient]
  • Script Name = scriptsDemo.Demo00CreateClient
  • Script Id = scriptsDemo.Demo00CreateClient.java

Accepted answer


permanent link
Piotr Aniola (3.7k11738) | answered Jun 04 '13, 7:18 a.m.
From the stack trace, it appears the failure is in the OCR library itself.
The relevant frames are:
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1018) at java.lang.System.load(System.java:460) at com.abbyy.FREngine.Engine.loadFREngineJNIdll(Engine.java:102) at com.abbyy.FREngine.Engine.Load(Engine.java:19) at
The library apparently tries to load a native DLL via JNI, but the DLL is either not found, or is not exporting the expected native methods.

I believe this library is not provided by IBM, is it? I suggest to contact the vendor of the library.
Yonathan Andres selected this answer as the correct answer

Comments
Yonathan Andres commented Jun 26 '13, 11:49 a.m. | edited Jun 26 '13, 11:51 a.m.

 Hi all!


We fixd this problem copying this C:\Users\user1\AppData\Local\Temp\win\x86\FREngine.JNI.dll file to the C:\ProgramData\IBM\RFT\customization folder

Piotr, Thx anyway :)

Your answer


Register or to post your answer.