Please Help - signed applet wierdness

I have a signed applet. Signing works fine.
I get the following error:
Exception occurred during event dispatching:
java.lang.StackOverflowError
     at java.io.FilePermission$1.run(Unknown Source)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.io.FilePermission.init(Unknown Source)
     at java.io.FilePermission.<init>(Unknown Source)
and so on... (about 5 pages worth).
This occurs on the following line:
KeyPairGenerator keygen = KeyPairGenerator.getInstance("RSA");
Please note that when I run this not in the plug in (just unit testing) it works fine. I have included all the necessary jars etc (note that it is not a class not found error). The signing works fine, the applet is trusted and can do trusted things.
Please help, I have been stuck on this for quite some time, and it is getting quite urgent. I am getting more and more dismayed with the problems that seem to be inherent with the java plug in.

Hi,
I am getting the same problems as yours...using Plugin 1.3.0 i get the same error, even though no problem when debugging-running outside the sandbox...
Did you get how to do, please?
Thank you!
Marzio
([email protected])

Similar Messages

  • Please help with Applet in New Window?

    I am trying to write a html page which opens appet into new window.
    Tha'ts what i want. My applet has user/passwd authentication and then
    makes a socket connection. However i am facing tow problems(kind of one):
    1. If i close my applet browser window, socket connection is still active.
    (if i use appletviewer.. every thing works perferctly)
    2. on my web page, if i click again to open my appet window it refreshes my applet window again ....if it 's already opened. in other words, my applet does not really gets reloaded from my webserver..
    Please advise..
    Here is my HTML Code
    index.html
    <HEAD>
    <SCRIPT TYPE="text/javascript">
    <!--
    function popup(mylink, windowname)
    if (! window.focus)return true;
    var href;
    if (typeof(mylink) == 'string')
       href=mylink;
    else
       href=mylink.href;
    window.open(href, windowname, 'width=840,height=630,scrollbars=yes');
    return false;
    </SCRIPT>
    <A
       HREF="NewJApplet.html"
       onClick="return popup(this, 'notes')">Loads Streamer </A>
    </HEAD>NewJApplet.html
    <HTML>
    <BODY>
    <P>
    <APPLET  code="NewJApplet.class" width=800 height=560></APPLET>
    </P>
    <HR WIDTH="100%"><FONT SIZE=-1>
    </BODY>
    </HTML>

    You can open a frame, and have a very small applet on your html page. Perhaps you can set the applet size to (0, 0).
    You could also open a new browser window that is not resizable and contains your applet in its full size and without the toolbar buttons and menubar. I think you need javascript to configure the new browser window like that.

  • PLease Help!! Wierd Problem!

    Hi.
    I'm having problems with my K7N420 Pro MoBo. I have one 128 MB strip of DDR PC2100 RAM in DIMM slot 1, and at post, it says that I have ~98,000K OK + ~32,000 shared memory.
    When I try to install Win2k, it throws a stop error about the memory. Also, I have a 20GB Maxtor HD, and it's on the primary IDE chain, and the jumper is on the Master setting, yet in the BIOS it says that it is the Primary Slave. I've checked all the cables and I think I have it hooked up correctly. Any help would be greatly appreciated.
    Thanks,
    Maerlma
    K7N420 Pro w/ on board video, sound, and ethernet
    Duron 1.3 Ghz
    128 MB PC2100
    20 GB Maxtor HD

    Ok,
    Here are the errors in the order that I get them,from boot to crash. (I am trying to install Windows 2000.)
    The hard drive is detected as the slave on the primary channel, which is incorrect.
    Nvidia Boot Agent, PXE-2.0 (Build 082 V1.04)
    PXE-E61: Media test failure, check cable
    Then after it boots the setup disc, it says:
    Disk I/O error: Status = 00000100
    After that it continues to load setup until it gets to the "Setup is starting Windows" message at the bottom of the screen, at which point it hangs with this displaying on the screen:
    ***STOP: 0x0000007F
    UNEXPECTED_KERNEL_MODE_TRAP
    It says to run a memory diagnostic, then consult the manufacturer's manual and all that jazz.
    I think the brand of RAM is Kingston, but I'm not for sure.
    Thanks again,
    Maerlma

  • Self sign applet without doing any change in policy file at client end

    Hi all,
    I developed an applet which make some webservice calls,
    I have given following permission in policy file at client end
    grant codeBase "http://nta2311:7001/-" {
    permission java.lang.RuntimePermission "createClassLoader";
    permission java.lang.RuntimePermission "getClassLoader";
    permission java.util.PropertyPermission "*", "read, write";
    permission java.net.SocketPermission "*", "connect, resolve";
    with these settings applet is working fine
    Now I want to make applet signed in order to avoid policy file modifications
    for testing I want to self sign it
    please help me

    Signing applets:
    http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
    second post and reply 18 for the java class file using doprivileged
    http://forum.java.sun.com/thread.jsp?forum=63&thread=409341
    4th post explaining how to set up your own policy with your own keystore
    Still problems?
    A Full trace might help us out:
    http://forum.java.sun.com/thread.jspa?threadID=656028

  • I have bought the whole CC and it says my trial has expired. But when i go to license the software, it asks for a serial number and i dont have one. Please help.

    I have bought the whole CC and it says my trial has expired. But when i go to license the software, it asks for a serial number and i dont have one. Please help.

    Sign out from Creative Cloud and sign in again using email ID using which you had purcahsed subscription:
    https://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
    Then launch CC apps which is asking for serial number and check.
    Still asks for serial number check the hosts file for Adobe entries , if present remove it and try to activate.
    1) Right click on the Finder icon on dock and select "Go-To Folder" option.
    2) You will get a text box, type-in below mentioned command and then hit 'Return' key.
    /etc
    3) It will open the etc folder, please look for file named "hosts" and copy the same to Desktop screen.it
    4)Double click on Hosts file , it will open it with TextEdit, If present Delete Adobe entries present inside Hosts file like 127.0.0.1 activate.adobe.com.......etc
    5)Copy and paste the Hosts file back to "Etc" folder.
    When asked Authenticate with your Mac password.
    Make sure to select "Replace" option when prompted.
    Then launch CC apps which is asking for serial number and check.

  • Please HELP!!! Signed Applet .. Printing Problem..

    Hi.. I wrote a signed applet that would send info to the client's printer.. I have it working in the appletviewer.. but when I try to send something throught the IE, it complains about missing java.awt.print package.. anyone had any problems with printing .. Please help..

    give more detail!

  • Please HELP !!! Signed Applet & Java Media Framework(JMF)

    Hi,
    I have written a self signed applet that is used for Recording voice running in browser:
    The tag that I've given is as follows:
    <OBJECT
    classid = "clsid:CAFEEFAC-0014-0001-0000-ABCDEFFEDCBA"
    id="recordApplet"
    codebase = "http://java.sun.com/products/plugin/autodl/jinstall-1_4_1-windows-i586.cab#Version=1,4,1,0"
    WIDTH = 268 HEIGHT = 27>
    <PARAM NAME = CODE VALUE = "RecWindow">
    <PARAM NAME = ARCHIVE VALUE = "jmf.jar,sound.jar,SignedRecWindow.jar">
    <PARAM NAME = "soundtrack" VALUE="testFile.mp3">
    <PARAM NAME = "type" VALUE = "application/x-java-applet;jpi-version=1.4.1">
    <PARAM NAME = "scriptable" VALUE = "true">
    <PARAM NAME = "MAYSCRIPT" VALUE = "true">
    </OBJECT>
    I've also signed jmf.jar as well as sound.jar that come in JMF 2.1 and am including it the archive. These jars are downloaded on client machine.
    My code works perfectly BUT only when JMF 2.1 is installed on the clients machine else I get a RunTime Exception stating "no permission to capture from applet".
    JMF FAQ states that If a user chooses to allow playing back locally stored media files or saving media files locally, he/she can do so by making use of a policy file. http://java.sun.com/products/java-media/jmf/2.1.1/faq-jmf.html#jmf2-applet-run
    My requirement is that once the user has agreed to the signed applet to run then there should be no need to install JMF rather use the jmf.jar that is downloaded on client machine.
    Also how can I grant the permission (permission javax.sound.sampled.AudioPermission "record";) to my applet in client computers ?
    The client should not be asked to add any files (policy) by itself, all must be transparent for him.
    Thanks in advance.
    Vipin.

    I too have been trying to get Java JMF sound recording to work via webstart. No luck so far.
    I even tried playing (security.AllPermissions) with .java.policy file in the user's home directory and even modifying java.policy in the JRE/lib/security directory. No luck there too!
    I also added security.AllPermissions to the javaws.policy in the JRE/jawas/javaws.policy file. Still no luck!
    Any idea, anyone?

  • NIGHTMARE! Signed Applet - No Access. Please Help.

    Hi:
    I'm trying to make a signed applet gain access to my directory structure.
    I created a simple applet to test with one line:
    sErr = System.getProperty("user.dir");
    The code is below.
    I sign it using the following:
    keytool -genkey -keyalg rsa -storepass MyCerts
    As you can see I'm using the default keystore but I've tried it by using -keystore MyKeystore too.
    It runs me through all the questions which I answer, no problems.
    Then I sign it:
    jarsigner -signedjar SSignedApplet.jar SignedApplet.jar MyCerts
    It asks for the passwords which I enter.
    It completes without error and the SSignedApplet.jar file shows up in the directory.
    If I open the signed jar file it has all 3 of the files in the META-INF folder and the Manifest file looks right to me.
    I upload the jar and the Default.asp file to a Web server (I've tried localhost and a remote host).
    I open the page and the pop up comes up asking if I want to trust the unverified applet. I click 'Run'.
    Once the applet is 'Started' I click the 'Get Properties' button and I get the error:
    access denied (java.util.PropertyPermission user.dir read)
    I've tried 2 examples that work fine on my machine (that I didn't write).
    The first is by Francois Orsini (Derby Demo) and the other is by Laura MacDougal (successfully wrote a file to my user.dir directory).
    No matter what I do, I can't sign an applet and make it access anything.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html lang="en-US">
    <head>
    <script language="JavaScript" type="text/javascript">
    <!--
    function getProp()
         oApplet = document.SampleApplet;
         oApplet.getProp();
         alert(oApplet.sErr);
    // End SCRIPT -->
    </script>
    </head>
    <body bgcolor="#ffffff" style="margin:0px auto;width:800px;padding:0px">
    <form name="fmLogin" action="" method="POST">
    <table width="650" align="center" cellpadding="0" cellspacing="0">
         <tr>
              <td>Login</td>
              <td><input name="Login"></td>
         </tr>
         <tr>
              <td>Password</td>
              <td><input name="Password"></td>
         </tr>
         <tr>          
              <td colspan="2"><input type="button" onclick="getProp();" value="Get Property"></td>
         </tr>
    </table>
    </form>
    <APPLET CODE="SignedApplet.SampleApplet.class" WIDTH=1 HEIGHT=1 NAME="SampleApplet" ARCHIVE="SSignedApplet.jar"></APPLET>
    </body>
    </html>
    package SignedApplet;
    import java.applet.*;
    import java.io.*;
    import java.util.*;
    public class SampleApplet extends java.applet.Applet {
        public String sErr = "";
        public void init() {
            // TODO start asynchronous download of heavy resources
        public void getProp()
            try
                sErr = System.getProperty("user.dir");
            catch(Exception exp)
                sErr = exp.getMessage();
        // TODO overwrite start(), stop() and destroy() methods
    }

    Thank you for reading my reply in your other thread:
    http://forum.java.sun.com/thread.jspa?threadID=762212&messageID=4368224#4368224
    If you've really run through it you would have known that code called from
    javascript is not trusted and you have to use doprivileged (hey its in bold...
    why would that be?).
    Call getProp from init within the applet and you've got no problem.
    As for your imageIcon, creating one with string as a parameter
    the string is used as input for a File. I had no problem loading one with a signed applet.
    I'll post the example later in your other thread.

  • Help need in Signed Applets.....Urgent

    Hi,
    I am stuck with a problem. Please help me out.
    The requirement is :
    I have an applet which has to run an executable which produces a .txt. The applet should use this .txt to produce its output.
    I made the applet into a signed jar and ran the executable to produce the .txt . But the .txt is outside the jar file and I am not able to use it to create the result.
    How do I use the .txt now?? Is the method that I am trying proper or should I use some other method?
    Another doubt is, when I run the .html of the applet code (which is in the server), is it cached in the client???

    I made the applet into a signed jar and ran the
    executable to produce the .txt . But the .txt is
    outside the jar file and I am not able to use it to
    create the result.
    How do I use the .txt now??Hand the user a JFileChooser and let him tell you where the file is, or loook at the exe to see whether you can specify an output directory as a parameter.
    Is the method that I am
    trying proper or should I use some other method?It's highly ugly, but I can't think of anything else.
    Another doubt is, when I run the .html of the applet
    code (which is in the server), is it cached in the
    client???Yes. No need to download the same stuff each time. The details are browser-specific.

  • -- Help for signing Applets --

    Good Morning Friends,
    I have completed one Java project. I need to put it to work. But I need to get the applet signed for it to work perfectly.
    I did subscribe yesterday with Verisign/Thawte. But they need to e-mail me which I don't know how much time they take.
    If anyone of you have got registered with VeriSign/Thawte, can you please help me in getting the applet signed. I would appreciate your help. Please.
    Bye.

    If you do not get an answer here, why not try [url http://forum.java.sun.com/forum.jspa?forumID=63]this specific forum?

  • Signed Applet--please tell me something about the basics of it

    Hi guys .
    I am in the process of developing a GUI using an applet.The GUI involves reading a file given as input and parsing it for punctuaion errors.
    This applet has to write to a file called "errors.txt" to report about errors.I came to know from a friend that applets do not have access permissions to write files to disk .This feature can be achieved using Signed Applets .If there is anyone who can tell me about the basics of Signed Applets then please help me as to how I can make changes in my program and elsewhere so that my program is able to do that.
    My program is as follows(if youm need it):
    import java.io.*;
    import java.awt.*;
    import java.applet.*;
    public class textcopy extends Applet
    public void init()
    Choice ch=new Choice();
    ch.addItem("Click Next to continue.");
    ch.addItem("Framework Properties");
    Label l1=new Label(" ");
    Label nm=new Label("Please specify the errors that you want to be checked for in the file:");
    Label a1=new Label("Write the pathname here:");
    ta=new TextArea(1,20);
    B=new Button("OK");
    Checkbox b1=new Checkbox("Punctuation errors");
    Checkbox b2=new Checkbox("Finding whether a key string is misspelt");
    Label l2=new Label("Please select the key string from one of these:");
    add(a1);
    add(ta);
    add(B);
    add(l1);
    add(nm);
    add(b1);
    add(b2);
    add(l2);
    add(ch);
    TextArea ta;
    Button B;String str="";
    public boolean action(Event e,Object obj)
    if(e.target instanceof Button)
    repaint();
    return true;
    return false;
    public void paint(Graphics g)
    String s=ta.getText();
    try{
    FileReader fin=new FileReader(s);
    PrintWriter fout=new PrintWriter(new BufferedWriter(new FileWriter("c:\\avichal\\java\\errors.txt")));
    parse(fin,fout);
    fin.close();
    fout.close();
    catch(IOException e)
    Label avi=new Label("arsehole!!!");
    add(avi);
    //g.drawString("SOme Error",500,300);
    //e.printStackTrace();
    public static void parse(FileReader fin,PrintWriter fout)throws IOException
    String str="Punctuation Errors:\n"; /*Heading*/
    fout.println(str);
    fout.println("========================================================");
    int i=0,j=0,k=0,l=0;
    j=fin.read();
    do{
    do{
    i=j;
    j=fin.read();
    }while((!((char)i=='('&&(char)j=='R'))&&(j!=-1));
    if(j==-1)break;
    j=fin.read();
    j=fin.read();
    j=fin.read();
    j=fin.read();
    j=fin.read();
    j=fin.read();
    j=fin.read();
    char refnum[]=new char[5];
    l=0;
    while((char)j!=')')
    j=fin.read();
    if((char)j!=')')
    refnum[l++]=(char)j;
    fout.write("REF. NUM: ");
    for(int a=0;a<l;a++)fout.write(refnum[a]);fout.write(": ");
    j=fin.read();
    l=0;
    do{
    i=j;
    j=fin.read();
    if((char)i=='\n')
    k++;
    //'k' gives the line no. and finally the no. of lines and neglects the lines before first occurence of "Ref Num
    if(((char)i==',')&&((char)j!=' '))
    l++;
    String st=l+". error at line number "+ (k+1) + ": There should be "+
    "a space after comma(,) \n";
    fout.println(st);
    if(((char)i=='.')&&((char)j!=' '))
    l++;
    String st=l+". error at line number "+ (k+1) + ": There should be "+
    "a space after period(.) \n";
    fout.println(st);
    if(((char)i=='.')&&((char)j=='.'))
    l++;
    String st=l+". error at line number "+ (k+1) + ": There should not be "+
    "two periods(.) together \n";
    fout.println(st);
    if(((char)i==' ')&&((char)j=='.'))
    l++;
    String st=l+". error at line number "+ (k+1) + ": There should not be "+
    "a space before a period(.) \n ";
    fout.println(st);
    }while((!((char)i=='-' && (char)j=='T')) && j!=-1);
    fout.println(" ");
    /*if(l==0)
    fout.println("No errors!!!!");*/
    if(j==-1)break;
    }while(j!=-1);

    You need to understand many concepts before you start work on .
    Here is some useful links for you
    1. http://mindprod.com/jgloss/signedapplets.html
    2. http://java.sun.com/products/plugin/reference/codesamples/index.html examples of 1.4 plugin
    3. http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/contents.html
    4. http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/faq/basics.html
    5. http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/rsa_signing.html

  • My phone wont let me download anything even free stuff or update.it keep saying something wrong with my billing info so i fix it but still cant download.I signed out sign back in still nothing please help i'm getting angry

    My phone wont let me download anything even free stuff or update.it keep saying something wrong with my billing info so i fix it but still cant download.I signed out sign back in still nothing please help i'm getting angry

    If it says your billing info is wrong that means that your credit card issuer is refusing to approve your account. You will have to solve the problem with your bank or credit card company.

  • I have paid for Creative Cloud - illustrator CC 1 year monthly plan, but it still show "Trial Expired". I have tried to sign in and sign out creative cloud many times, but still can't work. Please help!

    I have paid for Creative Cloud - illustrator CC 1 year monthly plan, but it still show "Trial Expired". I have tried to sign in and sign out creative cloud many times, but still can't work. Please help!

    Does your Cloud subscription show on your account page?
    https://www.adobe.com/account.html for subscriptions on your Adobe page
    Also,
    This is an open forum, not Adobe support... you need Adobe support to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • Help....I am trying to set up iClould on my pc....the set up was complete....when I try to sign in to set up it says the Apple ID is valid but is not an iCloud account.  Please help me and tell me what I am doing wrong.

    Help....I am trying to set up iClould on my pc....the set up was complete....when I try to sign in to set up it says the Apple ID is valid but is not an iCloud account.  Please help me and tell me what I am doing wrong. Thx

    Hi DesCoop,
    You must initiallly activate iCloud from an IOS device or a Mac. You cannot inititally activated from a PC.
    Sorry.
    GB

  • Problem with signing in with my skype please help ...

    i can not sign in with my skype and i can not log in even via the site here and i do not remember the email i used when i registered for the skype name it was more than 2 or 3 years ago and i can not recover it my skype name: [Redacted for privacy.]
    please help me with that 
    thank you

    pureform,
    What is the serial number of the card (on a white sticker on the card)? I've assumed it is an Audigy , and it's been a long time since I had one of those, so I'm not sure what you mean by "test devices" that lets you test the mic. Are you saying that with mic selected as REC source, when you speak into the microphone, you can hear yourself from the speakers? Also, if you have the Creative Diagnostic application, try running that. (Look for it in the Audigy entry in the Creative Folder in your Program List.)

Maybe you are looking for

  • OWB runtime user/owner installation error

    While installing OWB 9i, the following error has come: oracle.wh.util.DebugUtility: java.sql.SQLException: ORA-29540: class oracle/aurora/rdbms/security/PolicyTableManager does not exist oracle.wh.util.DebugUtility: ORA-06512: at "SYS.DBMS_JAVA", lin

  • Can the included instruments with LPX be installed on a secondary drive?

    Hi Guys, I've just taken the plunge and purchased Logic Pro X - upon first opening, it shows a message that "Logic Pro X is currently downloading an essential collection of instruements... (etc)" I'm wondering if, once these are downloaded, it is pos

  • Is it possible to call a CMD or VBS within MAXL? Need script help

    Hello, I have a CMD script that uses MAXL to execute Essbase backups, the details of which are located in a txt file. That works fine, and I have the logs being sent to a folder. What I am trying to accomplish is AFTER it is finished running the back

  • Recrods not extracted into BW

    Hi, I'm using a Function Module for extracting data from R/3. I tested the DataSource  using RSA3, its working fine and pulling records for the specified criteria. Now, I'm trying to pull data into BW by specifying the same selection criteria as in R

  • Data Change Capture

    How do I capture only changed data in Oracle database.? Thanks