JNI : Unsatisfied Link Error using C++ from Java

Am using JNI to call a C Function which in turn creates a new C++ object and calls a method on it.
When I run the java program that calls this native method, I get a UnsatisfiedLinkError : No <lib> in java.library.path.
If I change the C function to do a simple printf instead of creating a new object , it works fine.
I am printng out the java.library.path before calling the loadLibrary method, the path is correct.
Am using Java 1.2.2 and compiling with gcc 2.7 on solaris 2.6 (Sun OS 5.6)
Any help would be appreciated. I have seen some other folks having similar problems but haven't seen any replies that seem to solve the problem.

Thanks for the ldd suggestion :
This is the output from ldd
ldd -sir liba.so
find library=./liba.so; required by /usr/lib/lddstub
find library=libe.so; required by ./liba.so
search path=/user/ajax/jni (LD_LIBRARY_PATH)
trying path=/user/ajax/jni/libe.so
libe.so => /user/ajax/jni/libe.so
symbol not found: strcpy (/user/ajax/jni/libe.so)
symbol not found: strcpy (/user/ajax/jni/libe.so)
symbol not found: printf (/user/ajax/jni/libe.so)
symbol not found: printf (/user/ajax/jni/libe.so)
symbol not found: __builtin_new (/user/ajax/jni/libe.so)
symbol not found: printf (/user/ajax/jni/libe.so)
init library=/user/ajax/jni/libe.so
init library=./liba.so
libe.so is in the LD_LIBRARY_PATH
The 'man' pages for ldd say this :
Using the -d or -r option with shared objects can give misleading results. ldd does a "worst case" analysis of the shared objects. However, in practice some or all of the symbols reported as unresolved can be resolved by the executable file referencing the shared object.
Most of them seem ok, but I am wondering about "__builtin_new", anyone know what shared lib that's supposed to be in ?

