PKCS#11 driver dll and Java

Hello!
I'm trying to use a smartcard to do some signing and this needs to be done using Java. I have read about the SUN PKCS#11 provider and thought that this would work. However as it turns out my card vendor refuses to provide me with a pkcs#11 .dll and without a dll the sun provider won't work. I have although recieved a .lib and a couple of .h files for this specific PKCS#11 implementation. The vendor also has provided me with a windows service to communicate with the card, I have tested this application and it works fine however I need to do this communication with Java, if it is not possible maybe I will have to resort to JNI?
What I'm courios about is if there is some generic .dll for PKCS#11 operations? The card is a Java Card which has applets conforming to standards. Would it for instance be possible to use a completly different vendors .dll for the operations that I would like to perform.
I really really need an answer.
P.S switching card vendor is not an option D.S
Kind regards
Henrik Grankvist

Hi ejp, thank you for answering.
The problem for me could be a little more easier: I mean, actually my card provider ships the dll, but I would like to cover as many kinds of cards as I can with the application on which I'm working.
I may use several ways to download the specific dll to the user's PC, but still I should know if I can redistribute this dlls. Is there a way to know which drivers I can redistribute without having licensing problems? Do you know any sort of drivers database on which I could look for?
Thank you everybody,
regards.

Similar Messages

  • Calling DLLs in JAVA

    Hi,
    I need to create a utility for a component in a 3rd party tool. I am planning to create this utility in JAVA. But the problem is that the 3rd party tool uses DLLs which is created in VB 6.0 (Its seems so).
    I came across the key word "NATIVE" in JDK. But the examples related to this is all given for C/C++. I am not sure whether following the same procedure we will be able to access any VB dlls.
    Please help me out. I am aware that there are ceratin APIs which we can use as a Bridge between Dlls and Java. And If I am right one among such is JACOB. But I am trying to minimize the dependencies of my Java Code to any other Utilities.
    Eagerly waiting for a valuable Advice
    Jiju Jagadish

    Hi,
    It seems you'll need to compile you own DLL wrapper if you do not want to depend on 3rd party library, search for JNI spec here.
    On the other hand generic wrappers save time, if you are not famillar with C/C++.
    Look at that post : http://forum.java.sun.com/thread.jspa?threadID=722211&tstart=0
    --Marc (http://jnative.sf.net)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Safari acts like Flash and Java are not installed, even though they are

    Even though I have the latest versions installed, websites viewed in Safari tell me that I need Flash and/or Java. I have searched the forums and tried every suggestion, with no fix:
    • Uninstall and re-install Flash
    • Re-install Java
    • Delete the Flash player cache (~ > Library > Caches > Adobe > Flash Player)
    • Repair permissions on the hard drive
    Flash and Java were both working fine until the 10.6.5 upgrade. Flash and Java both work in Firefox and Chrome on the same machine. (Everything is the latest version.)
    If anyone has a solution that will actually restore the use of Flash (don't really care about Java), that would be awesome! Thanks in advance for your help!

    Hi,
    Install the 10.6.5 Combo Update.
    Then launch Disk Utility. Applications / Utilities then repair disk permissions.
    Carolyn.

  • How do I use a dll and C++ code to create a labview driver

    I have a dll and some .net code to read temperature from a USB HID device I purchased from the website below. In addition some other people have posted their methods/codes of reading the temperatures. I am trying to convert this into a Labview VI but I am very lost.
    http://www.no-feature.com/2008/01/taking-advantage-of-your-temper-device.html
    It seems I can use the call function to see the functions in the DLL but I cannot use them to actually do anything. I have used serial communcation in labview before but never USB so I feel like I am in a little over my head and would really appreaciate some guidance. 

    This is not quite easy But to find out how try to reverse engineer this code http://pc8-termo.fis.ucm.es/~josechu/mitemper.zip
    Before starting on the job I would recommend doing some testing to see if the code work with your device. I can help if you promise to post the tested code here in this forum. It doable in Labview. It just requires some bit manipulation. Also the unit drive must be installed
    To establish a communication link with the device, the settings can be extracted from function SetupCommPort in MITEMPer.c, which are:
    9600bps, 8 bits, no parity bit and one stop bit with DTR and RTS enabled.
    To initialize the device, the function is init in functions.c. The sequence is:
    Calling the Start_IIC function, which in turn calls the SetDataLine and SetClockLine passing 1 as parameters for both, and then calling those two functions again with 0 as parameters.
    SetDataLine function sets the RTS line if the passed parameter is 1 or clears the RTS if the passed parameter is 0.
    Similarly, the SetClockLine function sets the DTR line if the passed parameter is 1 or clears the DTR line if the passed parameter is 0.
     In other words to to initializes the device, we first have to set the RTS, set the DTR, then clear RTS and clear DTR.
    So to some part that involves a technique that is often referred to as bit banging. There are 3 groups of 8 bits (one byte) that need to be transferred. Which are, first group 10011110, second group 00000001, third group 01100000.
    Then stop the IIC (look in the respective function on what have to be done here).
    Start the IIC again.
    Transfer another 3 groups of 8 bits.
    Stop the IIC.
    The sequence of transferring the group can be obtained from the function Transmit in functions.c:
    The transmission is done through the DTR and RTS line only. Not through the usual TX data line.
    If the data is 1 set the RTS or if the data is 0 clear the RTS.
    Then the tick (clock), set the DTR followed by clearing the DTR.
    Loop to the next data bit for 8 times.
    After 8 bits, set the RTS line and set the DTR line.
    Then read the CTS line for acknowledgement (inverted).
    Closed by clearing the DTR.
    You can follow the C code and find the necessary sequences and data that you need to talk to the device and obtained a reading.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • PKCS support in Java, especially PKCS#7 encoding and decoding

    Hi,
    Is there anybody knowing about PKCS support in JDK2 ?
    I'd like to store a signature encoded in PKCS#7 format and read it back and decrypt it.
    As far as I understood there is no such API I can use.
    Thanx in advance
    andras

    hi ,
    my problem that i have signed my file using MD5withRSA algorithm
    i have stored the signature in another file (file signed) and the public key in another file too.
    so a have 3 files: the source file which it was signed, the signature file and the public key file.
    i want to store all this structure in ( only) one file in pkcs#7 format .
    later i wuil verify the signature another time.
    please if you can help me for the storage of the signed file in pkcs7 format ( the java code for storage, if possible)
    thanks

  • Calling multiple DLL from Java and calling same native method

    i have two dll files named DLL_1.dll and DLL_2.dll .
    Both of them contain a native method which has a signature
    JNIEXPORT void JNICALL Java_Database_Notify
    (JNIEnv *, jclass);
    This method is common to both the DLL
    Now i load both of the DLL's using,
    System.loadLibrary("DLL_1");
    System.loadLibrary("DLL_2");
    Both of the DLL are loaded form same Java Application
    But the problem is that , whenever i try to call the Notify Method , it calls the Notify method of DLL_1 only.
    How do i call the Notify Methos of second DLL(i.e DLL_2).
    Is there any reference that i can get to all the DLL files when i load then , so that i can use that reference to invoke the Notify method of that particular DLL.

    i have two dll files named DLL_1.dll and DLL_2.dll .
    Both of them contain a native method which has a
    signature
    JNIEXPORT void JNICALL Java_Database_Notify
    (JNIEnv *, jclass);
    This method is common to both the DLL
    Now i load both of the DLL's using,
    System.loadLibrary("DLL_1");
    System.loadLibrary("DLL_2");
    Both of the DLL are loaded form same Java
    Application
    But the problem is that , whenever i try to call the
    Notify Method , it calls the Notify method of DLL_1
    only.
    How do i call the Notify Methos of second DLL(i.e
    DLL_2).
    Is there any reference that i can get to all the DLL
    files when i load then , so that i can use that
    reference to invoke the Notify method of that
    particular DLL.You need to explain exactly what you are trying to achieve.
    As per the description above it is impossible in java.
    And I didn't say JNI, I said java.
    Your above statement suggests that you think that you can have exactly the same java signature do two different things.
    Note again that I said java not JNI.
    A JNI method is just a tag that represents a java signature. Your description suggests that you are attempting to do it twice.
    There are three possibilities.
    1. Your explanation is incomplete.
    2. You are trying to do something that is impossible in java.
    3. You are trying to solve a problem and your description of your solution is not sufficient to determine what that is (and of course the solution is wrong.)

  • Difference between java.exe and java.dll

    can some one tell me the difference between java.exe under bin directory of jdk and java.dll under bin directory of jre under jdk. and how to determine jre the application is using.How to locate istalled jres in windows registry

    can some one tell me the difference between
    java.exe under bin directory of jdk and
    java.dll under bin directory of jre under jdk.java.dll is the library containing the Java Virtual Machine. java.exe is the
    program you execute to run Java. It uses java.dll. The java.dll can also be used
    to invoke Java classes from other languages using the Java Native Interface (JNI), see
    http://java.sun.com/j2se/1.4.2/docs/guide/jni/index.html for more information.
    Steve Dever

  • How to use Dlls and Header files in my java Code?

    Hi All,
    I want to make use of dll and header files of DataStage, from my Java Interface.
    i am buliding a product where i need to contact DataStage server from my Java Code alone, For this they provided dlls and header files
    Now i wan to make use of them and need to perform DataStage operations from my Java Interface.
    Can any on help out me regarding this?

    Try Java Platform SDK for native function calls without JNI writing code, like it done in .NET languages.
    For MS Windows:
    http://www.simtel.net/product.php[id]100916[SiteID]simtel.net
    For Linux/Unix:
    http://www.simtel.net/product.php[id]117719[SiteID]simtel.net

  • NI 5660 Driver DLL Errors when using Teststand 2010 and LabVIEW Run-Time Engine 2010

    This problem seems similar to the post "Resource not found error in executable on developmen​t machine." but I didn't want to repost under that thread because I only happened upon it by chance and none of my searches brought me there... so I made a more descriptive Subject.
    I am working on a system that uses a PXI Chassis with a NI 5600 Downconverter and a NI 5620 high speed digitizer, among other PXI Cards. 
    I inherited working code written in LabVIEW 2010, running with the LabVIEW Run-Time Engine 2010.  The code was using a custom executive and my task was to rewrite the test using TestStand 2010.  I reused the majority of the old code.  The old code used NI-5660 to control the 5600 and 5620.  When I run my sequence using the LV Development System and TestStand, it runs without any issues.  When I change the adapter over to LabVIEW Run-Time Engine 2010, all of my NI5660 VIs become broken due to DLL issues.  It warns that the nipxi5600u​.dll was not initialized correctly.  Many of the errors are associated with the NI Tuner and NI Scope. After this LabVIEW will crash randomly, and the seqeunce will not work in TestStand even when back with the LV Development Adapter.  The only way to recover after this is to restart the computer - TestStand automatically reverts back to the development system, the VIs are no longer broken and the sequence works again. 
    I have all of my VIs associated with a project. After reading a little bit about DLLs and TestStand, I found all of the DLLs in the dependencies section of my project and added them to my TestStand workspace.  I also used Dependency Walker to track down the problems with the nipxi5600u​.dll, the 2 DLL files that it said were not found already existed in the same folder as the original DLL (C:\Windows\System32).  I have also performed a Mass Compile to make sure everything was running in LV 2010.  If I skip the steps involving the 5660, my entire sequence runs fine. 
    The previous code was running with the LabVIEW Run-Time Engine without any issues.  Is there just a step I am missing?  Has anyone seen anything like this before?  I can send screenshots of errors to provide more detail if necessary. 

    I have tried some more things and still can't get it to work.  I have added the VIs mentioned in the Notes On Creating Modulation Executables KB both to the TestStand workspace and the LabVIEW project holding all of my VIs.  This did not change the results. 
    When I try to run my sequence, The first error I get is shown in Error 1445.bmp.  This happens when I try to use the NI 5660 initialize.vi.  If I click ignore, the next error I see is shown in Error -20551.bmp.  When I try to open the VI to look at it, I get the 2 DLL errors shown in Error loading nipxi5600u.bmp and Error loading nidaq32.bmp.  When I close TestStand, I get the error LabVIEW Fatal Error.bmp. 
    Attachments:
    Error1445.JPG ‏164 KB
    Error -20551.JPG ‏174 KB
    Error loading nipxi5600u.JPG ‏9 KB

  • Oracle 10.2.0 and Java

    Hi All,
    I am experiencing a problem when executing stored procedures using oracle client 10.2.0 and retrieving a result set or return parameter. The previous version of the Oracle client does not create this problem.
    NOTE: I DO NOT RECEIVE THIS PROBLEM ON 10.2.0 WHEN THE STORED PROCEDURE CONTAINS AN INSERT OR UPDATE, ONLY WHEN DOING SELECTS.
    The Stored procedure is:
    PROCEDURE GET_TRAY_INFO(PRM_IN_TRAYNAME IN VARCHAR2,PRM_IN_PROGRAM IN NUMBER,OUT_GET_TRAY_INFO_CURSOR OUT GET_TRAY_INFO_CURSOR)
    AS
    BEGIN
    IF PRM_IN_PROGRAM=1 THEN
    IF LEN(PRM_IN_TRAYNAME)>1 OR PRM_IN_TRAYNAME IS NOT NULL THEN
    OPEN OUT_GET_TRAY_INFO_CURSOR FOR
    SELECT * FROM UHC_FSA_FAX_PROGRAMS.TRAY WHERE TRAYNAME=PRM_IN_TRAYNAME;
    ELSE
    OPEN OUT_GET_TRAY_INFO_CURSOR FOR
    SELECT * FROM UHC_FSA_FAX_PROGRAMS.TRAY;
    END IF;
    ELSIF PRM_IN_PROGRAM=2 THEN
    IF LEN(PRM_IN_TRAYNAME)>1 OR PRM_IN_TRAYNAME IS NOT NULL THEN
    OPEN OUT_GET_TRAY_INFO_CURSOR FOR
    SELECT * FROM UHC_FSA_FAX_PROGRAMS.TRAY WHERE
    BATCHNAME=PRM_IN_TRAYNAME;
    ELSE
    OPEN OUT_GET_TRAY_INFO_CURSOR FOR
    SELECT * FROM UHC_FSA_FAX_PROGRAMS.TRAY;
    END IF;
    END IF;
    END GET_TRAY_INFO;
    The callable statement to be exeuted in java is:
    statement = connection.prepareCall("{call " + schema + "." + packages + ".GET_TRAY_INFO( ?, ?, ?, ? ) }");
                   statement.setString(1, strTrayName );
                   statement.setInt(2, 1);
                   statement.registerOutParameter(3, java.sql.Types.INTEGER);
                   statement.registerOutParameter(4, java.sql.Types.OTHER);
                   resultSet_CopyProcess = statement.executeQuery();
    When the prepared statement is being executed I receive the following error:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x61017D43
    Function=kzakp2fcred+0x1A9DF
    Library=D:\oracle\product\10.2.0\client_1\bin\oracommon10.dll
    Current Java thread:
         at sun.jdbc.odbc.JdbcOdbc.execute(Native Method)
         at sun.jdbc.odbc.JdbcOdbc.SQLExecute(JdbcOdbc.java:3133)
         at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(JdbcOdbcPreparedStatement.java:214)
         - locked <0x100836f0> (a sun.jdbc.odbc.JdbcOdbcCallableStatement)
         at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeQuery(JdbcOdbcPreparedStatement.java:89)
         at DBFunctionality.CopyProcess_checkDCN_SelectDCNKey(DBFunctionality.java:395)
         at CopyProcess.checkDCN(CopyProcess.java:549)
         at CopyProcess.process(CopyProcess.java:129)
         at SingleThread.run(SingleThread.java:80)
    Dynamic libraries:
    0x00400000 - 0x0040B000      C:\WINNT\system32\java.exe
    0x77F80000 - 0x77FFC000      C:\WINNT\system32\ntdll.dll
    0x7C2D0000 - 0x7C335000      C:\WINNT\system32\ADVAPI32.dll
    0x7C570000 - 0x7C623000      C:\WINNT\system32\KERNEL32.dll
    0x77D30000 - 0x77D9F000      C:\WINNT\system32\RPCRT4.dll
    0x78000000 - 0x78045000      C:\WINNT\system32\MSVCRT.dll
    0x08000000 - 0x08138000      C:\Borland\JBuilder2005\jdk1.4\jre\bin\client\jvm.dll
    0x77E10000 - 0x77E79000      C:\WINNT\system32\USER32.dll
    0x77F40000 - 0x77F7C000      C:\WINNT\system32\GDI32.dll
    0x77570000 - 0x775A0000      C:\WINNT\system32\WINMM.dll
    0x10000000 - 0x10007000      C:\Borland\JBuilder2005\jdk1.4\jre\bin\hpi.dll
    0x007C0000 - 0x007CE000      C:\Borland\JBuilder2005\jdk1.4\jre\bin\verify.dll
    0x007D0000 - 0x007E9000      C:\Borland\JBuilder2005\jdk1.4\jre\bin\java.dll
    0x007F0000 - 0x007FD000      C:\Borland\JBuilder2005\jdk1.4\jre\bin\zip.dll
    0x18270000 - 0x1837F000      C:\Borland\JBuilder2005\jdk1.4\jre\bin\awt.dll
    0x77800000 - 0x7781E000      C:\WINNT\system32\WINSPOOL.DRV
    0x76620000 - 0x76631000      C:\WINNT\system32\MPR.DLL
    0x75E60000 - 0x75E7A000      C:\WINNT\system32\IMM32.dll
    0x7CE20000 - 0x7CF0F000      C:\WINNT\system32\ole32.dll
    0x18380000 - 0x183D0000      C:\Borland\JBuilder2005\jdk1.4\jre\bin\fontmanager.dll
    0x72800000 - 0x72846000      C:\WINNT\system32\ddraw.dll
    0x728A0000 - 0x728A6000      C:\WINNT\system32\DCIMAN32.dll
    0x72CF0000 - 0x72D84000      C:\WINNT\system32\D3DIM700.DLL
    0x28680000 - 0x28689000      C:\WINNT\system32\PGPhk.dll
    0x60000000 - 0x6004C000      C:\WINNT\system32\MSCTF.dll
    0x779B0000 - 0x77A4B000      C:\WINNT\system32\OLEAUT32.DLL
    0x28D80000 - 0x28DA2000      C:\Borland\JBuilder2005\jdk1.4\jre\bin\dcpr.dll
    0x28E00000 - 0x28E0C000      C:\Borland\JBuilder2005\jdk1.4\jre\bin\JdbcOdbc.dll
    0x28E10000 - 0x28E4A000      C:\WINNT\system32\ODBC32.dll
    0x71710000 - 0x71794000      C:\WINNT\system32\COMCTL32.dll
    0x7CF30000 - 0x7D176000      C:\WINNT\system32\SHELL32.dll
    0x70A70000 - 0x70AD6000      C:\WINNT\system32\SHLWAPI.dll
    0x76B30000 - 0x76B6E000      C:\WINNT\system32\comdlg32.dll
    0x28F50000 - 0x28F67000      C:\WINNT\system32\odbcint.dll
    0x28F70000 - 0x28FED000      D:\oracle\product\10.2.0\client_1\BIN\SQORA32.DLL
    0x7C340000 - 0x7C396000      D:\oracle\product\10.2.0\client_1\BIN\MSVCR71.dll
    0x28FF0000 - 0x29047000      D:\oracle\product\10.2.0\client_1\BIN\OCI.dll
    0x61C20000 - 0x61E72000      D:\oracle\product\10.2.0\client_1\bin\OraClient10.Dll
    0x60870000 - 0x60953000      D:\oracle\product\10.2.0\client_1\bin\oracore10.dll
    0x60A80000 - 0x60B44000      D:\oracle\product\10.2.0\client_1\bin\oranls10.dll
    0x63690000 - 0x636A8000      D:\oracle\product\10.2.0\client_1\bin\oraunls10.dll
    0x60EB0000 - 0x60EB7000      D:\oracle\product\10.2.0\client_1\bin\orauts.dll
    0x75030000 - 0x75044000      C:\WINNT\system32\WS2_32.dll
    0x75020000 - 0x75028000      C:\WINNT\system32\WS2HELP.DLL
    0x636B0000 - 0x636B6000      D:\oracle\product\10.2.0\client_1\bin\oravsn10.dll
    0x60FA0000 - 0x61092000      D:\oracle\product\10.2.0\client_1\bin\oracommon10.dll
    0x60300000 - 0x60857000      D:\oracle\product\10.2.0\client_1\bin\orageneric10.dll
    0x63430000 - 0x63457000      D:\oracle\product\10.2.0\client_1\bin\orasnls10.dll
    0x29060000 - 0x291C0000      D:\oracle\product\10.2.0\client_1\bin\oraxml10.dll
    0x780A0000 - 0x780B2000      C:\WINNT\system32\MSVCIRT.dll
    0x60960000 - 0x60A6D000      D:\oracle\product\10.2.0\client_1\bin\oran10.dll
    0x62740000 - 0x6277D000      D:\oracle\product\10.2.0\client_1\bin\oranl10.dll
    0x62790000 - 0x627A7000      D:\oracle\product\10.2.0\client_1\bin\oranldap10.dll
    0x627F0000 - 0x628F9000      D:\oracle\product\10.2.0\client_1\bin\orannzsbb10.dll
    0x62530000 - 0x62583000      D:\oracle\product\10.2.0\client_1\bin\oraldapclnt10.dll
    0x62670000 - 0x6268B000      D:\oracle\product\10.2.0\client_1\bin\orancrypt10.dll
    0x75050000 - 0x75058000      C:\WINNT\system32\WSOCK32.dll
    0x62920000 - 0x6296C000      D:\oracle\product\10.2.0\client_1\bin\oranro10.dll
    0x626B0000 - 0x626B7000      D:\oracle\product\10.2.0\client_1\bin\oranhost10.dll
    0x62660000 - 0x62666000      D:\oracle\product\10.2.0\client_1\bin\orancds10.dll
    0x629C0000 - 0x629C8000      D:\oracle\product\10.2.0\client_1\bin\orantns10.dll
    0x60B50000 - 0x60EA8000      D:\oracle\product\10.2.0\client_1\bin\orapls10.dll
    0x291C0000 - 0x291C9000      D:\oracle\product\10.2.0\client_1\bin\oraslax10.dll
    0x63080000 - 0x63284000      D:\oracle\product\10.2.0\client_1\bin\oraplp10.dll
    0x61ED0000 - 0x61F5B000      D:\oracle\product\10.2.0\client_1\bin\orahasgen10.dll
    0x62AB0000 - 0x62B1A000      D:\oracle\product\10.2.0\client_1\bin\oraocr10.dll
    0x62B20000 - 0x62B60000      D:\oracle\product\10.2.0\client_1\bin\oraocrb10.dll
    0x7CDC0000 - 0x7CE13000      C:\WINNT\system32\NETAPI32.dll
    0x77980000 - 0x779A4000      C:\WINNT\system32\DNSAPI.dll
    0x751C0000 - 0x751C6000      C:\WINNT\system32\NETRAP.dll
    0x77BF0000 - 0x77C01000      C:\WINNT\system32\NTDSAPI.dll
    0x77950000 - 0x7797B000      C:\WINNT\system32\WLDAP32.DLL
    0x291D0000 - 0x291DF000      C:\WINNT\system32\SECUR32.DLL
    0x75150000 - 0x75160000      C:\WINNT\system32\SAMLIB.dll
    0x690A0000 - 0x690AB000      C:\WINNT\system32\PSAPI.DLL
    0x62980000 - 0x62990000      D:\oracle\product\10.2.0\client_1\bin\orantcp10.dll
    0x291E0000 - 0x2927A000      D:\oracle\product\10.2.0\client_1\bin\orasql10.dll
    0x294A0000 - 0x294A9000      D:\ORACLE\PRODUCT\10.2.0\CLIENT_1\BIN\sqresUS.dll
    0x7C140000 - 0x7C243000      D:\oracle\product\10.2.0\client_1\bin\MFC71.DLL
    0x29720000 - 0x2973A000      C:\WINNT\system32\odbccp32.dll
    0x77820000 - 0x77827000      C:\WINNT\system32\VERSION.dll
    0x759B0000 - 0x759B6000      C:\WINNT\system32\LZ32.DLL
    0x782C0000 - 0x782CC000      C:\WINNT\System32\rnr20.dll
    0x77340000 - 0x77353000      C:\WINNT\system32\iphlpapi.dll
    0x77520000 - 0x77525000      C:\WINNT\system32\ICMP.DLL
    0x77320000 - 0x77337000      C:\WINNT\system32\MPRAPI.DLL
    0x773B0000 - 0x773DF000      C:\WINNT\system32\ACTIVEDS.DLL
    0x77380000 - 0x773A3000      C:\WINNT\system32\ADSLDPC.DLL
    0x77830000 - 0x7783E000      C:\WINNT\system32\RTUTILS.DLL
    0x77880000 - 0x7790E000      C:\WINNT\system32\SETUPAPI.DLL
    0x29740000 - 0x297A4000      C:\WINNT\system32\USERENV.DLL
    0x774E0000 - 0x77514000      C:\WINNT\system32\RASAPI32.DLL
    0x774C0000 - 0x774D1000      C:\WINNT\system32\rasman.dll
    0x77530000 - 0x77552000      C:\WINNT\system32\TAPI32.dll
    0x77360000 - 0x77379000      C:\WINNT\system32\DHCPCSVC.DLL
    0x777E0000 - 0x777E8000      C:\WINNT\System32\winrnr.dll
    0x66210000 - 0x66219000      C:\WINNT\system32\netware\NWWS2NDS.DLL
    0x50D50000 - 0x50D97000      C:\WINNT\system32\NETWIN32.DLL
    0x50D00000 - 0x50D15000      C:\WINNT\system32\CLNWIN32.DLL
    0x50DF0000 - 0x50E10000      C:\WINNT\system32\LOCWIN32.DLL
    0x50DB0000 - 0x50DD9000      C:\WINNT\system32\NCPWIN32.dll
    0x66220000 - 0x6622C000      C:\WINNT\system32\netware\NWWS2SLP.DLL
    0x29800000 - 0x29807000      C:\WINNT\system32\NWSRVLOC.dll
    0x777F0000 - 0x777F5000      C:\WINNT\system32\rasadhlp.dll
    0x74FD0000 - 0x74FEE000      C:\WINNT\system32\msafd.dll
    0x75010000 - 0x75017000      C:\WINNT\System32\wshtcpip.dll
    0x77920000 - 0x77943000      C:\WINNT\system32\imagehlp.dll
    0x72A00000 - 0x72A2D000      C:\WINNT\system32\DBGHELP.dll
    Heap at VM Abort:
    Heap
    def new generation total 576K, used 540K [0x10010000, 0x100b0000, 0x104f0000)
    eden space 512K, 92% used [0x10010000, 0x100870a0, 0x10090000)
    from space 64K, 100% used [0x100a0000, 0x100b0000, 0x100b0000)
    to space 64K, 0% used [0x10090000, 0x10090000, 0x100a0000)
    tenured generation total 1408K, used 388K [0x104f0000, 0x10650000, 0x14010000)
    the space 1408K, 27% used [0x104f0000, 0x10551158, 0x10551200, 0x10650000)
    compacting perm gen total 4608K, used 4448K [0x14010000, 0x14490000, 0x18010000)
    the space 4608K, 96% used [0x14010000, 0x14468008, 0x14468200, 0x14490000)
    Local Time = Mon Jul 24 11:39:14 2006
    Elapsed Time = 21
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed mode)
    Does anyone knows what might the problem be?
    Thank you,
    Olmos

    Why don't you use a type 2 or 4 Oracle driver rather than the bridge driver?

  • Error with Sql Server and Java App

    Hi i have a java based multithread application which comunicate with SQL SERVER via DSN bridge , some time my application crashes with this error any idea what its happend and how to remove it .
    Thanks
    ************* Exception ********************************8
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77F87EEB
    Function=RtlEnterCriticalSection+0xB
    Library=F:\WINNT\system32\ntdll.dll
    Current Java thread:
    at sun.jdbc.odbc.JdbcOdbc.numResultCols(Native Method)
    at sun.jdbc.odbc.JdbcOdbc.SQLNumResultCols(JdbcOdbc.java:4625)
    at sun.jdbc.odbc.JdbcOdbcStatement.getColumnCount(JdbcOdbcStatement.java:1235)
    at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:352)
    - locked <04DC3EE0> (a sun.jdbc.odbc.JdbcOdbcStatement)
    at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(JdbcOdbcStatement.java:288)
    at advcomm.advrad.DBParams.Ltht(Unknown Source)
    at advcomm.advrad.DBParams.BDhb(Unknown Source)
    at advcomm.advrad.DlkhlHz.run(Unknown Source)
    Dynamic libraries:
    0x00400000 - 0x00406000 F:\j2sdk1.4.1_03\bin\java.exe
    0x77F80000 - 0x77FFC000 F:\WINNT\system32\ntdll.dll
    0x7C2D0000 - 0x7C335000 F:\WINNT\system32\ADVAPI32.dll
    0x7C570000 - 0x7C623000 F:\WINNT\system32\KERNEL32.dll
    0x77D30000 - 0x77DA8000 F:\WINNT\system32\RPCRT4.dll
    0x78000000 - 0x78045000 F:\WINNT\system32\MSVCRT.dll
    0x75030000 - 0x75044000 F:\WINNT\system32\WS2_32.DLL
    0x75020000 - 0x75028000 F:\WINNT\system32\WS2HELP.DLL
    0x6D340000 - 0x6D46B000 F:\j2sdk1.4.1_03\jre\bin\client\jvm.dll
    0x77E10000 - 0x77E79000 F:\WINNT\system32\USER32.dll
    0x77F40000 - 0x77F7C000 F:\WINNT\system32\GDI32.dll
    0x77570000 - 0x775A0000 F:\WINNT\system32\WINMM.dll
    0x6D1E0000 - 0x6D1E7000 F:\j2sdk1.4.1_03\jre\bin\hpi.dll
    0x6D310000 - 0x6D31E000 F:\j2sdk1.4.1_03\jre\bin\verify.dll
    0x6D220000 - 0x6D239000 F:\j2sdk1.4.1_03\jre\bin\java.dll
    0x6D330000 - 0x6D33D000 F:\j2sdk1.4.1_03\jre\bin\zip.dll
    0x6D260000 - 0x6D26B000 F:\j2sdk1.4.1_03\jre\bin\JdbcOdbc.dll
    0x1F7A0000 - 0x1F7DA000 F:\WINNT\system32\ODBC32.dll
    0x71710000 - 0x71794000 F:\WINNT\system32\COMCTL32.dll
    0x7CF30000 - 0x7D175000 F:\WINNT\system32\SHELL32.dll
    0x70A70000 - 0x70AD6000 F:\WINNT\system32\SHLWAPI.dll
    0x76B30000 - 0x76B6E000 F:\WINNT\system32\comdlg32.dll
    0x1F840000 - 0x1F857000 F:\WINNT\system32\odbcint.dll
    0x1F9C0000 - 0x1FA27000 F:\WINNT\System32\SQLSRV32.dll
    0x41090000 - 0x410BD000 F:\WINNT\System32\SQLUNIRL.dll
    0x77800000 - 0x7781E000 F:\WINNT\System32\WINSPOOL.DRV
    0x76620000 - 0x76631000 F:\WINNT\system32\MPR.DLL
    0x77820000 - 0x77827000 F:\WINNT\system32\VERSION.dll
    0x759B0000 - 0x759B6000 F:\WINNT\system32\LZ32.DLL
    0x779B0000 - 0x77A4B000 F:\WINNT\system32\OLEAUT32.dll
    0x7CE20000 - 0x7CF0F000 F:\WINNT\system32\ole32.dll
    0x7CDC0000 - 0x7CE13000 F:\WINNT\System32\NETAPI32.dll
    0x77980000 - 0x779A4000 F:\WINNT\System32\DNSAPI.dll
    0x75050000 - 0x75058000 F:\WINNT\System32\WSOCK32.dll
    0x751C0000 - 0x751C6000 F:\WINNT\System32\NETRAP.dll
    0x77BF0000 - 0x77C01000 F:\WINNT\System32\NTDSAPI.dll
    0x77950000 - 0x7797B000 F:\WINNT\system32\WLDAP32.DLL
    0x7C340000 - 0x7C34F000 F:\WINNT\System32\SECUR32.DLL
    0x75150000 - 0x75160000 F:\WINNT\System32\SAMLIB.dll
    0x769A0000 - 0x769A7000 F:\WINNT\system32\NDDEAPI.DLL
    0x1FA30000 - 0x1FA46000 F:\WINNT\System32\sqlsrv32.rll
    0x1F7F0000 - 0x1F80A000 F:\WINNT\system32\odbccp32.dll
    0x74CB0000 - 0x74CCA000 F:\WINNT\system32\DBNETLIB.DLL
    0x75500000 - 0x75504000 F:\WINNT\system32\security.dll
    0x782D0000 - 0x782F2000 F:\WINNT\system32\msv1_0.dll
    0x7C740000 - 0x7C7CC000 F:\WINNT\system32\CRYPT32.dll
    0x77430000 - 0x77441000 F:\WINNT\system32\MSASN1.dll
    0x77340000 - 0x77353000 F:\WINNT\system32\iphlpapi.dll
    0x77520000 - 0x77525000 F:\WINNT\system32\ICMP.DLL
    0x77320000 - 0x77337000 F:\WINNT\system32\MPRAPI.DLL
    0x773B0000 - 0x773DF000 F:\WINNT\system32\ACTIVEDS.DLL
    0x77380000 - 0x773A3000 F:\WINNT\system32\ADSLDPC.DLL
    0x77830000 - 0x7783E000 F:\WINNT\system32\RTUTILS.DLL
    0x77880000 - 0x7790E000 F:\WINNT\system32\SETUPAPI.DLL
    0x7C0F0000 - 0x7C154000 F:\WINNT\system32\USERENV.DLL
    0x774E0000 - 0x77514000 F:\WINNT\system32\RASAPI32.DLL
    0x774C0000 - 0x774D1000 F:\WINNT\system32\rasman.dll
    0x77530000 - 0x77552000 F:\WINNT\system32\TAPI32.dll
    0x77360000 - 0x77379000 F:\WINNT\system32\DHCPCSVC.DLL
    0x74CD0000 - 0x74CD8000 F:\WINNT\system32\DBmsLPCn.dll
    0x0B990000 - 0x0B9E6000 F:\WINNT\system32\MSVCR71.dll
    0x6D2E0000 - 0x6D2EE000 F:\j2sdk1.4.1_03\jre\bin\net.dll
    0x782C0000 - 0x782CC000 F:\WINNT\System32\rnr20.dll
    0x777E0000 - 0x777E8000 F:\WINNT\System32\winrnr.dll
    0x777F0000 - 0x777F5000 F:\WINNT\system32\rasadhlp.dll
    0x74FD0000 - 0x74FEE000 F:\WINNT\system32\msafd.dll
    0x75010000 - 0x75017000 F:\WINNT\System32\wshtcpip.dll
    0x77920000 - 0x77943000 F:\WINNT\system32\imagehlp.dll
    0x72A00000 - 0x72A2D000 F:\WINNT\system32\DBGHELP.dll
    0x690A0000 - 0x690AB000 F:\WINNT\system32\PSAPI.DLL
    Local Time = Wed Mar 08 17:24:41 2006
    Elapsed Time = 9294
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.1_03-b02 mixed mode)
    #

    I'm having the same problem.
    One potential solutions is to use a custom SQL server JDBC driver instead of going through the ODBC bridge. This will minimize dependencies and should also improved performance. Hope this helps.
    - Joe

  • Exception: no ocijdbc9.dll in java.lib.path

    I have oracle9i Minimal Edition for Win2000 installed, I tried to run my sample java code to test ocijdbc driver.
    The exception has been thrown like this:
    no ocijdbc9.dll in java.lib.path
    I've tried to search this file but not found.
    I don't know where I can download this file?
    I succeed with thin driver with my sample code.
    Anyway, I want to use oci.
    Please help.

    Hallo,
    the Lib is in ORACLE_HOME/bin and not in the lib-Directory like the documentation says.
    Hope i can help you.
    Michael

  • How do I stop Win7 from breaking my software? Ole32.dll and "Power" service suspected culprits.

    Hello and thanks for any help with this.
    I built a new computer for my aunt and her one major request is that she still be able to use her card maker software Creatacard (yes misspelled just like that) by American Greetings. I thought this would be no issue, I could give her a much faster machine
    and get her off (the no longer supported) WindowsXP all at the same time by moving her to Windows7 and copying all her files over from the old PC to the new one.
    I tested the software first on a test PC of mine and found it would not install in a 64bit environment (error message saying use 32bit during install) which I solved by using Windows7 32bit. It worked perfectly so I proceeded to build her machine thinking
    that issue resolved. Problem is after the new rig was built and SP1 plus all windows updates were installed the Creatacard software would not load. I get an instant popup message saying "Creatacard Application File has stopped working" with the options
    to "Check online for a solution..." and "Close the Program."
    Checking online does nothing noticeable and close program doesn't help as every time you reload it fails immediately with the same message. Clicking on the "view problem details" drop menu reveals that this is an APPCRASH with the following clues
    Fault Module Name  ole32.dll
    Fault Module Version 6.1.7601.17514
    I have researched and tried everything I could find online about this crash and none of it (up to and including completely re-installing Windows, systematically loading a few Win-updates and trying the app after each batch, editing the registry multiple
    times, trying alt versions of ole32.dll, and using a Linux live CD to alter windows settings) has fixed the problem.  I have learned the following though:
    When windows is first installed the card maker software (CMS from here on) works fine.
    After windows updates itself and a few device drivers auto load (like when you first plug in a USB mouse or Flash drive) CMS breaks.
    Loading windows normally after it is up to date always causes CMS to crash and give the above message.
    When I perform a "clean boot" CMS works fine once again.
    When I boot into safe mode CMS works fine.
    Someone online suggested a service could be the actual problem and there being 140 of them I used the 50% method to quickly narrow the list and found that yes indeed windows services do appear to be related because if I don't allow the "Power"
    service to run the CMS works perfectly. With a bit of testing to see what it does I found that it controlled wake/sleep settings, delay until your monitor goes dark etc and that if the Power service is disabled it remembers the last settings entered and I
    thought GREAT! Finally after many days of frustration and being balked by nonsense I have a solution. My aunt will never use/miss the power settings I will set them up for her once and then kill that service and all is well for a Happy Holiday... (from my
    research online some may already guess where this is headed)  until I went to play a video............ and there was no sound.
    A little red X had appeared next to the speaker icon down in the system tray next to the clock and hovering over it gave a popup with "The Audio Service is not running." This is where the BS gets deep. I had of course NOT disabled the sound (Windows
    Audio) service and a quick check showed it and all the services it depended on were in fact on and running. The Windows trouble shooter offered to fix the issue and so I let it run but it comes back with "one or more Audio service is not running"
    and attempting to restart the service on its own came back with a "Not fixed" result. Now if I go to check dependencies for the "Power" it claims that no other services depend on it and it depends on nothing but that is an outright lie.
    Further digging shows me the Power service's "path to executable" as...  C:\Windows\system32\svchost.exe -k DcomLauncher and many other services show they depend on DcomLauncher to run.
    Long extra trouble shooting session short here is where I am at. I can have the sound working or the CMS but not both.
    Uninstalling and re-installing the sound card drivers didn't help (since sound is being stopped at the windows OS level) either.
    As soon as I turn on the Power service and reboot the CMS breaks. As soon as I disable the Power service and reboot the CMS works perfectly but all audio breaks. Both of these are a deal breaker as she will not leave her old slow XP machine without her CMS
    and I cannot give her a new machine that has no sound. Reboots take 30 seconds on this new PC so were it mine I could just live with it as the CMS has no sound and I don't need music playing when I am designing a Christmas card. Use the sound/power on 99%
    of the time and disable them and reboot whenever I make a card and then enable and reboot when I am done. This would be over her head though I fear as she is a senior and not very tech savvy. My question then is...
    Is there any way to have the CMS work while still keeping the Windows Audio service (and all the other not listed but still existing dependent services) running? Or alternatively is there something else I can do to the ole32.dll to make it stop the crash/error?
    To be clear I would happily accept a system without the Power service running if (like it actually says under dependencies) nothing else other than the "Power Options" in Control Panel ceased to function.

    Thanks Michael. Apologies for the slow reply I was away for a bit (holiday blitz at work and visiting family madness etc.etc.) back now, I set both options you requested to "never " and retried the CMS software with no change. 
    I do have progress of a sort though, as a test I took a separate test PC and put a clean install of Win7 on and loaded up the CMS software (it worked perfectly) and then took the version of ole32.dll off that machine and put it onto the computer I had built
    for her (using Linux) and...
    got a new error code. Darn I was so sure I had found a clever solution this time lol.
    Anyway now when the CMS fails it gives me a similar error but the offending module is "ntdll.dll" sooo... I tried taking the "working" version of ntdll.dll from the test box and moving it over (making sure to back up the existing ones
    first so I could put them back if needed) to her new PC and the PC would not boot. 
    It seems to want the original versions of a few Dynamic Link Libraries and if I could somehow give it those while not breaking Win7 it should theoretically work seeing as it no longer errors with ole32.dll. 
    ntdll.dll however seems necessary for Win7 to boot.
    So what I am wondering now is:
    Is there some way to have both versions of the DLL file in the system32 folder (bypassing the "cannot have two files with the exact same name in the same folder" thing) or rename the original DLL's something else and somehow make the CMS look for
    the new named versions so the system has the updated DLL's it needs to boot/run and the CMS has the old ones it wants to run or is there someway to have a self contained install of the CMS, say on a USB flash drive and give it it's own E:/windows/system32/needed
    dll's  path to the files it needs? 
    Willing to try any other options or settings you may have come up with as well.
    Thanks again for your reply and my apologies for not answering sooner.

  • Java plugin doesn't work, even though it's installed correctly and java programs work.

    As stated. I have a link in ~/.mozilla/plugin that points to test/jre/plugin/i386/ns7/libjavaplugin_oji.so, which is the java 6 update 21 runtime environment.
    Java doesn't show in about:plugins, and java applets don't start (firefox suggests to install missing plugins).
    Java programs using the jre outside the browser work.
    This is on Linux 32-bits, Slackware 13.0, kernel 2.6.34.

    <blockquote>As stated. I have a link in ~/.mozilla/plugin that points to test/jre/plugin/i386/ns7/libjavaplugin_oji.so, which is the java 6 update 21 runtime environment.
    </blockquote>
    Where did you read that?<br />
    See http://kb.mozillazine.org/Java<br />
    In Firefox 3.6 and later versions you need the Next-Generation Java™ Plug-In present in Java 6 U10 and later (Linux: libnpjp2.so; Windows: npjp2.dll).
    http://java.com/en/download/faq/firefox_newplugin.xml
    http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html
    <pre><nowiki>ln -s /usr/local/java/jre1.6.0_20/lib/i386/libnpjp2.so libnpjp2.so
    ln -s /usr/lib/jvm/jre/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/libnpjp2.so (java-1_6_0-sun-plugin)
    </nowiki></pre>

  • I'm getting a "The procedure entrypoint ssSr192x__​ssSr192drv​ssSrReset could no be located in the dynamic link library ssSR192x.d​ll" because the ActiveX instrument driver DLL doesn't have the function names in the export table.

    Is there a way for my CVI project to reference the functions in the ActiveX without including the instrument .fp in the project?
    Thanks much.
    I'm confused on how CVI uses ActiveX components and hope someone can help.
    I'm using an ActiveX driver from an instrument manufacturer and I use the .TLB to generate a .fp, .c, and .h file. If I register the .dll and load the .fp in my project, all is well. Unfortunately in my application the functions to control this instrument are in another DLL whose .lib I include in my CVI projec
    t. Running the CVI project this way gives me "The procedure entrypoint ssSr192x__ssSr192drvssSrReset could no be located in the dynamic link library ssSR192x.dll" because the instrument function names aren't in the export table in the instrument DLL. Non-ActiveX DLLs have the export tables so everything works for them.
    Program structure with non-ActiveX DLLs:
    CVI project (.exe with common.lib in project list)
    |
    V
    Common DLL (MeasDMM() with hp1234.lib in project list)
    |
    V
    Instrument DLL (hp1234_measure())
    Since I get a .c and .h file from the .TLB, I've tried recompiling the DLL (.dll and .lib produced) and the functions seem to work, but I get "Class not registered" errors unless I play games with the registry so I'm obviously violating numerous Microsoft rules!
    Is there a way for my CVI project to reference the functions in the ActiveX without including the instrument .fp in the project? Thanks much.
    Jeff Fish
    Advisory Test Engineer
    StorageTek

    Hello Jeff,
    Where were your getting the .lib file for the ActiveX DLL? Did you use the "hp1234"
    ActiveX driver generated by the "Create ActiveX Automation Controller" CVI Tool to build a static library? If you open an include file and choose Options >> Generate DLL..., it will generate source code or a static import library to load the specified DLL and load functions specified in the include file (this only works if the functions are exported from a DLL). However, in the case of our ActiveX Automation Controllers, ActiveX calls are used to access a DLL. This means that you do not need an import library. You should be able to open the "hp1234" source file and click Options >> Create Object File. Simply #include "hp1234.h" and add "hp1234.obj" to your Common DLL project;
    the .fp file is not necessary. If this does not answer your questions or if you experience further difficulty, please post further details on what you are doing and the errors that are being encountered ("play games with the registry" and "recompiling 'the' DLL" are a bit vague in this case).
    Jeremiah
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

