Applet Calling DLL in MS Ie5.0 problem?

Hello,
I'm using Windows 2000, IE5.0 MicroSoft JVM 1.1.8 build 5.0.0.3802 and have an applet which is calling a local DLL in the c:\winnt\system32\ dir.
I have granted permissions in the sandbox to allow access to everything (for debug only) and the applet seams to have a problem finding the DLL.
I have also setup all the appropriate trustlib classes etc.
Does anyone know if you need to do anything special to the JsafePKCS11.DLL i.e. drop it into a dir, in order for IE5.0 to pick it up?
Java Console
Microsoft (R) VM for Java, 5.0 Release 5.0.0.3802
==============================================
? help
c clear
f run finalizers
g garbage collect
m memory usage
q quit
t thread list
=============================================
15 15:41:53:: PKCS11 Sign starting
15 15:41:53:: Creating CertJ object
15 15:41:53:: Creating JSAFE_PKCS11SessionSpec object
15 15:41:53:: getP11LibraryName:: found ACTIV DLL
15 15:41:53:: Creating JSAFE_PKCSSessionSpec object...
15 15:41:53:: Creating JSAFE_Session[1] object...
15 15:41:53:: Creating JSAFE_Session.getInstance() object...
15 15:41:54:: JSAFE_UnimplementedException A JSAFE_Session object is not available
15 15:41:54:: In clearData()... Clearing sensitive data.
15 15:41:54:: In clearData()... Clearing sensitive data.
15 15:41:54:: stop
Any help/clues gratefully received.
Regards Gareth

Just for information,
If you use a signed CAB file, the problem is resolved.
Cheers

