UnsatisfiedLinkError: The specified module could not be found .... from Rational Quality Manager
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.
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] |
|
||
FAIL | 31 май 2013 г. 13:02:09 MSK | scriptsDemo.Demo00CreateClient.testMain had an unhandled error. |
|
||
FAIL | 31 май 2013 г. 13:02:09 MSK | Script end [scriptsDemo.Demo00CreateClient] |
|
Accepted answer
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.
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.