Unsolved

This post is more than 5 years old

5945

July 15th, 2009 06:00

UnsatisfiedLinkError on AIX

Hi guys, I have installed the JCenterVerify application on my AIX box and get an UnsatiesfiedLinkError.

Here is what I am doing

xiud1e01:i2zatt:/var/csp/at/test/tmp/centera/jverify>echo $PATH
/usr/java6_64/jre/bin:/opt/CA/SharedComponents/dmscript/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java6_64/jre/bin:/usr/java6_64/bin:/usr/java6_64/jre/bin:/usr/java6_64/bin:/usr/local/bin/:/usr/lpp/OV/OpC:/usr/DynamicLinkManager/bin:/opt/RRZ/AIX/jobs:/opt/RRZ/AIX/util/sh:/opt/RRZ/AIX/bin:/opt/RRZ/AIX/sbin:./:/usr/local/bin:/var/csp/at/test/tmp/centera/jverify


xiud1e01:i2zatt:/var/csp/at/test/tmp/centera/jverify>echo $LD_LIBRARY_PATH
/var/csp/at/test/tmp/centera/jverify


xiud1e01:i2zatt:/var/csp/at/test/tmp/centera/jverify>echo $CLASSPATH
/var/csp/at/test/tmp/centera/jverify/JCenteraVerify.jar:/var/csp/at/test/tmp/centera/jverify/JCenteraVerifyHelp.jar:/var/csp/at/test/tmp/centera/jverify/jbcl.jar:/var/csp/at/test/tmp/centera/jverify/jh.jar:/var/csp/at/test/tmp/centera/jverify/FPLibrary.jar


xiud1e01:i2zatt:/var/csp/at/test/tmp/centera/jverify>java -cp $CLASSPATH -Dext.library.path=$LD_LIBRARY_PATH com.emc.centera.JCenteraVerify.JCenteraVerify
Exception in thread "main" java.lang.UnsatisfiedLinkError: com/filepool/natives/FPLibraryNative.setLastError(I)V
        at com.filepool.fplibrary.FPLibraryException.retrieveErrorString(Unknown Source)
        at com.filepool.fplibrary.FPLibraryException. (Unknown Source)
        at com.filepool.fplibrary.FPPool.getComponentVersion(Unknown Source)
        at com.emc.centera.JCenteraVerify.JCenteraVerify.init(JCenteraVerify.java:148)
        at com.emc.centera.JCenteraVerify.JCenteraVerify.main(JCenteraVerify.java:189)
xiud1e01:i2zatt:/var/csp/at/test/tmp/centera/jverify>


xiud1e01:i2zatt:/var/csp/at/test/tmp/centera/jverify>java -jar JCenteraVerify.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: com/filepool/natives/FPLibraryNative.setLastError(I)V
        at com.filepool.fplibrary.FPLibraryException.retrieveErrorString(Unknown Source)
        at com.filepool.fplibrary.FPLibraryException. (Unknown Source)
        at com.filepool.fplibrary.FPPool.getComponentVersion(Unknown Source)
        at com.emc.centera.JCenteraVerify.JCenteraVerify.init(JCenteraVerify.java:148)
        at com.emc.centera.JCenteraVerify.JCenteraVerify.main(JCenteraVerify.java:189)
xiud1e01:i2zatt:/var/csp/at/test/tmp/centera/jverify>

As you can see I have set PATH; LD_LIBRARY_PATH and CLASSPATH and also ext.library.path for Java.

With my windows installation everything worked fine - except that I had to copy the dlls into my windows/system32 folder.

Is there any such path on AIX that I must use to get this working?

regards, Chris

______

Another update on this thread: I testes the tool with Java 1.4 on the same machine and this works; see