Maybe you are looking for

  • Can't install 8.1.5 on Caldera or RH

    I must be doing something exceedinly stupid. I can't get OUI to start on either Caldera OpenLinux 2.2 or RH 6.0. Both are vanilla Linux installs, just for the purpose of getting Oracle up. Caldera: right after saying it's initializing JVM with /usr/l

  • Can't connect Apple Tv to Videoprojector Sanyo plv z2

    Just bought an Apple TV. Connected it with hdmi câble + hdmi/ dvi adaptor. The sanyo don't recognize the Atv. I get a noisy white screen. Don't know what to do. maybe HDCP related ? The Sanyo works with DVD player in 760p and 1080i through DVI port

  • Black and White with Actionscript

    In the website I'm developing I want to turn the background image to black and white as the cursor moves toward the left side of the screen or color when the user's cursor moves toward the right side of the screen. Right now I have two images, color

  • Flashplayer.log

    I've searched and I cannot find a list of error numbers and what they mean for the flashplayer.log. Can someone please provide this info? Here are some examples, and while I welcome replies about these codes, I really need a list of all codes so I ca

  • EOIO & ccBPM

    Hi , We have a scenario(File -> XI -> IDOC -> SAP) where in we have to post the IDOCs in FIFO manner. We have configured EOIO in File adapter, specified a queue name , the order in which the file adpater has to read files is also set(By Date). Our id