Unsatisfied Link Error caused by attempting to load DLL twice

Hi,
Hopefully someone can help me out with this issue.
My current situation is that I have an application which loads a Delphi based DLL when it loads. This application is in turn loaded from a seperate Java Application using reflection. The first time the application is opened it loads the DLL and works fine, however if I close the application and then re-open it i.e. create a new instance of the application, it crashes with
java.lang.UnsatisfiedLinkError: Native Library <filepath>\DataReader.dll already loaded in another classloader
I'm really not sure how to resolve this, I understand DLL's remain loaded until the VM terminates, but if I close the application and re-open it then I can't access the loaded version, or even test if it has been loaded. If anyone has any ideas about possible solutions, or where I should start looking for them I would apreciate it.
Many thanks

Ah, okay, this is probabbly me not being very clear, sorry. By application I was refering to a contained collection of Java Classes rather than an Application in the sense of a new OS Level Process. And I understand that when the Java VM Process ends the OS will unload the DLL's. Maybe my question should more be, how do I test if a particular instance of a DLL is already loaded?
Will try and explain a little bit better what the process is, in an attempt to figure out a solution. This all takes place within a single Java VM:
I have a Java "Application", lets call it A running on my system. The User clicks on a button in this application to load another "Application" (B).
A creates an instance of B using reflection, when an instance of B is created it loads a DLL into memory. This currently works fine.
The user then closes the instance of B.
The user then clicks the button in A again, A then creates a new instance of B using reflection. This new instance of B attempts to load the DLL into memory again.
This is the point where the crash occurs, with the "already loaded" error.
So, what I'm hoping someone could assist me with is how to determine if a DLL has already been loaded into memory. So far I've tried both setting a static flag when the DLL is loaded (the loading of the dll takes place inside a static constructor as recommended), and also tried
if (System.getProperty("MYDLL") == null)
               System.loadLibrary("MYDLL");
          }neither of which have proved effective. If anyone has any thoughts on what else I could try that would be appreciated.
Many thanks

Similar Messages

  • 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.

  • 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 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 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]

  • 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...

  • 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/

  • After update, Itunes can't load. I get error message R6034, attempt to load the C runtime library incorrectly. I have repeatedly removed and reinstalled Itunes and still have the same problem!!!

    After update, Itunes can't load. I get error message R6034, attempt to load the C runtime library incorrectly.
    I also get error code 7 (Windows error 1114), saying itunes wasn't installed correctly. It appears that I am not the only one with this issue. what is wrong with the latest update?? I tried removing Itunes and all of its components and installing it again, but get same errors and i have also tried doing a system restore with the same results

    Doublechecking. Have you also tried the following user tip?
    Troubleshooting issues with iTunes for Windows updates

  • Itunes can't load. I get error message R6034, attempt to load the C runtime library incorrectly

    After update, Itunes can't load. I get error message R6034, attempt to load the C runtime library incorrectly.
    I also get error code 7 (Windows error 1114), saying itunes wasn't installed correctly.
    Tried removing Itunes and installing again, but get same errors

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • 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

  • "Error code 0xc000035a Attempting to load a 64-bit application, however this cpu is not compatible with 64-bit mode"  when I load Windows 7 [64bit] on an older iMac(with Parallels 6)? Any solutions that don't mean buying a new iMac?

    "Error code 0xc000035a Attempting to load a 64-bit application, however this cpu is not compatible with 64-bit mode" 
    when I load Windows 7 [64bit] on an older iMac(with Parallels 6)? Any solutions that don't mean buying a new iMac?

    You should probably post your question on the Parallels forums:  http://forums.parallels.com

  • 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.

  • Error Code: -17601 "Attempted to load a module for a step whose module has not yet been specified"

    I am trying to run my first Test Stand sequence, and am getting the following Error: "Error Code: -17601, Attempted to load a module for a step whose module has not yet been specified".
    I have specified the correct module under the Test Stand "Action" properties, and am pointing to the right vi. I am not sure why it is giving me this error.

    Hi Shoab,
    So when you right click on your step and select Specify Module.... The Edit LabVIEW VI dialog will appear, in the VI Pathname control is your VI and under that control appear the full path to your VI, if it contains "(No File Specified)" then thats your problem. You will need to use the file browse control to find your VI.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • 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

  • 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)

Maybe you are looking for

  • Safari 5.0.3 keeps crashing - help please

    Hi, I have been reading quite a few threads on here about safari crashing. It seems to be for various reasons, but I can't figure out why mine is crashing. Here is my latest crash report. Hopefully someone can help me please? I use this macbook to ru

  • Error during cache refresh

    Hi guys, In my scenario XI to R3 via ABAP Proxy. In cache R/3 side shows me two red triangles: unable to refresh content and an error during last update. The error id BUSINESS_SYSTEM and the message is: NO INTEGRATION SERVER. Yesterday admin team cha

  • Is there any standard report which give all information about purchase orde

    hi is there any standard report which give all information about purchase order. i need following information from Purchase Order. Vendor No, vendorname, PO No, basic , Excise , insurance , Frieght. thanks .

  • IDOC_ADAPTER - ATTRIBUTE_INV_SND_SERV

    I´ve read all the thread regarding this problem, but I still can't solve it. My interface is synchronic from an Idoc. it goes through a BPM and then reaches a WebService The messagge arrives perfectly but the ACK has the following error: IDOC_ADAPTER

  • Ibooks search very slow

    since i upgrade my ipod touch 5gen to ios 8.02 my ibooks search become very slow, it took couple seconds to type one letter does anyone have the same problem?