Problems with Applets notinited with SSL

This is a repost from the java programming area:
http://forum.java.sun.com/thread.jspa?threadID=5153036
I have an applet that will not init in the secure area, but works perfectly fine in the public area.
I'm pretty close to the end of my rope on this one, so if there is anyone that can help me on this I will be extremely grateful.

which error does IE tell you?

Similar Messages

  • Problem on Applet - Reloading with eixsting Components

    Hi All,
    I have developed one application for chatting purpose.. I have embeted with JSP. that application contains Login/logout based.. suppose if i try to login two windows in sample browser am getting previouse window applet components with current applet window.
    plz give me some tips..
    Thanks and regards

    hi
    Actually in my application it has 3 buttons.. if am try to login in same application in same browser. it will show 3x2 = 6 buttons.. how to remove the existing components.. am using single tone pattern..

  • About Applet Notinited

    Hi
    I am a new in applet. i run htm on local iis. a small code with applet notinited error. It is in fact a with-parameter-version of http://javaboutique.internet.com/Blink/. I can run the sample applet perfectly
    Applet code:
    import java.awt.*;
    import java.applet.*;
    public class MyBlink extends Applet
    String newlbl;
    public void init()
         newlbl = getParameter("lbl");
    public void paint(Graphics g)
         g.drawString(newlbl, 25, 25);
    The code in htm calling applet:
    <script type="text/javascript">
    document.write("<applet code='MyBlink.class' width='300' height='300'><param name='lbl' value='hellloworld!'></applet>")
    </script>
    Any advise is appreciated.
    shxj99

    harmmeijer
    Thanks for your reply.
    The reason is my forgetting to move XX.class to the running directory.
    One more question here.
    Before moving mouse in the applet area, the third and forth codes using double buffer in the following page initate with blank background. Please tell me why and how to handle it.
    http://www.dgp.toronto.edu/~mjmcguff/learn/java/07-backbuffer/
    Thanks again!!
    Jeffrey

  • Problem with Applets in same page

    Hai to all,
    I am having a problem with GUI in applets
    My first class extends a JPanel named A_a
    import javax.swing .*;
    import java.awt.*;
    import java.awt.event.*;
    public class A_a extends JPanel
    JButton jb;
    JTextArea text;
    public A_a()
    setLayout(new FlowLayout());
    jb=new JButton("Click me");
    //add(jb);
    text=new JTextArea(5,20);
    add(text);
    public void text_appendText(String aa)
    System.out.println("I AM IN A_a");
    text.append(aa);
    text.revalidate();
    revalidate();
    /*public static void main(String ags[])
    A_a a = new A_a();
    JFrame frame=new JFrame();
    frame.getContentPane().add(a);
    frame.pack();
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) { System.exit(0); }
    frame.setSize(200,200);
    frame.show();
    and then I am using other class B_b which is an applet carries a exitsing panel (A_a) inside it .
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class B_b extends JApplet
    public A_a a;
    public void init()
    a=new A_a();
    getContentPane().add(a);
    public void text_appendText(String aa)
    final String aaa =aa;
    new Thread(new Runnable()
         public void run()
              a=new A_a();
              a.setBackground(new java.awt.Color(255,200,200));
              System.out.println("I AM IN B_b");
              a.text.append(aaa);
              a.text.revalidate();
              getContentPane().remove(a);
              resize(500,500);
         }).start();
    and the I am using the second applet C_c in which by performing a button action the old panel A_a should get removed and replace the new panel D_a (which is not here )in the applet B_b with all other components(namely button , text fields etc)
    import javax.swing .*;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import java.util.*;
    public class C_c extends JApplet implements ActionListener
    JButton jbt;
    JTextArea jta;
    public void init()
    getContentPane().setLayout(new FlowLayout());
    jbt=new JButton("Click me");
    jbt.addActionListener(this);
    getContentPane().add(jbt);
    jta=new JTextArea(5,20);
    getContentPane().add(jta);
    public void actionPerformed(ActionEvent ae)
    Enumeration e = getAppletContext().getApplets();
    Applet applets = null;
              while(e.hasMoreElements())
                   applets=(Applet)e.nextElement();
                   if ( applets instanceof B_b)
                             System.out.println("I AM CLASS C_c");
                             ((B_b)applets).text_appendText(jta.getText());          
                             ((B_b)applets).remove());
                             ((B_b)applets).getContentPane().add(D_d);
    both the applets C_c and B_b are in same browser page
    How can i achive that pls help .

    please help me its urgent for my project

  • Problems with applets.

    Hi to everybody.
    I've got a problem with simple applets.
    I've built several applets using Swing components (JApplet, JPanel, JButton, etc.)
    In my browser, the background color of my applets does correctly appear.
    But none of my components does !!!! No text fields, no buttons etc.
    Can someone explain to me which could be the reason of that ?
    Thank's.

    I've just tried appletviewer. And I discovered that there is a problem while trying to acces to a jpeg file for my JBuutons and JLabel.
    Appletviewer considers these files are on the client machine and refuses the acces.
    But when I try my site, the server is my computer too ! So the jpegs are on the server side !
    Furthermore, when I start my web page (that contains my applets), nothing does appear (no exception) in the java console...
    How can I solve this problem (I'm newer with applets)?

  • Problem downloading applet in W2K with SP4.

    Hi,
    We are using a Security Applet in our web application for validation purposes. We were using W2K Professional / W2K Server with SP3 and Sun JRE 1.3.x. The application was working as expected.
    We are now testing with W2K Server with SP4 (to upgrade to SP4). The current testing environment is W2K Server with SP4 and Sun JRE1.3.x. Now with the setup, we are facing a problem in downloading the applet (Security Applet). The downloading applet fails and the subsequent loading as well.
    Please advice. Does it requires any particular settings to be done at Client?
    The specs are
    Windows 2000 Server, SP4
    IE 6 SP1
    Sun Jre 1.3.x
    Problem:Downloading applet fails.
    PS: When we test with SP3, we can see the applet downloaded (CAB File), with SP4 it was not found.
    Thanks in Advance,
    Prakash

    Does the w2k sp4 server host your pages and applet?
    If yes then why install the SUN JRE 1.3 on the server, doesn't the client need this?
    Is the cab format supported by SUN jre or is it meant for msjvm and if so why is the client trying to open
    the cab with sun jre?
    http://java.sun.com/j2se/1.4.2/docs/guide/deployment/deployment-guide/upgrade-guide/article-02.html
    What's on the server doesn't have anything to do with the applet. The server is
    just serving it. Forcing the client/consumer of the html page with the applet is trying to open an applet
    with sun jre while the applet is ment for msjvm causes the error.
    The client can fix this by opening IE and check under tools -> internet options -> advanced -> UNCHECK
    the use sun jre ... for <applet tag. For the XP machine you might have a problem. Some of the don't have
    the msjvm at all so there is nothing to run the <applet, I tried to download it at microsoft but was unable
    to find it.

  • HT201412 I have a problem connecting to the server (SSL problem) on my new Apple ipad.  I was supplied with a new ID password, but I am unable to get into my settings and email. Could someone please offer a suggestion?  Thanks!  A.A.

    I have a problem connecting to the server (SSL problem) on my new Apple Ipad (iOS6).  When submitting my Apple ID password, I am prevented from signing in to a secure connection due to an SSL problem.  Any suggestions ??  Thank you! 

    Sounds more like you have a problem with your apple id. For starters go to that page click manage my apple id and singn in. If you can't sign in reset password.
    https://appleid.apple.com
    if you can sign in there, try to sign in to itunes on your computer.

  • Problem connecting to LDAP with SSL enabled

    Hi,
    I'm trying to connect to Active Directory with JNDI, but I got a few problems.
    I use Win2003 server, I tried the code from adler_steven (very good and works well), but I got a problem when I want to connect over TLS.
    Apparently, I have to install the SSL/TLS on the machine. I tried to follow the howto http://support.microsoft.com/default.aspx?scid=kb;en-us;321051, but i got an error when i create a new certifcate :
    Expected INF file section name 0xe0000000 (INF:-536870912) request.inf.
    I tried differents stuff but without results.
    I'm not able to install it, so when I run the code I've got the errors :
    IO Exception, Problem creating object: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.
    It s a first time that I use the JNDI API and LDAP (Active Directory ) sorry for any incomprehension, but I really need to finish the program.
    Thanks in advance
    cyroul

    Hi,
    I'm trying to connect to Active Directory with JNDI, but I got a few problems.
    I use Win2003 server, I tried the code from adler_steven (very good and works well), but I got a problem when I want to connect over TLS.
    Apparently, I have to install the SSL/TLS on the machine. I tried to follow the howto http://support.microsoft.com/default.aspx?scid=kb;en-us;321051, but i got an error when i create a new certifcate :
    Expected INF file section name 0xe0000000 (INF:-536870912) request.inf.
    I tried differents stuff but without results.
    I'm not able to install it, so when I run the code I've got the errors :
    IO Exception, Problem creating object: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.
    It s a first time that I use the JNDI API and LDAP (Active Directory ) sorry for any incomprehension, but I really need to finish the program.
    Thanks in advance
    cyroul

  • Problem in Applet while communicating with Javascript

    Hi,
    I’m facing a problem with applet. Applet calls JavaScript methods and vice versa. Applet works fine with JRE 5 to JRE 6 up to build no 1.6.0._7 but it fails with build no 1.6.0_10.
    The problem description is given below:
    After embedding applet in my HTML page using <OBJECT> tag, I’ve to check either any problem during applet’s execution, I want to get the error reason by calling my defined method getErrorReason() in applet that returns the error reason, I call the getErrorReason() against the applet’s object in JavaScript immediately after embed applet code in my HTML page, a JavaScript errors occurs and my applet fails to perform its execution.
    JavaScript error: Object does not support this property.
    The error points to the HTML page area where I’m calling getErrorReason() against applet object.
    The above JavaScript error occurs after the successful completion of Applet’s init(). I’m facing this problem only in JRE 6 build 1.6.0_10-b33.
    Please suggest me any solution.
    Thanks in advance.
    Regards,
    Israr Ahmed

    Hi Bharath,
    Even i got similar error and i tried deleting the below(Attaching the stack trace is always better way.)
    1) delete the folder ‘workspace’ or rename(including all files and subfolders) in the path D:\Documents and Settings\lzcr8r\Documents\SAP\workspace
    2) delete all .dtr/.dtc/.metadata directories in your personal folder (e.g. C:\Documents and Settings\lzcr8r).
    Restart the IDE once you are done with the above steps.
    Second part to increase the virtual mem
    1) RtClick on the Shortcut of NWDS -->Properties and in the Target put the below
    "C:\Program Files\SAP\IDE\IDE70\eclipse\SapIde.exe" -vmargs -Xms512m -Xmx1536m  "C:\j2sdk1.4.2_08\bin\javaw.exe"
    2) You can also try  Creating a bat file with the complete path of your IDE and start your ide from the bat
       content in the bat eg: "C:\Program Files\netbeans-4.1\bin\netbeans.exe" -vmargs -Xms512m -Xmx1536m
    Here -Xms512m is the min JVM size and -Xmx1024m is the max JVM size.
    You can place this batch file anywhere and double click the batch file.
    It will automatically start your IDE
    3) if you are using Tomcat you can try creating an env variable and assign Value
    Variable Name:  CATALINA_OPTS
    Variable Value:  -server -Xmx800m
    please award points if usefull.
    Regards
    Souza
    Edited by: Souza Aluri on Apr 9, 2008 9:46 AM

  • 31.3.0 hangs when connecting to my IMAPS server (problem with intermediate certificates or SSL in general?).

    After update to 31.3.0 Thunderbird hangs when connecting to IMAPS server aie.de (intermediate certificates in chain). No error message is given, Thunderbird just hangs with out updating the subject lines of the inbox.

    It is a configuration problem of the courier imap ssl daemon, resolution is shown [http://xf.wiki.mithi.com/index.php/Error_observed_in_/var/log/messages_log,_imapd:_couriertls:_accept:_error:1408F10B:SSL_routines:SSL3_GET_RECORD:wrong_version_number#Resolution here]

  • A new webcam with applets  problems

    hi
    I have some doubt abot webcam with applets
    here are my questions......
    1. There is client(s) and server systems.....
    webcam is connected to clientside and image from webcam should be captured from
    client(s) and to be sent to server ,through web only. Is there are any possibilities to do this
    thing without applets..?
    if so please tell me abt that..
    2. with applets is there any methods to access client webcam without using signed aplets and
    certificating (IE such as setting browser are some settings allow all applets in client machine .etc)
    3. i heard about we can have our own signature and certificates (without aproved by any CA)
    is it possible if so how can we achive that..?
    Im a student doing my projects,I have gone through several applets and webcam related JMF forums but all are old dated and may be new technologies arrived and I couldnot able make clear my doubts comfortably...
    sorry for rising old topic but
    it wold be gracefull if anybody clear my doubts please kindly give me the ans.
    thanks in advance

    Hi
    Let me take a crack at this, :)
    1) No
    2)Anything that is required to access anything of a clients computer, i.e com ports,files and resources needs a signed applet.
    3)http://java.sun.com/developer/technicalArticles/Security/Signed/
    And yes you have to work with
    http://java.sun.com/products/java-media/jmf/
    in order to capture images
    HTH
    :)

  • Transferring files from users mashines on the server. Uploading with applet

    I'm trying to create applet that would do uploading of user file on the server.
    I'm woundering, Is there any ways to use java applet to open a file on user mashine into a stream and transfer it thought socket into
    server? Is there any good solution that do uploading with java applet? (I can't use CGI or PHP)
    I just noticed that applets don't support FileInputStream. How could I in general get information from user file?
    Ok. Thanks for ideas that you gave me. But there are useless. All that I can use is only HTTP. Unfortunately no FTP, no Web Start application.
    looking for help

    well, i don't work a lot with applets because of their inherent limitations. but my guess would be that you have to somehow use a signed applet. of course that doesn't help with the FileInputStream problem you are talking about.
    if i were going to do it and i couldn't use FTP, i'd write a WebStart app that calls servlets (sending it byte arrays) and the servlets will construct the files on the server...
    i have no clue how you are going to do what you want...

  • I need help with Applets and Multithreading

    [hello all.  first time poster. big fan of java.]
    now to the important matter: Applets and Threads
    =======================================
    1) I have an applet with that implements the runnable interface, and has one thread (and a simple animation). If I try to view this applet in the applet viewer with JGrasp, it spits an insane error telling me
    "java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)"
    but, if I run the applet through a web browser, by putting it in an html document, it runs correctly, without error
    What on earth is wrong, and how do I fix it?!?
    2) I want to put 2 threads in my applet?
    If I implement the Runnable interface, I can only have one Run() method in my applet, right?
    So how do I define behaviour for 2 threads when I only have one run method in which to define the behaviour? Can I use two threads with the runnable interface, or do I have to make objects of my own defined thread classes?
    3) I tried to make 2 threads in my applet by creating my own thread classes, and instantiating them in my applet (instead of implementing the runnable interface).
    I still get the same insane error as I mentioned in my first point (which I expected), except now, the applet won't work even when viewed through a web browser!!
    Please please help me. I am frustrated beyond belief (at what is probably a very simple problem)
    I have searched and searched all over and found no answers on this

    If I try to view this applet in the applet viewer with JGrasp, it spits an insane error telling me
    "java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)"Don't know anything about JGrasp, but it runs with pretty tight security - thats what this insane error is all about. Use the appletviewer or a browser.
    If I implement the Runnable interface, I can only have one Run() method in my applet, right?Correct
    So how do I define behaviour for 2 threads when I only have one run method in which to define the behaviour?
    Can I use two threads with the runnable interface, or do I have to make objects of my own defined thread classes?You can create two Runnable implementations (classes) in your applet.
    example (missing code)
    class MyApplet extends Applet {
      void doSomething() {
      void doSomethingElse() {
      void startThreads() {
        Thread t = new Thread(new Runnable() { public void run() { doSomething();}});
        t.start();
        t = new Thread(new Runnable2());
        t.start();
      class Runnable2 implements Runnable {
         public void run() {
           doSomethingElse();
    }If the above seems confusing, read up on anonymous and inner classes.
    3) I tried to make 2 threads in my applet by creating my own thread classesTry not subclassing thread - this causes a security check

  • My signed applet works with 1.4.1 plugin but it doesn't with 1.4.2_02 !!!

    Hi there, I've got problems trying to sign an applet with Java 2. That applet is an FTP which is used for uploading files throught the Browser (just upload).
    I signed my applet with SDK 1.4.1 when I surfed the page which contains it, the applet works properly (the browser had Java plug in 1.4.1) ... the certificate appeared (thawte), I clicked "Yes" for agreeing the certificate .. everything went fine. The problem was when I tried to navigate that page with a Browser with Java Plug in 1.4.2, I agreed the cetificate, but when I tried to upload a file with the applet the following error happens :
    ava.security.AccessControlException: access denied (java.io.FilePermission C:\install\slsk151.wma read)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkRead(Unknown Source)
         at java.io.FileInputStream.<init>(Unknown Source)
         at java.io.FileInputStream.<init>(Unknown Source)
         at FtpSigned.upload(FtpSigned.java:463)
         at FtpSigned.run(FtpSigned.java:526)
         at java.lang.Thread.run(Unknown Source)
    after that I downloaded the SDK 1.4.2_02 and I installed the plugin
    1.4.2_02 (build 1.4.2_02-b03)
    I signed tha applet again and it didn't work ...
    please ... I need help!
    Thanks in advance.
    Nico.

    Funny, I had a problem going to _03 when it worked fine in _02. Symptoms: In IE, Sun's plug-in displays security warning prompt for signed applet, and, even though the user clicks YES to accept, all priv operations cause exceptions. It sounds like what you're referring to, but I'm wondering why I didn't see it in _02. Anyway, I'm going to look into the doPriv... stuff to see if that fixes my prob and I'll report back FWIW.

  • Saving a file with applets

    Hello my name is Lino and I'm Portuguese (sorry the bad English)
    I have a problem, I want to know how do save a .jpg file with the FileChooser and FileWriter, that is in the Server and I want to save a copy in my computer, but it must with Applets!
    Please help me
    Tanks
    LP

    Hi,
    because of security resons with applets, it is not possible to store an .jpg on your hard drive.
    Bernd

Maybe you are looking for

  • How do I make multiple screens transition?

    I have figured out how to make multiple camera angles play onscreen at one time, but I would like the layout to change while the video plays, how do I do this (or at least get started)?  I realize that this is probably basic, but I am making the move

  • Run time error COMPUTE_BCD_OVERFLOW coming at MFBF

    Hi Guru's User is getting runtime error at MFBF as below: Runtime Errors         COMPUTE_BCD_OVERFLOW Exception              CX_SY_ARITHMETIC_OVERFLOW This coming at production but not coming at test server. when user is trying to enter quantity 6605

  • I can't get the movie to play right, it keeps pausing and skipping

    I bought a movie on itunes a when i try to watch it keeps pausing and skipping. how do i fix this, so i can watch it

  • Possible to Zoom in and out on a Video?

    I am using Adobe Premiere Elements 4.0 on Vista. I have a video clip of my son playing hockey, and I'd like to zoom in and out on him to show the audience where he is so they can follow him during the sequence. Any ideas on how I can do this? Alterna

  • Sony NX5 camcorder

    I am thinking of buying a new camcorder, either a Sony NX5 or a Sony Z5. Is there anyone here who uses an NX5 successfully with PPro CS6? Thanks