Similar Messages

  • Unsatisfied Link Error : no jsafe in java.library.path

    Hi,
    When I try to connect to the server securily through a java program (t3s://localhost:7002),I
    get the Unsatisfied Link Error: no jsafe in java.library.path(the stack trace
    is at the end of this post). I've included all the weblogic jar files(including
    lib\weblogicaux.jar) in the classpath at runtime with -classpath command line
    option.I've also tried to run the program with
    "-Djava.library.path=D:\weblogic\lib\weblogicaux.jar" commandline option to no
    avail.Is there something I'm missing?
    Any suggestion or help would be appreciated.Hoping for a speedy reply
    Regards,
    Sreedhar
    "here is the stack trace"
    java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
    at java.lang.Runtime.loadLibrary0(Runtime.java:749)
    at java.lang.System.loadLibrary(System.java:820)
    at
    COM.rsa.jsafe.JSAFE_DeviceBuilderNative.buildObjects(JSAFE_DeviceBuilderNati
    ve.java)
    at
    COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
    at
    COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
    at weblogic.security.RSA.performOPJSafe(RSA.java:178)
    at weblogic.security.RSA.performOp(RSA.java:104)
    at weblogic.security.RSApkcs1.decrypt(RSApkcs1.java:153)
    at weblogic.security.RSAMDSignature.verify(RSAMDSignature.java:87)
    at weblogic.security.X509.verifySignature(X509.java:223)
    at weblogic.security.X509.verify(X509.java:152)
    at weblogic.security.SSL.SSLCertificate.verify(SSLCertificate.java:128)
    at weblogic.security.SSL.SSLCertificate.input(SSLCertificate.java:107)
    at weblogic.security.SSL.Handshake.input(Handshake.java:109)
    at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:928)
    at weblogic.security.SSL.SSLSocket.clientInit(SSLSocket.java:343)
    at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:217)
    at weblogic.security.SSL.SSLSocket.<init>(SSLSocket.java:170)
    at weblogic.socket.JVMSocketT3S.newSocket(JVMSocketT3S.java:29)
    at weblogic.socket.JVMSocketT3.newSocketWithRetry(JVMSocketT3.java:275)
    at weblogic.socket.JVMSocketT3.connect(JVMSocketT3.java:59)
    at weblogic.socket.JVMAbbrevSocket.connect(JVMAbbrevSocket.java:160)
    at weblogic.socket.JVMSocketManager.create(JVMSocketManager.java:294)
    at
    weblogic.rjvm.ConnectionManager.findOrCreateSocket(ConnectionManager.java:91
    8)
    at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:339)
    at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:306)
    at
    weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:248)
    at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:219)
    at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:186)
    at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:155)
    at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:200)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
    textFactoryDelegate.java:195)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
    textFactoryDelegate.java:148)
    at
    weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
    ory.java:123)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
    at javax.naming.InitialContext.init(InitialContext.java:222)
    at javax.naming.InitialContext.<init>(InitialContext.java:198)
    at
    com.cbmx.test.ClientTreeModel.getInitialContext(ClientTreeModel.java:169)
    at com.cbmx.test.ClientTreeModel.<init>(ClientTreeModel.java:36)
    at com.cbmx.test.Frame1.<init>(Frame1.java:13)
    at com.cbmx.test.Application1.<init>(Application1.java:11)
    at com.cbmx.test.Application1.main(Application1.java:42)

    I assume your are running on a Unix platform? If so, it looks like you don't
    have the native implementation file from the vendor (usually a shared
    library file with a ".so" extension) in your LD_LIBRARY_PATH environment
    variable.
    Giri
    "sirigiri sreedhar" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi,
    When I try to connect to the server securily through a java program(t3s://localhost:7002),I
    get the Unsatisfied Link Error: no jsafe in java.library.path(the stacktrace
    is at the end of this post). I've included all the weblogic jarfiles(including
    lib\weblogicaux.jar) in the classpath at runtime with -classpath commandline
    option.I've also tried to run the program with
    "-Djava.library.path=D:\weblogic\lib\weblogicaux.jar" commandline optionto no
    avail.Is there something I'm missing?
    Any suggestion or help would be appreciated.Hoping for a speedy reply
    Regards,
    Sreedhar
    "here is the stack trace"
    java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
    at java.lang.Runtime.loadLibrary0(Runtime.java:749)
    at java.lang.System.loadLibrary(System.java:820)
    at
    COM.rsa.jsafe.JSAFE_DeviceBuilderNative.buildObjects(JSAFE_DeviceBuilderNati
    ve.java)
    at
    COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
    at
    COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
    at weblogic.security.RSA.performOPJSafe(RSA.java:178)
    at weblogic.security.RSA.performOp(RSA.java:104)
    at weblogic.security.RSApkcs1.decrypt(RSApkcs1.java:153)
    at weblogic.security.RSAMDSignature.verify(RSAMDSignature.java:87)
    at weblogic.security.X509.verifySignature(X509.java:223)
    at weblogic.security.X509.verify(X509.java:152)
    at weblogic.security.SSL.SSLCertificate.verify(SSLCertificate.java:128)
    at weblogic.security.SSL.SSLCertificate.input(SSLCertificate.java:107)
    at weblogic.security.SSL.Handshake.input(Handshake.java:109)
    at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:928)
    at weblogic.security.SSL.SSLSocket.clientInit(SSLSocket.java:343)
    at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:217)
    at weblogic.security.SSL.SSLSocket.<init>(SSLSocket.java:170)
    at weblogic.socket.JVMSocketT3S.newSocket(JVMSocketT3S.java:29)
    at weblogic.socket.JVMSocketT3.newSocketWithRetry(JVMSocketT3.java:275)
    at weblogic.socket.JVMSocketT3.connect(JVMSocketT3.java:59)
    at weblogic.socket.JVMAbbrevSocket.connect(JVMAbbrevSocket.java:160)
    at weblogic.socket.JVMSocketManager.create(JVMSocketManager.java:294)
    at
    weblogic.rjvm.ConnectionManager.findOrCreateSocket(ConnectionManager.java:91
    8)
    at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:339)
    at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:306)
    at
    weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:248)
    at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:219)
    at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:186)
    at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:155)
    at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:200)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
    textFactoryDelegate.java:195)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
    textFactoryDelegate.java:148)
    at
    weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
    ory.java:123)
    atjavax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
    at javax.naming.InitialContext.init(InitialContext.java:222)
    at javax.naming.InitialContext.<init>(InitialContext.java:198)
    at
    com.cbmx.test.ClientTreeModel.getInitialContext(ClientTreeModel.java:169)
    at com.cbmx.test.ClientTreeModel.<init>(ClientTreeModel.java:36)
    at com.cbmx.test.Frame1.<init>(Frame1.java:13)
    at com.cbmx.test.Application1.<init>(Application1.java:11)
    at com.cbmx.test.Application1.main(Application1.java:42)

  • JNI Unsatisfied Link Error

    Hello All:
    I have some java code that calls a C function in a dll. I have succesfully used the javah utility to generate the header file for my jni native implementation code and have build both the client java code as well as the dll using g++3.0 using Bloodshed Dev C++ (an open source IDE). When I go to execute the java code I get an unsatisfied link error saying my function is not recognized by the jvm. Does anyone have any suggestions on this issue?? I am using Win2k and jdk 1.4.1
    Here is what I've already tried:
    1) Have added the directory where the java class file as well as the dll to my PATH variable, I have even put the dll files in the jdk bin directory
    2) My dll loads three other dll's and calls a function in one of those dll's, I am using the loadLibrary function to load these dll's and am using function pointers to reference the actual function in the dll
    I was wondering if its a problem if I use g++ to build my dll, does the virtual machine assume by default that gcc is used, please let me know.
    Any help is much appreciated
    Thanks

    I've looked through the various postings on this issue and have tried some or all of the suggestions that were made relevant to my problem but I still keep getting this error. As a result I am attaching some code here:
    Listed below is my java code
    public class DecoderAdapter
    //instance vars
    private static DecoderAdapter decoderAdapObj;
    private String serNum="43543534654";
    private Hashtable decodeInfo;
    private final int DEC_SNTYPE_UNKNOWN=0;
    private final int DEC_SNTYPE_ADOBE_1A=10;
    private final int DEC_SNTYPE_ADOBE_1B=20;
    private final int DEC_SNTYPE_ADOBE_2A=30;
    private final int DEC_SNTYPE_ADOBE_2B=40;
    private int serNumType;
    static
         System.loadLibrary("javaWrapperProj");
    public DecoderAdapter() throws UnsatisfiedLinkError
    /** accessor for decodeInfo
    public Hashtable getDecodeInfoHash()
         return decodeInfo;
    /** mutator for decodeInfo
    public void setDecodeInfoHash()
         initializeHash();
    /** accessor for serial number type
    public int getSerNumType()
         return serNumType;
    /** mutator for serial number type
    public void setSerNumType(int serNumberType)
         serNumType = serNumberType;
    /** accessor for serial number
    public String getSerNum()
         return serNum;
    /** mutator for serial number type
    public void setSerNum(String serNumber)
         serNum = serNumber;
    public static void main(String[] args)
    //local vars
         try
    decoderAdapObj = new DecoderAdapter();
    int snType=decoderAdapObj.DEC_SNTYPE_UNKNOWN;
    String serialNum=decoderAdapObj.getSerNum();
    decoderAdapObj.setDecodeInfoHash();
    Hashtable myHash = decoderAdapObj.getDecodeInfoHash();     
         decoderAdapObj.setSerNumType(decoderAdapObj.DEC_SNTYPE_UNKNOWN);
         int responseCode=decodeSerNum(snType,serialNum,myHash);
         System.out.println("The response from decoding the serial number is "+responseCode);
         System.out.println("About to call the hashtable retrieval function");
         System.out.println("The media code returned="+decoderAdapObj.decodeInfo.get("mediaCode"));
         //getHashResults();
         catch (UnsatisfiedLinkError un)
         System.out.println("Caught an unsatisfied link exception with the message="+un.getMessage());
         System.out.println("The stack trace of this error is="+un.getStackTrace());
    /** This method is used
         to fill up the contents
         of the hashtable
    public void initializeHash()
         decodeInfo = new Hashtable();
         decodeInfo.put("errorCode",new Integer(0));
         decodeInfo.put("mediaCode",new String("temp"));
    //declaration of native method
    private static native int decodeSerNum(int snType,
    String serialNumberStr,
    Hashtable decodeInfoHash);
    The following is what gets generated by the javah utility:
    /* Header for class DecoderAdapter */
    #ifndef IncludedDecoderAdapter
    #define IncludedDecoderAdapter
    #ifdef __cplusplus
    extern "C" {
    #endif
    /* Inaccessible static: decoderAdapObj */
    * Class: DecoderAdapter
    * Method: decodeSerNum
    * Signature: (ILjava/lang/String;Ljava/util/Hashtable;)I
    JNIEXPORT jint JNICALL Java_DecoderAdapter_decodeSerNum
    (JNIEnv *, jobject, jint, jstring, jobject);
    #ifdef __cplusplus
    #endif
    #endif
    And finally the following is my C implementation file:
    Date: 07/11/02 11:56
    Copyright:
    #include <jni.h>
    #include "Decoder.h"
    #include "DecoderAdapter.h"
    #include <iostream.h>
    #include <stdio.h>
    #include <windows.h>
    #include <conio.h>
    typedef int (WINAPI*cfunc)(int,char *,DecodeInfo *);
    JNIEXPORT jint JNICALL Java_DecoderAdapter_decodeSerNum
    (JNIEnv * env, jclass currentObj, jint serialNumberType, jstring serialNumber, jobject decodeInfoHash)
    HINSTANCE hLib=LoadLibrary("WCDSNDecoder.DLL");
    //HINSTANCE hLib1=LoadLibrary("Kernel32.DLL");
    //HINSTANCE hLib2=LoadLibrary("msvcrt.DLL");
    if(hLib==NULL) {
    cout << "Unable to load library!" << endl;
    getch();
    return 0;
    //load the dll at run time
    cfunc decodeSerialNumberPtr=(cfunc)GetProcAddress((HMODULE)hLib, "decodeSerialNumber");
    DecodeInfo result;
    //call decode serial number here
    //and pass in the serial number type
    //the serial number and the empty
    //struct containing the serial number info
    char * actualSerialNumber = const_cast<char *> (env->GetStringUTFChars(serialNumber,0));
    int serType = serialNumberType;
    int finalResult=decodeSerialNumberPtr(serType,actualSerialNumber,&result);
    //set the results from the Decode Info struct
    //int decodeSerialNumber(int serialNumberType,
    // char *serialNumberFrmtd,
    // DecodeInfo *serialNumInformation);
    //first return the Java class object that is the type of the
    //java object
    jclass decoder_class = env->GetObjectClass(currentObj);
    jclass decoder_hash_class = env->GetObjectClass(decodeInfoHash);
    //call the put method from the native code
    //on the hashtable object and pass it the necessary
    //arguements
    jmethodID putMethod = env->GetMethodID(decoder_hash_class,"put","(S,O)V");
    jstring key = env->NewStringUTF("mediaCode");
    jstring value = env->NewStringUTF(result.mediaCode);
    //now do the actual call to the method
    env->CallVoidMethod(decodeInfoHash,putMethod,key,value);
    //release memory here
    FreeLibrary((HMODULE)hLib);
    env->ReleaseStringUTFChars(serialNumber,actualSerialNumber);
    return finalResult;
    The exact error is shown below:
    Caught an unsatisfied link exception with the message=decodeSerNum
    My path variable's contents is shown below:
    PATH=C:\XEmacs\XEmacs-21.4.8\i586-pc-win32;C:\oracle\ora81\bin;C:\oracle\ora81\Apache\Perl\5.00503\bin\mswin32-x86;C:\Program Files\Oracle\jre\1.1.7\bin;C:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Perforce;C:\JRE\1.1\bin;c:\webObjectsCode\dev\LocalDeveloper\Executables;C:\djdev\bin;C:\emacs-20.7\bin;C:\jakarta-ant-1.4.1\bin;C:\J2SDK1~1.1\bin;C:\Apple\Library\Executables;C:\Apple\bin;C:\Apple\Library\JDK\bin;C:\j2sdk1.4.1\include;C:\j2sdk1.4.1\include\winnt;C:\webObjectsCode\devWO5\sn_decoder\javaWrapperWork;C:\Program Files\Common Files\Microsoft Shared\VSA\7.0\VsaEnv
    Please note that I am successfully able to build a dll file.
    Any help would be appreciated...

  • Jni - unsatisfied link errors in packages

    I am trying to run a test Java program that uses JNI in Win2k. I only have two classes, so I am experimenting with putting them in a package. When I do that I get unsatisfied link errors at runtime that I don't get when they are not in a package.
    I don't get exceptions on the loadLibrary call, for some reason, only when I make a call to the native code.
    Any ideas??? Speculations? Do I need to set some sort of path env variable, other than "path" to find the library (like Unix)? I'm new at this windows stuff.
    Thanks in advance ...
    Maggie

    I got it! I needed to put the package name in front of the class name in the C file.

  • JNI Unsatisfied Link Error at Runtime on Native method

    I wnat USe C functionality In My Java Program so that I Use JNI.In My Java Program i use dll file of c program using System.load("");.when iam compiling my Java Program it works Fine But When Iam Run My Java Program It Displays Unsatisfied Lik Error on Native method oh C Program.

    RAGHUKUMAR_KOLIKINENI wrote:
    I wnat USe C functionality In My Java Program so that I Use JNI.In My Java Program i use dll file of c program using System.load("");.when iam compiling my Java Program it works Fine But When Iam Run My Java Program It Displays Unsatisfied Lik Error on Native method oh C Program.As noted that requires a resolvable path - either it must be absolute or relative to the current working directory.
    However if you failed to load the library then you cannot get the error that you posted unless you are ignoring the exception from the load() call. And doing that is a bad idea.
    At least if the library is not loading.
    If it is loading then the method that you use to load it has nothing to do with your problem.

  • How do I fix a "Unsatisfied link error"?

    ProQuest provides a Java application for auto parts. It did function on my system [10.3.9 with all updates]. After logging in on a web site, a "jnlp" file is loaded to the desktop. Double clicking this file causes another download to load the auto parts database.
    But now a, JAVA error Exception reads:
    java.lang.Unsatisfied Link Error: no hpwin32 in java.library.path
    However a similar file "hpwin32.dll" is in: user/Library/caches/JavaWeb Start/cache/http/Depe.startekinfo.com /... /RN client-native.jar/hpwin32.dll
    I deleted the "Depe.startekinfo.com " folder, but it reappeared after logging into their site.
    Security is set to accept all cookies and using Safari and Firefox produces same result.
    Suggestions are appreciated.
    Bob
    Quicksilver G4 w 2 HDs, LaCie 22   Mac OS X (10.3.9)  

    The default VISA timeout is 2 seconds, so your program is missing a byte and timing out.  You might want to log your serial port traffic to see the actual data coming through.  Portmon is a fantastic tool for debugging serial applications: http://technet.microsoft.com/en-us/sysinternals/bb896644.aspx
    Regards,
    Jeremy_B
    Applications Engineer
    National Instruments

  • Unsatisfied Link Error when using Oracle OCI (Type II) driver

    Using Oracle OCI (Type II) driver on HPUX with Oracle 9.2.0.4.
    If when creating a connection pool via the console, using the Oracle OCI (Type
    II) driver, you get the error "Unsatisfied link error with library libocijdbc9.sl
    or format error" then check that the library included in the SHLIB_PATH is pointing
    at the $ORACLE_HOME/lib32 directory and not just the $ORACL_HOME/lib

    We do not offer a JDBC driver for Linux in version 5.1. In version 6.0,we
    do offer a type 4 driver for Linux.
    In version 5.1, I suggest trying the platform independent type 4 JDBC driver
    available for free from Oracle. It is supported (as is any JDBC driver)
    with WebLogic Server. To download it:
    Go to http://www.oracle.com and select the "Download" option.
    From the resulting page, use the "Select Utility or Driver" dropdown to
    select Oracle JDBC drivers
    From the resulting page, scroll down a little (since SQLJ stuff appears at
    the top).
    Or, to go directly there:
    http://technet.oracle.com/software/tech/java/sqlj_jdbc/software_index.htm
    Thanks,
    Michael
    Michael Girdley, BEA Systems Inc
    Learning WebLogic? Buy the book.
    http://www.learnweblogic.com/
    "Michael W. Warren, Sr." <[email protected]> wrote in message
    news:[email protected]..
    I have installed WebLogic 6.0 on Solaris platform and verified that the
    server comes up
    and that I can connect to it via Netscape. Next step was to verify
    installation of WebLogic
    jDriver for Oracle. When I run the following:
    java utils.dbping ORACLE scott tiger
    I get the following error:
    Starting Loading jDriver/Oracle .....
    Error encountered:
    java.sql.SQLException: System.loadLibrary threw
    java.lang.UnsatisfiedLinkError
    with the message
    '/ldatae/bea/wlserver6.0/lib/solaris/oci816_8/libweblogicoci37.so:
    ld.so.1: /ldatae/bea/jdk130/jre/bin/../bin/sparc/native_threads/java:
    fatal: libgen.so.1: open failed: No such file or directory'.
    at
    weblogic.jdbcbase.oci.Driver.loadLibraryIfNeeded(Driver.java:202)
    at weblogic.jdbcbase.oci.Driver.connect(Driver.java:57)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:146)
    at utils.dbping.main(dbping.java:182)
    Anyone seen this? Help!!!
    Thanks in advance
    Mike Warren, Sr.
    [email protected]

  • Java language unsatisfied link error how to fix

    i get a "java language unsatisfied link error" when trying to get my Weatherlink application to run on my new iMac.  It ran OK on my old one.  Whats up with this?

    Java for OS X 2014-001

  • Jsafe unsatisfied link error calling CyberSource credit card service for Weblogic Server 5.1 on Linux

    Hi,
    I'm running Weblogic Server 5.1 on Linux, when we make CyberSource credit card request, the server console shows errors: jsafe unsatisfied link: jsafe not found in java.library.path .....
    However, when we run Weblogic Server 5.1 on Window 2000, it does not show any errors and goes well with CyberSource credit card services.
    Anybody can help me?
    Thanks!
    Jean

    Did you modify your scripts to actually use SP6?
    jean chen wrote:
    >
    I just applied service pack 6 (weblogic510sp6.zip) on my WLS on Red Hat Linux 6.1, it still shows the same error in weblogic server console. I saw newsgroup Install section somebody said it is a RSA bug and BEA is working with them to fix it and right now just ignore the error print stack, is that true?
    Jean
    "Jesus M. Salvo Jr." <[email protected]> wrote:
    Service Packs include filss for all supported platforms, including
    Linux. I am using them here.
    John
    jean chen wrote:
    Jesus,
    I'm running Weblogic on Linux, is there any SP6 for this platform at all?
    Thanks!
    Jean
    "Jesus M. Salvo Jr." <[email protected]> wrote:
    That error about "no jsafe" occurs if you have not applied any service
    pack at all ( as you have said ). Get the latest SP ( SP6 ) and it
    should go away.
    John
    jean chen wrote:
    I have weblogicaux.jar in my Java CLASSPATH and Weblogic CLASSPATH, but I put it together with my other jar files under another directory instead of lib directory
    Jean
    "Alf" <alf> wrote:
    Do you have /lib/weblogicaux.jar in your classpath? COM.rsa.jsafe is found
    in this file.
    "jean chen" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I'm running Weblogic Server 5.1 on Linux, when we make CyberSource creditcard request, the server console shows errors: jsafe unsatisfied link: jsafe
    not found in java.library.path .....
    However, when we run Weblogic Server 5.1 on Window 2000, it does not showany errors and goes well with CyberSource credit card services.
    Anybody can help me?
    Thanks!
    Jean
    Jesus M. Salvo, Jr.
    Senior Consultant
    PowerServe Pty Ltd
    Level 2, 116 Miller Street
    North Sydney 2060
    New South Wales, Australia
    Ph: (61-2) 9492 4800
    Direct (61-2) 9492 4853
    Fax: (61-2) 9492 4899
    http://www.powerserve.com.au
    Email: [email protected]
    This email is from PowerServe Pty Limited (ACN 069 037 056)
    The information contained in this email (including any attached files)
    may be privileged and confidential intended for the use of the
    person/persons named above. If you are not the intended recipient, you
    are advised that any use, distribution or copying of the information is
    strictly prohibited. If you have received this transmission in error,
    please notify PowerServe Pty Limited immediately on (61 3) 9618 1222 or
    reply by email to the sender.
    PowerServe Pty Limited does not represent or warrant that this email or
    any attached files are free from computer viruses or other defects. Any
    attached files are provided, and may only be used, on the basis that the
    user assumes all responsibility for

  • JNI Unsatified Link Error

    Hello All:
    I have some java code that calls a C function in a dll. I have succesfully used the javah utility to generate the header file for my jni native implementation code and have build both the client java code as well as the dll using g++3.0 using Bloodshed Dev C++ (an open source IDE). When I go to execute the java code I get an unsatisfied link error saying my function is not recognized by the jvm. Does anyone have any suggestions on this issue?? I am using Win2k and jdk 1.4.1
    Here is what I've already tried:
    1) Have added the directory where the java class file as well as the dll to my PATH variable
    2) My dll loads three other dll's and calls a function in one of those dll's, I am using the loadLibrary function to load these dll's and am using function pointers to reference the actual function in the dll
    Any help is much appreciated
    Thanks

    When I go to execute the java code I get an unsatisfied link error
    saying my function is not recognized by the jvm.Presumably this means that you loaded the dlls successfully.
    Which means that the shared lib path, at least for those dlls, does not matter. The path only matters when the dll fails to load.
    So you are getting this when the native method is actually called.
    The reason is because the signatures do no match. Java is calling a JNI method and that exact method is not in the dlls that you have loaded.
    Possible reasons:
    -You didn't use javah correctly (has to do with packages.)
    -You added a package and didn't rerun javah to get the new signature.
    -You changed the package and didn't rerun javah to get the new signature.
    -You manually modified the signature so it no longer matches the one generated by javah.
    -You are using an unusual set of compiler options which causes the compiler to modify the signature.
    -You are loading the wrong dll.

  • Standalone OC4J 9.0.4 - Loading Native Libraries - Unsatisfied Link Error

    Hello,
    I incidentally happen to have a similar problem as has been described in several posts in this forum. The problem is that of loading Native libraries in OC4J.
    The scenario is
    1) Environment is Standalone OC4J 9.0.4, Windows 2000, JDK 1.4.2
    2) A Java wrapper loads DLL1 which internally loads DLL2.
    (To be more specific the DLL1 is a SAPSSOEXT.DLL and the DLL2 is SAPSECU.DLL. These are used for establishing SSO with SAP portal)
    The phase-1 of Java wrapper loading DLL1 is achieved by setting either the PATH or the java.library.path variables.
    The phase-2 of DLL1 loading DLL2 is what is failing with an Unsatisfied Link Error.
    Since I am using a standalone version and not a OC4J app-server, the OPMN related configuration for specified PATH variables will not be relevant here. Is there any other place where I can configure these.
    regards
    Shivaram

    A small correction to my observation above.
    The call to load DLL1 via System.loadLibrary() is successful. However when I attempt to call any method on it it fails with UnsatisfiedLinkError.
    Contrary to what was written above the error occured even before DLL1 attempted to load DLL2.
    So why is it that the call to loadLibrary is successful but the call to actual function is failing? (This works flawlessly on the command line)
    Is this a path problem, if so how do I configure it in OC4J standalone. Variables PATH, java.library.path, LD_LIBRARY_PATH none of them seem to have any effect on this.
    I tried debugging using a windows file monitor. The library DLL1 is being read from the correct path and is being opened successfully.
    Any suggestions will be greatly appreciated.

  • Unsatisfied link when callind dll from run method Help Please?

    Hi,
    I get an unsatisfied link error while trying to calling a dll at a certain time period in a run method. The same dll works fine called in another setup and even called in a loop.
    Can anyone help please?
    import java.util.Timer;
    import java.util.TimerTask;
    * Schedule a task that executes once every second.
    public class TimeRetrieve {
        Timer timer;
        public TimeRetrieve() {
                 timer = new Timer();
            timer.schedule(new RemindTask(),
                        0,        //initial delay
                        1*1000);  //subsequent rate
        class RemindTask extends TimerTask
           String string_A;
           double d1;
         double d2;
         double d3;
         double d4;
         double d5;
         double d6;
         double d7;
         double d8;
         int numIter = 3;
         int start = 1;
            public void run()
                  if (numIter > 0) {
                  cinterface(start, string_A, d1, d2, d3, d4, d5, d6, d7, d8 );
              System.out.println("In Java action performed start button, after call to dll  \n");
              System.out.println("   string_A =  :" +string_A );
              System.out.println("doubles , \t  d1  \t d2  \t  d3  \t d4 \t d5 \t d6 \t d7 \t d8");
              System.out.println(d1 +"\t" +d2+"\t"+d3+"\t"+d4+"\t"+d5+"\t"+d6+"\t"+d7+"\t"+d8);
              numIter--;
                 } else
                 System.out.println("End Looping!");
                    System.exit
                 System.exit(0);  
        public static void main(String args[]) {
                   System.out.println("Starting Data Retrieval.");
                 new TimeRetrieve();
    // Load shared library which contains implementation of native methods
                    public native void cinterface(int start, String string_A, double d1, double d2, double d3, double d4,
                    double d5, double d6, double d7, double d8 );
                    static
                          try
                               System.out.println ("load cinterface"); //unsatisfied link
                               System.loadLibrary("cinterface");
                          catch (UnsatisfiedLinkError ee)
                               System.out.println
                                    ("Caught unsatisfied link error for dlls" );
                               System.out.println
                                    ("get local msg = " + ee.getLocalizedMessage() );
                               System.out.println ("getMessage " + ee.getMessage() );
                                   // System.out.println ("print Stack Trace " +ee.printStackTrace() );

    My mistake! I found it. Had some wrong names.

  • Unsatisfied link error in mac osx 10.2.3

    Hi,
    unsatisfied link error in mac osx 10.2.3
    can you solve the problem why the error is occuring when i am trying to set port for printer .after seting port in the application then the swiping takes place. as the application is running but unable to communicate to wireless printer through bluetooth. as everything is fine (files like cu.dev and tty.dev are created in mac and i selected that file and saved it.swiping is not done through wireless ). the error i got is
    ERROR LOADING linuxSerialParallel:java.lang.unsatisfiedLinkError: no linux serialparallel in java library.path
    java.lang.unsatisfiedlinkerror:is session active
    please respond immediately regarding this issue
    thanking you,
    babu

    Your problem is definitely not related to 'Community Feedback and Suggestions'. And I cannot see any relationship to Oracle (at least according to the given informations).
    Werner

  • Unsatisfied Linker error:J3D

    hello
    I am having problem with my j3d. I have installed it properly but for some functions there is an exception.
    i.e Unsatisfied linker error
    on a function setTransform it gives error and also says that java.lang.loader cannot load that class. Kindly Help me.

    Hi ,
    You may need to link with libCrun.so.1 to get these symbols resolved.
    % nm libCrun.so.1 | grep rethrow
    [214] | 20324| 60|FUNC |GLOB |0 |12 |__1cG__CrunKex_rethrow6F_v_
    [216] | 20696| 276|FUNC |GLOB |0 |12 |__1cG__CrunMex_rethrow_q6F_v_
    Add this to the link line -lCrun and you should be good to go.
    HTH
    Gopinath.
    Sun Developer Technical Support.
    http://www.sun.com/developers/support/

  • About jsafe and unsatisfy Link Error?

    After I install weblogic5.1 on hp-unix11.0,I can start it,but I found a problem
    with the process of the start:some exception report:jsafe...,and unsatisfied Link
    Error?I wonder what's the matter?
    Any answer will be appreciate!thanks

    Make sure that you have the latest service pack. You can safely ignore this
    message.
    Michael Girdley
    BEA Systems
    Learning WebLogic? http://learnweblogic.com
    "matileean" <[email protected]> wrote in message
    news:3ad27036$[email protected]..
    >
    After I install weblogic5.1 on hp-unix11.0,I can start it,but I found aproblem
    with the process of the start:some exception report:jsafe...,andunsatisfied Link
    Error?I wonder what's the matter?
    Any answer will be appreciate!thanks

Maybe you are looking for

  • How can i send an auto reply with form content to sender?

    Hai! I'm new to website building, but i already came a long way i made a form and i like to send a auto reply with the form content (if that isnt too difficult) to the person who filled it in. The form i made is in PHP (coding i copied partly from so

  • Is there any way to find out where a standard text is used?

    Is there any way to find out where a standard text is used? We can see the text from SO10, but i want to find out where it is used.

  • 2lis_11_vahdr

    Hi, We have enhanced 2lis_11_vahdr to get payment method from VBKD table. When we change particular sales order and save the delta record is not being captured in LBWQ or RSA7. but if i fill the setup table for this sales order i can see the data. We

  • Color pallete in Director MX 2004

    hi! i wanted to show a color pallete when i click a buttom.also when i select a color i should get the RGB as well as HEX color code of the selected color.is it possibkle in director.Please let me know if anybody is having a code snippet for the same

  • Activation Photoshop CS3

    I want to activate Photoshop CS3 on a new Win7-PC. Therefore I have to deactivate the old installation on the Win XP PC. To deactivate you have to click in the menu help – deactivate. Unfortunately there is no such menu item. What can I do, to activa