Start a Conversation

Unsolved

This post is more than 5 years old

13441

August 18th, 2009 02:00

Error While connecting to Centera Server thru Java in Linux

Hi,

I am gettting below error while i am trying to connect centera server from Linux using Java. The same code was working properly in Windows environment but when i try in Linux i am getting error.

For example:

My folder Structure below

Report/lib/libFPCore64.so.3.2.687

          /lib/libFPLibrary64.so.3.2.687 etc........

and i set LD_LIBRARY_PATH to Report/lib

Exception in thread "main" java.lang.UnsatisfiedLinkError: setLastError
        at com.filepool.natives.FPLibraryNative.setLastError(Native Method)
        at com.filepool.fplibrary.FPLibraryException.retrieveErrorString(Unknown Source)
        at com.filepool.fplibrary.FPLibraryException. (Unknown Source)
        at com.filepool.fplibrary.FPPool.RegisterApplication(Unknown Source)
        at com.db.centera.StoreContent.connectToCentera(StoreContent.java:93)
        at com.db.centera.StoreContent.main(StoreContent.java:167)

Could you please help on this?

409 Posts

August 25th, 2009 03:00

can you confirm thge LD_LIBRARY_PATH and your class path are correctly set up?

417 Posts

April 21st, 2010 00:00

The Linux SDK comes with shell script to install it and set up a load of symbolic links.

Have you run this script or just untarred it?

Regards, Graham L. Stuart

Centera SDK Architect

14 Posts

April 21st, 2010 00:00

I got the same error:

Exception in thread "Thread-8" java.lang.UnsatisfiedLinkError: com.filepool.natives.FPLibraryNative.setLastError(I)V
        at com.filepool.natives.FPLibraryNative.setLastError(Native Method)
        at com.filepool.fplibrary.FPLibraryException.retrieveErrorString(Unknown Source)
        at com.filepool.fplibrary.FPLibraryException. (Unknown Source)
        at com.filepool.fplibrary.FPMonitor. (Unknown Source)

I verified LD_LIBRARY_PATH and CLASSPATH of my ebvironment. I use 17 libraries from that direcory, all librries are fond and work but FPLibrary.jar.

It only does not work on linux! On Windows there is no problem.

14 Posts

April 21st, 2010 03:00

Hi Graham,

ah ok, i took the jar file from the windows version as I thought it is platform independent.

I searched powerlink and EDN for a download link for the newest SDK version for linux but can’t find anyone.

Where can I get the latest version for linux from?

Mit freundlichen Gruessen - Yours sincerely

Marco Polak

Analyst

Infrastructure Services & Support

Phone: +49 2273 597 8169, IP-Phone: 78169, Mobil: +49 172 8132723

Email: marco.polak@computacenter.com

Europaring 34-40, 50170 Kerpen, Nordrhein-Westfalen, Germany

Von: Graham Stuart

Gesendet: Mittwoch, 21. April 2010 09:59

An: Polak, Marco

Betreff: New message: "Error While connecting to Centera Server thru Java in Linux"

EMC Community Network

Error While connecting to Centera Server thru Java in Linux

reply from Graham Stuart in Centera SDK - View the full discussion

417 Posts

April 21st, 2010 05:00

The underlying C SDK is required as the jar file is only a JNI wrapper.

Please contact CenteraCSE@EMC.com for further assistance in obtaining the SDK.

Regards, Graham L. Stuart

Centera SDK Architect

14 Posts

May 4th, 2010 05:00

yes it is:

pwd
/usr/local/DC
[root@CCUIR-Dev DC]# ls lib
32                    commons-codec-1.3.jar       commons-logging-1.1.1-javadoc.jar   commons-logging-tests.jar  jaxp.jar
64                    commons-daemon.jar          commons-logging-1.1.1-sources.jar   crimson.jar                mail.jar
AdventNetLogging.jar  commons-httpclient-3.1.jar  commons-logging-adapters-1.1.1.jar  forms-1.0.4.jar
AdventNetSnmp.jar     commons-logging-1.1.1.jar   commons-logging-api-1.1.1.jar       FPLibrary.jar

i start my applictions as a daemon with jsvc:

JAVA_HOME=/usr/local/jdk1.6.0_16

PID_FILE=/var/run/ccuir.pid

CLASSPATH=/usr/local/DC/CCUIR.jar:/usr/local/DC/lib:/usr/local/DC/lib/commons-daemon.jar
CCUIR_LOG=/usr/local/DC/log
case "$1" in
  start)
    #
    # Start CCUIR
    #
    /usr/local/bin/jsvc \
    -home $JAVA_HOME \
    -pidfile $PID_FILE \
    -outfile $CCUIR_LOG/ccuir.log \
    -errfile $CCUIR_LOG/ccuir.err \
    -cp $CLASSPATH \
    CCUIR.CCMonitor /usr/local/DC/centera_cfg.xml

All software and libraries are installed and run as root.

409 Posts