Similar Messages

  • I am using a Application in c dll calling from jni jar by java applet in firefox version 19.0 , the problem is click event message box will not working correct

    I am using a Application in c dll calling from jni jar by java applet in firefox version 19.0 , the problem is button click event message box or popup window will not working correctly. Please any one suggest me the steps to overcome this not responding or slowness in the responding problem of Button click event.

    Hello,
    In Firefox 23, as part of an effort to simplify the Firefox options set and protect users from unintentially damaging their Firefox, the option to disable JavaScript was removed from the Firefox Options window.
    However, the option to disable JavaScript was not removed from Firefox entirely. You can still access it from about:config or by installing an add-on.
    '''about:config'''
    # In the address bar, type "about:config" (with no quotes), and press Enter.
    # Click "I'll be careful, I promise"
    # In the search bar, search for "javascript.enabled" (with no quotes).
    # Right click the result named "javascript.enabled" and click "Toggle". JavaScript is now disabled.
    To Re-enable JavaScript, repeat these steps.
    '''Add-ons'''
    You can alternatively install an add-on that lets you disable JavaScript, such as
    *[https://addons.mozilla.org/firefox/addon/noscript/ No-Script] (to disable JavaScript on a per page basis, as required)
    *[https://addons.mozilla.org/firefox/addon/quickjava/ QuickJava] (to easily disable and enable JavaScript, automatic loading of images, and other content)
    Thank you and I hope this helps!

  • Java Applet call javascript problem

    Hi I have a web page as follow and embedded a applet. The applet call the java script, and instead of showing an alarm, the browser show the javascript code. Is that strange ? Any suggestion for this problem.
    HTML:
    ================================================================
    <HTML>
         <HEAD>
         function ShowEmbd()
              alert("Test Applet call Javascript");
         </SCRIPT>
         </HEAD>
         <BODY>
         <FORM NAME="AppletEmbdStart">
              <OBJECT classid="clsid:48B2DD7B-6B52-4DB0-97C9-ECB940113B47" id="CIVON_DEmbdObj" width="0" height="0"></OBJECT>
              <APPLET code="MyApplet.class" width="0" height="0"></APPLET>
         </FORM>
         </BODY>
    </HTML>MyApplet.java
    =========================================================================
    import netscape.javascript.*;
    public class MyApplet extends javax.swing.JApplet
         private JSObject m_win = null;
         private JSObject m_doc = null;
         public void init()
              getJSWin().call("ShowEmbd", null);
         private getJSDoc()
              if(m_doc == bull)
                   m_doc = (JSObject) getJSWin().getMember("document");
              return m_doc;
         private JSObject getJSWin()
              if (m_win == null)
                   m_win = netscape.javascript.JSObject.getWindow(this);
              return m_win;
    }The page was load and it should call the applet MyApplet. The MyApplet should do the init() method and call the Javascript "ShowEmbd()", BUT, instead of show alert from ShowEmbd(), the browser show the code of ShowEmbd() itself ...... It did not run the javascript and shows the alert ??
    The browser shows a message from status bar "The applet not initial" ???? why ???
    Can anyone help ?!

    On first look:
    I am not sure about the Object Tag, but the Applet Tag requires the MAYSCRIPT attribute before Java can call Javascript.

  • The problem about call dll from VB....

    Dear All.
    I have a device and  VB dll file.I want to use labview to call  dll.But Labview show "An Exception occurred within the external code ..."
    Below is  to call this dll details.
    1、FindHardware:
    Call it at beginning when load program first, it can let program auto detect printer port address and model of dso scope.
    parament
    winversion:
    winversion = 2  "Windows NT,XP"
    UIP: open UIP(2048) array
    UCP:open  UCP(1023, 1023 + 11, 6)  array
    return:
    board_model:
    dso2902_128 = 27
    Then is my program
    Could somebody tell me what's wrong?
    Attachment file is this dll.
    http://us.f1.yahoofs.com/bc/500cf3ac/bc/dll/dll.ra​r?bfd1QSDBkHPgKI9c
    Thanks.
    由 Samyang 在 10-09-2005 07:14 AM 上編輯的訊息

    I can't say I understand the documentation snippet you provides, and I also can't access the DLL, but here are a couple things...
    1. I doubt very highly that a VB DLL is built with the C calling convension. I believe you should try the stdcall instead.
    2. You have the winversion being passed by pointer, but the docs make it look like a regular integer. Is that correct?
    3. Your board model is being passed by value, but it is listed as a return value in the docs. That would indicate an actual return value or a parameter passed by reference.
    My guess is that one or more of the above is causing the stack to get corrupted or an invalid pointer to be accessed and that is generating the error. Is there anyway to see the document (pdf or webpage)?
    Brian Tyler
    http://detritus.blogs.com/lycangeek

  • Call dll in labview

    "Hi All,
    I have to get data from USB camera, I have following functions in DLL.
    DLLINOUT HANDLE WINAPI CC_Open( LPCSTR CameraName , ULONG CameraNumber , CC_CAPTURE_MODE CaptureMode ) ;
    and
    DLLINOUT BOOL WINAPI CC_CaptureSingle( HANDLE Cam , PVOID Buffer , ULONG TransferSize , CC_TRIGGER_MODE TriggerMode , USHORT TimeOut , OVERLAPPED * pUserOverlapped );
    When I open hardware with function cc_open I am getting handle to an object. How can I store this object and pass it to CC_CaptureSingle function?
    Another question is when I call CC_CaptureSingle I am getting pointer on the 2 dimension array �PVOID buffer� how can I get this array in Labview?"

    hi,
    you can do this two thing.
    1. Create your new DLL with (your DLL will call camera's DLL) one big function my_capture_image() and insert you do CC_Open(), CC_CapruteSingle() and CC_Close(). And to LabView you pass only Array whit image data. And you don't have problems with HANDLE. But you must allocate memory for image array in LabVIEW before you call this DLL!!! [Or use LabVIEW C function for reallocating memory]
    2. You must identify type of HANDEL variable. And you can change type of this variabile. But when HANDLE variable is structure it is hard pass this structure to LabVIEW.
    If you use LabVIEW 7.1 look example 'Call DLL.vi' it is great!
    Have a nice day.
    JCC

  • I want to call DLLs generated in LAbWindows CVI in Borland C++ (BCB 6)

    Hi,
    I want to call DLLs generated in LabWindows CVI in Borland C++, I am using BCB 6 and LabWindows CVI 8.
    I am able to call these functions in VC++, But getting following error in BCB
    ":[Linker Error] 'D:\GAJANAN\CVIDLL.LIB' contains invalid OMF record, type 0x21 (possibly COFF)"
    Please somebody suggest me how to solve this problem.
    Thanks and Regards
    Gajanan

    Duplicate post.

  • Error 998 when calling dll

    Hello,
    I'm using LabView9 32-bit on 64-bit machine (Windows7) and I'm trying to call some functions from an external dll (32-bit).
    When configuring the call-library-function-node to use this dll I get an error message saying:
     "error loading (filename of dll)". Invalid access to memory location.
    The message is in German as is my operating system.
    Now I wrote a little test app in VC++ which directly called the dll. Everything worked fine.
    Next I wrote a wrapper-dll to call the original dll's functions and used that with my test app in VC++. Also no problems.
    Finally I configured LabView to call the wrapper-dll and got no error message at least right after configuration.
    But when I run the VI and debug the wrapper-dll I get an error 998 when the wrapper-dll tries to load the original dll.
    According to Microsoft's description of system error codes this is ERROR_NOACCESS and means exactly "Invalid access to memory location".
    So for some strange reason LabView isn't able to load that dll, which is obviously no problem for a C++ app.
    Any help on this would be very much appreciated since my project is strongly dependent on getting this to work.
    Best regards,
    \Ulli.

    Hi Ronnie,
    unfortunately there is no direct solution for this issue so far. Both sides, the dll-vendor (texas instruments) and ni are aware of it, with ni (in my opinion) at least trying to solve it.
    The cause seems to be some encryption stuff on the vendor side (they use an usb dongle). Is something similar involved with your problem?
    My current workaround is to have an external wrapper app written in c++ accessing the said dll. To this wrapper I communicate via socket to realise the function calls.
    This is quite annoying since it's a bit of work to do and you definitely loose performance. But so far no one was able (and in case of Texas Instruments even not willing) to help on that problem.
    And again: for me this issue applies only for the said configuration:
    Windows7, 64-bit,
    LV2009, 32-bit (I cannot use 64 bit because of some 32-bit-only toolboxes)
    the dll is available both in 32 and 64 bit...
    I'm still exited, if there will be an official solution,
    good luck,
    \Ulli.

  • Can an applet call one of the methods of servlet??

    hi everyone...
    i m very new servlet and applet programming and i have come accross a problem....
    i m using a applet which establishes connection with the servlet(residing on server)..i want to use few of the methods of the servlet....
    now is it possible tfor me to call the methods of this servlet using its object.???
    please help me..
    thanx in advance

    first of all thanx a lot for the reply...
    but i wanted to know can an applet call any other
    function of servlet other than get and post....as i
    hacve defined some more functions in servlet..
    please reply...I did this a while back (2003/4?) and unless it's changed you cannot do it directly, it must be GETor POST, then you could just use conditional logic to invoke another method.

  • Calling DLL function using LabVIEW 7.1?

    Here's the scinario:
    I have LabVIEW 7.1 and i'm trying to call a DLL function using 'CALL LIBRARY FUNCTION NODE'.
    I have used this in the past with no problem. But right now, when I use this node and link it to the
    library and function name, i get 'ERROR loading Dllname.dll' message.
    NOTE that the DLL is generated using VStudio2003 or VStudio.NET. Could this be a problem??
    Also, i noticed that there are some JUNK characters before & after the function name that show
    up in function prototype:
    long ?EcpvsSign@@YAHHPBEH0HPAE1@Z(long Signer, CStr NonRMsg, long NonRMsgLen,
    CStr RMsg, long RMsgLen, CStr SigR, CStr SigS);

    tbd wrote:
    Hi rkpat,
          You might check-out this thread on building WIN32 DLLs - expecially the bit re: "mangles names" under the paragraph titled "C Language Source File".  My recollection is that 'extern "C"' directive in the header file for the DLL solved the name-mangling problem, but it's been a few years!
    Cheers!
    Message Edited by tbd on 03-01-2007 11:19 PM
    tbd is right. You have to first disable name mangling as it creates all kind of troubles. Other issues might be that your Visual Studio 2003 or .Net edition links in dynamic runtime libraries that are not standard available on every Windows PC so that you need to redistribute the according runtime library installer together with your app for the DLL to be even loadable.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Calling dll-library using Oracle Express Language

    I call my dll-library from Express Language 6.32, but it can't locate my library function.
    How can I create a dll-library, suitable for Express.
    btw, creating dll I used EXTCALL.c example and I have done all in such a way as in this example. -- but... :(
    Please give me advice,
    Thanks for listening.

    tbd wrote:
    Hi rkpat,
          You might check-out this thread on building WIN32 DLLs - expecially the bit re: "mangles names" under the paragraph titled "C Language Source File".  My recollection is that 'extern "C"' directive in the header file for the DLL solved the name-mangling problem, but it's been a few years!
    Cheers!
    Message Edited by tbd on 03-01-2007 11:19 PM
    tbd is right. You have to first disable name mangling as it creates all kind of troubles. Other issues might be that your Visual Studio 2003 or .Net edition links in dynamic runtime libraries that are not standard available on every Windows PC so that you need to redistribute the according runtime library installer together with your app for the DLL to be even loadable.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Do i have to use .h files to call .dll files?

    Dear,
    Now i want to use labview to control an instrument. And the instrument company give their dll files.
    When i use tools---> import---->share library,labview tells me import .h file,but their are many .h files,you know you can just choose only one head files in labview at the same time.So should i write a new .h file to concluding this head files and every thing will be ok?it is complicated.
    I use another method to call .dll and it is CIF.But i also encounter new problem.When i invoke the node .dll,and then choose the functions,i find that the functions are void.Does It meanthat i can not input my parameter,and get output?
    So what' the problems?
    Thanks.

    To call a dll in LV, you have to use the Call Library Fuction node in your BD. Then dbl-click it to open the Configuration dialog. In that, you have to browse to the appropriate folder in teh Function tab & select the dll you want to call. Then select the function from the list populated down to it. Then go to the Parameters tab & select/assign the parameters for that function. This will do the job.
    - Partha
    LabVIEW - Wires that catch bugs!

  • 1097 error calling DLL

    Hi,
    I am a student currently doing an internship, and I may need some help. First of all, I am a beginner with LabVIEW, so maybe what I am asking is silly but I am completly lost.
    In my project, I have to command a CD/DVD reader manually (speed of rotation, data transmitted...), and for this I am using a free DLL file I find download on this website.
    http://www.frogaspi.org/
    So I do not have access to the source code, just to the header file and the DLL. When I am calling it, I get the error number 1097.
    As I understand in several posts on this forum, the reason is probably that the buffer used by the Call Library Node is not correctly sized. Indeed, the parameter is a pointer to a cluster that contains numbers and strings. But how exactly can I do a allocation of memory on Labview?
    Also, I understand that writting a C++ wrapper could be a solution, but can I do that whithout the source code? (I only know a little bit about C and not about C++, but I understand that both are similar so I hope I will manage to do it if you think it is possible. Still if it is, could anybody send me some documentation about it).
    If anybody could have any idea that would be useful or at least could advise me some documentations, I would me more than grateful.
    The header file and the DLL files are available on the link I post (it is not my work so I am a little uncomfortable posting it here)
    Thanks a millions,

    Hi,
    First of all, thanks for your answer. Sorry for answering just now, but I was trying to advance by my own too, and also I was asked to work on other things in my internship. I will try to explain you what I have done so far.
    Thanks for explaining me the difference between an API and an ASPI, I have to recognize that I did not get the difference between both before you told me, and that makes everythink clearer to me now. Still, the "dll" I find on this website seems to be a ASPI Manager, and they say
    "The ASPI Manager for the SCSI host adapter processes these function calls and generates the appropriate SCSI commands to the SCSI peripherals".
    So, maybe I misunderstand that again, but it seems to me that the first step you recommend to do is already done by the creater of this DLL.
    Also, I am now using Labview 2011 instead of 2010, but I don't think this change a lot in my problem. I send the labview code I made, it is currently very basic but if I cannot access the basic function of the DLL, there is just no point trying to make a code more complicated. I am for now just trying to call one of the function of the DLL and see what is happening.
    For this first function, the parameter to send to the node is a pointer on this structure:
    typedef struct
    BYTE SRB_Cmd;                 // ASPI command code = SC_HA_INQUIRY
    BYTE SRB_Status;              // ASPI command status byte
    BYTE SRB_HaId;                 // ASPI host adapter number
    BYTE SRB_Flags;               // Reserved, MUST = 0
    DWORD SRB_Hdr_Rsvd;     // Reserved, MUST = 0
    BYTE HA_Count;                // Number of host adapters present
    BYTE HA_SCSI_ID;            // SCSI ID of host adapter
    BYTE HA_ManagerId[16];    // String describing the manager
    BYTE HA_Identifier[16];      // String describing the host adapter
    BYTE HA_Unique[16];         // Host Adapter Unique parameters
    WORD HA_Rsvd1;             // Reserved, MUST = 0
    SRB_HAInquiry, *PSRB_HAInquiry;
    It is not really working so as I read on this NI webpage: http://digital.ni.com/public.nsf/allkb/DCB90714981A1F148625731E00797C33
    "Note that if your complex data type is a struct with more than primitive data types (int, double, char), it is easiest to create a wrapper DLL from a C-based language."
    So this is what I have been trying to do, and maybe it is very basic, but if anyone could send me a link on how to create a wrapper DLL, it would be very useful. I already download the one National Instrument made, but I did not really understand it.
    The DLL seems to work fine as I manage to call it from a C console programme. (I send the code too). But I tried to followed some tutorials but I just cannot create a DLL that I could use, so maybe there is something badly set in my IDE (I am using Code::Blocks). So if anybody has any idea of what is going on I would be very grateful. Again, the DLL I tried to make is very basic but if the basic are not ok, there is no point going further.
    This is what is happening right now : I create the dll file following the instruction but when I compile I get this warning:
    "warning: 'int addition(int, int)' redeclared without dllimport attribute: previous dllimport ignored"
    and then I just can't compile the test programm because I get the error: altough I did set the file.a as a linker.
    "undefined reference to `_imp__addition' "
    I send the compressed files that I made, I think there should be everything that is needed to answer me, except the DLL file that is available here http://www.frogaspi.org/download.htm
    Again sorry, but the owner of this library explicitly asked not to purpose a local download so I feel very unconfortable doing that, so please, just click on the link and download it from there.
    I do not know if anybody has ever done what I am trying to do, and I am not asking for someone to do it instead of me, I am sorry if I sound like it in my previous message, this was definitly not my intention.
    Still, the problem of having to write a wrapper seems to be a commun issue for people calling DLL in Labview, and I didn't find answer very clear on how to create a dll. I guess I could eventually find out by myself, but if anybody can help, that would make me save a lot of time.
    Maybe what I am asking is very easy, but again my knowledge about C language is basic, I am not  a computer science student so...
    Anyway, thank in advance,
    Adrien
    Attachments:
    Problem Wrapper.zip ‏31 KB

  • Labview fails to call dll after Migration from 2010 to 2014

    An error  'Failed to load dynamic library because of missing external symbols or dependencies or because of invalid file format' occures everytime the labview framework tries to call dll. Has anybody come across this problem before.???

    priyanka0101 wrote:
    [...] But this dll consists of APIs which [...]
    This sounds as if the DLL requires some other components, most likely other DLLs. Is it possible that these are not installed on the target machine?
    Do you run LV 2010 and 2014 in parallel on the same machine for checking?
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Applet calling javascript function causing memory leak

    Hi,
    I'm troubleshooting one memory leak issue in my application and to do that I created one simple Java applet and HTML + javascript function to locate the problem.
    Basically it's an applet calling a javascript function using a timer. The javascript function simply does nothing.
    I tested in IE 8.0 and JRE 1.6.0_23-b05 and memory of IE keeps increasing.
    I saw this bug http://bugs.sun.com/view_bug.do?bug_id=6857340 which seems related with my issue, but if I understand correctly from the page, the issue should have been fixed.
    I posted this message to find out if others also find same issue and if there's a solution for this. If I comment out window.call("dummy", null); , memory will not climb up.
    Java code
    +public class Main extends Applet implements Runnable  {+
    public Applet currentApplet= this ;
    +     public JSObject window = null;+
    +public void run(){+
    +          System.out.println("run..");+
    +     }+
    +public void start(){+
    window = JSObject.getWindow(this);
    int delay = 300; //milliseconds
    +ActionListener taskPerformer = new ActionListener() {+
    +public void actionPerformed(ActionEvent evt) {+
    window.call("dummy", null);
    +}+
    +};+
    new Timer(delay, taskPerformer).start();
    +     }+
    +public static void main(String[] args) {+
    +          System.out.println("start...");+
    +          Main main = new Main();+
    +     main.start();+
    +     }+
    +}+
    Javascript source code
    +<html>+
    +<head>+
    +<script>+
    +function dummy() {+
    +     +
    +}+
    +</script>+
    +</head>+
    +<body>+
    +<applet .... >+
    +...+
    +</html>+

    Try this url:
    http://www.inquiry.com/techtips/java_pro/10MinuteSolutions/callingJavaScript.asp
    It also provides some examples.

  • Can applet call IE?...

    Can applet call explorer?...
    That means if i have a applet class which show some details, then i wanna create the html page by using that details from applet and then execute it.
    Is it impossible to do that?
    As i known, there is Runtime class that can execute the program by using "Runtime.exec()" method, but we have to put the file's path(path that tell where the html file is...) as the parameter.
    But my problem is i did not prepare the html file before, it will be create on applet , and then exceute it to show on monitor...
    Do u have any idea?..
    Thank a lot..

    Your applet can call javascript, javascript can open a new window and set the
    text (html) for this window (document.write window.opener.sometext()).
    To call javascript from your applet:
              try {
                   this.getAppletContext().showDocument(
                             new URL("javascript: someJSMethod();"));
              } catch (Exception e) {
                   e.printStackTrace();
              }

Maybe you are looking for

  • Service PO Commitment with reference to statistical IO is not get reduced.

    PO is created with Account assigned to Internal Order stastically and Cost center as real cost object. Wih PO creation we check commitment in system According to standard SAP, at creation of PO, system creates commitment & while doing GR/IR, system s

  • Remote Screen Sharing (VNC) from outside of my LAN

    I often have to connect to my parents' Macs to help them out with various things. I commute between two cities and stay with them when I'm there. (I set up a dynamic hostname with DynDNS to point to our router, which defaults to port 443, which on th

  • Firefox doesn't remember the last used download directory that I saved to when it restarts!

    Even when I have firefox set to ask me where to save files, it's default location is still the folder selected under "download options", instead of the last location I saved to. I suspect that this has something to do with the "download.lastdir" opti

  • Adobe Encore CS6 won't open & keeps crashing on my Mac

    Hoping someone can suggest something here as I'm stuck. I have been happily using Premier and Encore CS6 on my Mac OS X (Version 10.7.5), until last night when I tried to open Encore and it wouldn't open. It starts to load, then it crashes and gives

  • Maximum RAM which can be fitted?

    I have a Powerbook G4 17 inch, serial number W8*******QRV which currently has 1Gb. of RAM fitted. I have tried to fit 2 x 1Gb. of DDR1 333MHz. PC - 2700 (SODIMM) but have had no success. The laptop does not give memory error beeps, but instead displa