Verification Complete.
xiud1e01:i2zatt:/var/csp/at/test/tmp/centera/jverify>java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM AIX build ca142-20061124 (SR7) (JIT enabled: jitc))
xiud1e01:i2zatt:/var/csp/at/test/tmp/centera/jverify>export JAVA_HOME=/usr/java
java14/   java6_64/
xiud1e01:i2zatt:/var/csp/at/test/tmp/centera/jverify>export JAVA_HOME=/usr/java6_64
xiud1e01:i2zatt:/var/csp/at/test/tmp/centera/jverify>export PATH=/usr/java6_64/bin:$PATH
xiud1e01:i2zatt:/var/csp/at/test/tmp/centera/jverify>java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build pap6460-20071123_01)
IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 AIX ppc64-64 jvmap6460-20071121_15015 (JIT enabled)
J9VM - 20071121_015015_BHdSMr
JIT  - r9_20071121_1330
GC   - 20071031_AA)
JCL  - 20071118_01
xiud1e01:i2zatt:/var/csp/at/test/tmp/centera/jverify>java -jar JCenteraVerify.jar -address 10.122.39.2?/opt/csp/at/test/shared_cfg/CONNECTOR/CENTERA/uniqa-dms_t_at_uniqa_00_no.pea -log verify.log
Exception in thread "main" java.lang.UnsatisfiedLinkError: com/filepool/natives/FPLibraryNative.setLastError(I)V
        at com.filepool.fplibrary.FPLibraryException.retrieveErrorString(Unknown Source)
        at com.filepool.fplibrary.FPLibraryException. (Unknown Source)
        at com.filepool.fplibrary.FPPool.getComponentVersion(Unknown Source)
        at com.emc.centera.JCenteraVerify.JCenteraVerify.init(JCenteraVerify.java:148)
        at com.emc.centera.JCenteraVerify.JCenteraVerify.main(JCenteraVerify.java:189)
xiud1e01:i2zatt:/var/csp/at/test/tmp/centera/jverify>

Any hints?

  c

6 Posts

July 16th, 2009 07:00

hi,

have you added the directory where the libraries were installed to the library path environment variable LIBPATH under AIX as discribed at the Centera SDK for AIX release notes at the installation section.

regards

Thomas Binder

July 16th, 2009 10:00

btw. is there some customer out there running Centera under AIX 5.3 and using Java?

July 16th, 2009 10:00

Hi, I have added the directory where I unpacked the JCenteraVerify tool to the following environment variable

  LIB_PATH, LIBPATH, LD_LIBRARY_PATH, PATH

so I gess this must be working for every UNIX installation. As you can see from the shell output above I just changed to java 1.4 and

then it worked (no change on the environment in between).

In the meantime I have done some tests under Read Hat Linux and there the tool worked with Java 1.4, 1.5 and 1.6.

I guess this is some AIX special issue (as usual:(

Is there some special path I have to install the Centera Libraries to (/usr/local) or so?

July 20th, 2009 03:00

Hi guys, I found the source of my problems, they were twofold:

(a) The JCenteraVerify tool for AIX coming from here ships the 32bit versions of the libraries and therefore they can't used directly

(b) it does not seem to be possible to have the 32bit and 64 bit libraries in the same folder, even when linked correctly

After I have split the 32 and 64 bit libraries the linkage error got away:)

1 Message

September 3rd, 2014 04:00

I am trying to run CentreaVerify on AIX 6.1 TL-9 and facing the same issue. Did any one had a chance to run this with AIX 6.1 Tl-9 and got it resolved.

I have tried 32bit and 64 bit Java codes. But nothing seems to be working.

# /usr/java5_64/jre/bin/java -jar JCenteraVerify.jar

Exception in thread "main" java.lang.UnsatisfiedLinkError: com/filepool/natives/FPLibraryNative.setLastError(I)V

        at com.filepool.fplibrary.FPLibraryException.retrieveErrorString(Unknown Source)

        at com.filepool.fplibrary.FPLibraryException. (Unknown Source)

        at com.filepool.fplibrary.FPPool.getComponentVersion(Unknown Source)

        at com.emc.centera.JCenteraVerify.JCenteraVerify.init(JCenteraVerify.java:148)

        at com.emc.centera.JCenteraVerify.JCenteraVerify.main(JCenteraVerify.java:189)

Thanks,

Sijo

0 events found

No Events found!

Top