May 4th, 2010 05:00

is the directory you have installed the sdk libraries in on your PATH?

14 Posts

May 4th, 2010 05:00

i installed Centera SDK 3.2 for Linux gcc 4. Now i get this stack trace:

Exception in thread "Thread-10" java.lang.UnsatisfiedLinkError: com.filepool.natives.FPLibraryNative.setLastError(I)V
        at com.filepool.natives.FPLibraryNative.setLastError(Native Method)
        at com.filepool.fplibrary.FPLibraryException.retrieveErrorString(Unknown Source)
        at com.filepool.fplibrary.FPLibraryException. (Unknown Source)
        at com.filepool.fplibrary.FPMonitor. (Unknown Source)
        at CCUIR.Monitor.connect(Monitor.java:32)

GCC Version is:

# gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)

File installed is:

Centera_SDK3.2p5_Linux-gcc4.tgz

I have no idea why i get the nsatisfiedLinError ans the Unknwon source exception.

Regards Marco

14 Posts

May 4th, 2010 06:00

[root@CCUIR-Dev DC]# PATH=$PATH:/usr/local/DC/lib
[root@CCUIR-Dev DC]# export PATH
[root@CCUIR-Dev DC]# ls lib
32                    commons-codec-1.3.jar       commons-logging-1.1.1-javadoc.jar   commons-logging-tests.jar  jaxp.jar
64                    commons-daemon.jar          commons-logging-1.1.1-sources.jar   crimson.jar                mail.jar
AdventNetLogging.jar  commons-httpclient-3.1.jar  commons-logging-adapters-1.1.1.jar  forms-1.0.4.jar
AdventNetSnmp.jar     commons-logging-1.1.1.jar   commons-logging-api-1.1.1.jar       FPLibrary.jar
[root@CCUIR-Dev DC]# which FPLibrary.jar
/usr/local/DC/lib/FPLibrary.jar
[root@CCUIR-Dev DC]# ./ccuir.sh start
[root@CCUIR-Dev DC]# tail -f log/ccuir.err
        at com.filepool.fplibrary.FPLibraryException.retrieveErrorString(Unknown Source)
        at com.filepool.fplibrary.FPLibraryException. (Unknown Source)
        at com.filepool.fplibrary.FPMonitor. (Unknown Source)
        at CCUIR.Monitor.connect(Monitor.java:32)
        at CCUIR.EMC.Centera.CenteraManager.run(CenteraManager.java:139)
        at java.lang.Thread.run(Thread.java:619)
May 4, 2010 3:23:21 PM CCUIR.upload.MyHttpsConnection setTargetHost
INFO: Setting upload URL: https://sunservice.computacenter.de
May 4, 2010 3:23:21 PM CCUIR.upload.MyHttpsConnection setTargetHost
INFO: Setting upload URL: https://1.1.1.4
Exception in thread "Thread-8" java.lang.UnsatisfiedLinkError: com.filepool.natives.FPLibraryNative.setLastError(I)V
        at com.filepool.natives.FPLibraryNative.setLastError(Native Method)
        at com.filepool.fplibrary.FPLibraryException.retrieveErrorString(Unknown Source)
        at com.filepool.fplibrary.FPLibraryException. (Unknown Source)
        at com.filepool.fplibrary.FPMonitor. (Unknown Source)
        at CCUIR.Monitor.connect(Monitor.java:32)
        at CCUIR.EMC.Centera.CenteraManager.run(CenteraManager.java:139)
        at java.lang.Thread.run(Thread.java:619)

Same with:

# cat ccuir.sh
#!/bin/sh
# chkconfig: 23 85 15
# description: ESG Gateway
JAVA_HOME=/usr/local/jdk1.6.0_16
PATH=$PATH:/usr/local/DC/lib
PID_FILE=/var/run/ccuir.pid

CLASSPATH=/usr/local/DC/CCUIR.jar:/usr/local/DC/lib:/usr/local/DC/lib/commons-daemon.jar
CCUIR_LOG=/usr/local/DC/log
case "$1" in
  start)
    #
    # Start CCUIR
    #
    export PATH;
    /usr/local/bin/jsvc \
    -home $JAVA_HOME \
    -pidfile $PID_FILE \
    -outfile $CCUIR_LOG/ccuir.log \
    -errfile $CCUIR_LOG/ccuir.err \
    -cp $CLASSPATH \
    CCUIR.CCMonitor /usr/local/DC/centera_cfg.xml
    #
    # To get a verbose JVM
    #-verbose \
    # To get a debug of jsvc.
    #-debug \
    exit $?
    ;;

409 Posts

May 4th, 2010 06:00

I dont see your PATH env var in the list

2 Posts

April 23rd, 2015 02:00

LD_LIBRARY_PATH=/ORACLE9208/bea103/gfp/centeraTest/Centera_SDK/lib/

export LD_LIBRARY_PATH=$LD_LIBRARY

is not an identifier

No Events found!

Top