Java Plug-in 1.1.2 problems

Hi All,
We are experiencing some problems with an application here at work.
The applet runs from a website.
The application is quite old, it uses Java Plugin 1.1.2. The applet works fine on Pentium 3 > machines, but not on Pentium 4 machines.
Maybe it has something to do with the version of Java the p4 machines are running?
I am unfortuanitely not able to edit to applet source code.
Any ideas on how I can fix this will be really appreciated!!
Thanx guys.
Here is the code that calls the applet.
<!--"CONVERTED_APPLET"--><!-- CONVERTER VERSION 0.5 -->
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-0805F499D93" WIDTH = "760" HEIGHT = "570" ALIGN = "baseline">
<PARAM NAME = CODE VALUE  "de.siemens.oen.webcsc.frame.CSCClient.class" >
<PARAM NAME = ARCHIVE VALUE = "package.jar" >
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.1.2">
<PARAM NAME = "SERVER" VALUE ="localhost">
<COMMENT>
           <EMBED type="application/x-java-applet;version=1.1.2"               java_CODE  "de.siemens.oen.webcsc.frame.CSCClient.class"             
java_ARCHIVE = "package.jar" WIDTH = "760" HEIGHT = "570"
ALIGN = "baseline" SERVER = "localhost" >
            <NOEMBED>
</COMMENT>
                        Your browser dosn't support Java!</NOEMBED> 
            </EMBED>
</OBJECT>
<!--<APPLET  CODE  = "de.siemens.oen.webcsc.frame.CSCClient.class" ARCHIVE = "package.jar" WIDTH = "760" HEIGHT = "570" ALIGN = "baseline" >
PARAM NAME = "SERVER" VALUE ="localhost">
Java wird von Ihrem Browser nicht unterst�tzt!
</APPLET>-->
<!--"END_CONVERTED_APPLET"-->

...but than again I'm using Linux and I know where all my files are.

Similar Messages

  • Java Plug-in 1.3.1_08 problem. IE stucks, running Applet, on setVisible met

    Hello,
    I have a problem, that appears in Plug-in 1.3.1_08 (1.4 is ok). The Microsoft Internet Explorer sucks, running my Applet.
    It occurs, when AWT Frame uses method show().
    In a correct situation (for example Java Plug-in 1.4), the applet appears in a separate window (not into IE). When the problem occurs, the Applet's window does not appear and the Internet Explorer (and Java console) are stuk in.
    When I change the mehod to setVisible(true), the problem still exists.
    In the both cases the Applet appears and works correctly for Java 1.4 and more.
    Please help.

    Have you check bugs.sun.com to see if this is a known issue? If it isn't there,
    file a new bug.

  • Java Plug-in problems following installation of Oracle 9i

    I have been experiencing repeatable problems with the Sun Java Plug-in following installation of Oracle 9i on our servers. Our installation of the Sun JDK 1.3.1_04 or higher seems to conflict with the Oracle installation. Following the install, navigating to any web page that includes an applet reference results in a plug-in error stating that it cannot locate the registry key HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.3.1_01. The key does exist however for the installed version of the plug-in. ie [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.3.1_07]. My only workaround to fix this is to add a new registry key 1.3.1_01 that contains the contents of the registry key for the installed plug-in (for example 1.3.1_07).

    The Oracle installation only inlcludes the JRE, which AFAIK isn't referenced outside the ORACLE_HOME directory. The internal JVM couldn't be causing the conflict either. Might be an installer bug of some sort, but not one I have heard of.

  • Java plug-in 1.4.1 proxy configuration issue causes JTextField TAB problems

    I have an applet that has multiple JTextFields in it. I recently updated my Java plug-in to version 1.4.1, and now using TAB to navigate among text fields does not always work when I first bring up a browser and load the applet.
    I've found, however, that if I open the Java Console and hit "p" (reload proxy configuration), and then reload my applet (hit Refresh/Reload on my browser), the Tab key works as expected. I did not have this issue with releases prior to 1.4.1.
    Any clue on how I can ensure proper proxy configuration upon initial instantiation of the browser? I've seen the problem in both IE 6.0 and Netscape 7.0.
    Note that the reloading of the proxy configuration only appears to be necessary once per browser session.

    The navigation isn't working. I click in the first text field to give the initial field focus. I then hit TAB and nothing happens. I have a key listener set up for the ENTER key, and this is also supposed to navigate to the next field via:
    ((JTextField)evt.getSource()).transferFocus();
    To see if there was a problem with my build environment or threads in my application, I came up with the following dummy applet:
    import java.awt.BorderLayout;
    import javax.swing.BoxLayout;
    import javax.swing.JApplet;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    public class TestApplet extends JApplet {
    public void init() {
    super.init();
    public void start() {
    JPanel myPanel = new JPanel();
    myPanel.setLayout(new BoxLayout(myPanel, BoxLayout.Y_AXIS));
    JTextField textField1 = new JTextField("Text Field 1");
    myPanel.add(textField1);
    JTextField textField2 = new JTextField("Text Field 2");
    myPanel.add(textField2);
    JTextField textField3 = new JTextField("Text Field 3");
    myPanel.add(textField3);
    getContentPane().add(BorderLayout.CENTER, myPanel);
    public void stop() {
    super.stop();
    I then compiled this applet using the following:
    javac TestApplet.java
    I then put together the following HTML file:
    <HTML>
    <HEAD>
    <TITLE>Test Applet</TITLE>
    </HEAD>
    <BODY MARGINWIDTH="0" MARGINHEIGHT="0" BGCOLOR="white">
    <APPLET
    CODE=TestApplet.class
    WIDTH=635
    HEIGHT=500
    ALIGN=left
    VSPACE=10
    HSPACE=10
    >
    </APPLET>
    </BODY>
    </HTML>
    The results are the same. I am not able to navigate using the TAB key until I bring up the Java console and then close it again. I would think that if this was a bug in 1.4.1_01, I would have seen it all over the forums. Any help would be greatly appreciated.

  • Problem in Opening Java plug-in

    I installed Jdk 1.4.2_07 version in my system.
    It got installed succesfully, but when iam trying to open the java plug in present in control panel, there is no response.
    I dont know what is the problem.
    Can anybody help me.
    Reply me ASAP.

    I installed Jdk 1.4.2_07 version in my system.
    It got installed succesfully, but when iam trying to open the java plug in present in control panel, there is no response.
    I dont know what is the problem.
    Can anybody help me.
    Reply me ASAP.

  • System.out Problem in Java Plug-in

    I have the following problem, anyone can help me?
    I have an application( Frame ) needed to be embedded in applet. The applecation has a lot of information output to console( by System.out ). When I embeded it into applet, these information will be output to Java Plug-in Console. In the beginning, there is no problem. But when the applet runs enough time, the output will be more and more, and the speed of the applet( in fact, the browser ) runs slower and slower.
    I don't want to modify my application at all( it is impossible ). I wonder there is any good suggestion to this problem, I guess, maybe there is an interface to make the Java Plug-in clear its console buffer periodically.
    Thanks in advance.

    There is a good reason for this.... the console in the java plug-in is essentially a JTextArea... and continually adding text to it via System.out.println or the like will make it slower the longer it runs..... periodically clearing the console would be the only solution without modifying the code......
    If you still need all that information you could redirect System.out to your own PrintStream and then instead of writing to the console little by little, you could save the original System.out (using something like:
    PrintStream origSysOut=System.out;
    ) and then later on in your app reset System.out=myPrintStream or something.... then just write the myPrintStream data to origSysOut every now and then or something....
    if you want a better example of this I've got a log facility class that I built based on this principal... it's also and easy way to capture stack traces into log files... and since you're just redirecting System.out or err it's easy to turn off the log file to use for debugging.... ok that's enough of a rant :)

  • Java Plug-in problem on Safari 4

    Hi all,
    I have installed Safari 4 for Windows and I have problems using Java applications while browsing : Even if I already installed last Java update , rebooted and installed the Safari Java plug-in from Apple.com website I still can't manage to use Java during my internet surfing...has anyone of you a problem like me?How did you solve it? please help meee
    Message was edited by: Xander90

    Can't help you as I have the same problem. Sorry.

  • Java Plug-In Problems !!

    Hey you guys...I have the OS X 10.6.7 with the updated Java (update 4) and I cannot open any of my works' hospital website links. I keep getting this message
    "The Java plug-in is not installed.
    The required version: 1.6.0_07".
    I've tried different links within the hospital's site and it's a no-go. I went on Mac's OS X Dev. Library to try to figure this out, found this link
    http://developer.apple.com/library/mac/technotes/tn2002/tn2110.html#//apple_ref/ doc/uid/DTS10003202
    but I don't understand anything that's its saying on how to identify what Java you have. I need to do continuing education for my job, and don't have time during work therefore I need to be able to do this @ home. Please help!!
    P.S. It doesn't matter if I use Firefox or Safari, I still get the same message....
    P.P.S. Please explain it in very simple terms I'm not very computer savy. Any help/tips would be much appreciated!!

    Java Preferences should show:
    Java SE 6 Apple Inc. 64-bit 1.6.0.24-b07-334
    Java SE 6 Apple Inc. 32-bit 1.6.0.24-b07-334
    Also, I was informed that " Runtime environment 5 and 6 are the more common versions required. " I should therefore contact the IT dept.
    Lastly, it seems a number of people are having issues using Firefox 4 and running Java, having to reinstall the application a number of times..
    Thanks for all your help guys!! Much appreciated!

  • Java plug in problem

    hello friends.....
    ...i m using html converter for java plug in ....and tried to convert a jsp page .but jsp still not showing the applet. and there is not any changed occured in jsp file.
    please tell me what may be the reason??

    ok lemme be more specific abt the question.
    There was this class that was compiled using earlier versions of java. I had to make some change to this class and it was only by chance that I had to compile the same class using j2sdk1.4.0. When I try to access the applet from a html page on the client machine it says that the class is not found. And when I install the latest java plug-in, it works fine. I would like to make this applet independent of the plug-in.
    I understand from the above replies that I need to compile my class in a lower version of java and make it independent of the plug-in. I would like to know if there is a better way to this.
    Thanx for ur time.
    Kris

  • Java plug in problem - unable to run oracle forms (LINUX)

    i am using centOS at client side 64bit
    opera/firefox 64 bit
    java 1.7 u51 64 bit
    everything is installed but unable to configure java plug in in above browsers...
    no browser is detecting java console
    Is there any specific version of all the above needed to run forms?
    (when i hit forms url in browser it goes blank)

    Hi,
    Kindly refer the below document,
    Recommended Browsers for Oracle E-Business Suite Release 12 (Doc ID 389422.1)
    Regards
    Sham

  • How to set up a Java Plug-in Download page in case of netscape?

    hai all of you,
    i have a problem regarding downloading plugin.
    i am using <object > and <embed> tags to download the plugins inorder to run the applets. but it is taking long time to download the plugin form sun.com.
    so what i have done is, i downloaded the plugin.exe file and .cab file and put it in my tomcat server mainted by other party.(y application if for internet purpose only.)
    i refered to http://java.sun.com/products/plugin/1.2/docs/intranet.html. there it is mentioned that, to download the plugin.
    for I.E i can able to change the code.
    but for NetScape it's a little bit confusing.
    i have downloaded the binary file in my own directory.
    here he is asking to set up a java plugin-in download page.
    instead of this "plugin-install.html" page what page i should create and what should be the code in this page if i have to write on my own. please let me know if anybody know about it.
    following para is from sun.com
    "To deploy Java Plug-in in intranet environments with Navigator, you need to download and store the Java Plug-in binary file on one of your web servers. Then you need to set up a Java Plug-in Download page and modify the pluginspage attribute in the EMBED tag to refer to this page. The Download page should have options to download different versions of Java Plug-in, such as for Windows and Solaris. For example, if you have set up the Java Plug-in Download page at "http://javaweb.eng/plugin/" and the page is called plugin-install.html, you can specify the pluginspage as "http://javaweb.eng/plugin/plugin-install.html". "
    thanks
    by
    sambareddy

    I have successfuly done this.
    Change the converted html as per the instructions to point to another page.
    Here is an example of the new html page you need to create:
    <html>
    <head>
    <title>Java Plugin Install Page</title>
    </head>
    <body>
    <h2><center>Java Plugin Install Page</center></h2>
    <p></p>
    <h3>Windows Version Only!!!</h3>
    Click here to Download Plugin
    <p></p>
    <p>You may or may not be asked to either save or run from current location</p>
    <p>If the run from current location is available, use that option</p>
    <p>If you can only save the file, then save it to your workstation and exit the download page and exit Netscape. Then using Windows Explorer, go to where you downloaded the file and double click on the file to run it. Accept all options during the install process and once it has finished try accessing your web page again using Netscape. You should then get to the web page or application and this page will not apppear again.
    </body>
    </html>
    If you put the file j2re-1_3_1-win.exe on a web server somewhere then you will have to prefix the file with
    http://yourwebserverdirectory/
    Hope this helps.

  • Java Plug-in / JSObject support with IE and Firefox

    Hi there,
    Basicaly, the idea behind is to write objects in Java to replace or extend functionnalities of a web page (like XMLHttpRequest object). Those objects should support event handler writen in Javascript.
    My first idea was to create JavaBeans and instantiate them through OBJECT tags in HTML (not as ActiveX objects). I don't find a way to instatiate a Javabean which was not also an applet.
    Does someone knows how to ?
    Anyway, the OBJECT tag may not work with Netscape. So, I went to use the APPLET tag with the Sun Java Plug-in.
    I've made some tests with IE and Firefox and there is at least two differences between them (both use the Sun Java Plug-in) :
    1/ Firefox / JSObject
    When you pass a Javascript object to a Java method, it seems that you
    cannot use methods like 'getMember', 'call', etc on this object.
    (invocation of the method works but returns null)
    But, if you access the same object form inside Java starting by
    JSObject.getWindows(...) and so on, it works fine.
    IE works in all cases.
    Example, with the Java applet and HTML below :
    . Java applet :
    | package JavaJS;
    |
    | import netscape.javascript.*;
    |
    | public class FirefoxApplet
    |        extends java.applet.Applet {
    |   netscape.javascript.JSObject win = null;
    |  
    |   public void init() {
    |     win = netscape.javascript.JSObject.getWindow(this);
    |   }
    |
    |   public Object getJSObjectMember( netscape.javascript.JSObject jso, String member ) {
    |     return jso.getMember(member);
    |   }
    |
    |   public netscape.javascript.JSObject getJSObjectFromPath( String jsoPath ) {
    |     String [] jsoNames = jsoPath.split("\\.");
    |     netscape.javascript.JSObject jso = win;
    |
    |     for( int i = 0; ( i < jsoNames.length ); i++ )
    |       jso = (netscape.javascript.JSObject)jso.getMember(jsoNames);
    |
    | return jso;
    | }
    |
    | public Object getJSObjectPathMember( String jsoPath, String member ) {
    | return getJSObjectMember(getJSObjectFromPath(jsoPath),member);
    | }
    | }
    [i]. HTML page :| <HTML>
    | <HEAD>
    | <TITLE>FirefoxApplet</TITLE>
    | <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    | <META http-equiv="Content-Script-Type" content="text/javascript">
    | <SCRIPT>
    | var ffxa = null;
    | var txa = null;
    |
    | var o = {
    | s : "object o, member s",
    | o : {
    | s : "object o.o, member s"
    | }
    | }
    |
    | function go() {
    | print(ffxa.getJSObjectMember(o,"s"));
    | print(ffxa.getJSObjectMember(o.o,"s"));
    | print(ffxa.getJSObjectPathMember("o","s"));
    | print(ffxa.getJSObjectPathMember("o.o","s"));
    | print(ffxa.getJSObjectMember(ffxa.getJSObjectFromPath("o"),"s"));
    | print(ffxa.getJSObjectMember(ffxa.getJSObjectFromPath("o.o"),"s"));
    | }
    |
    | function print( text ) {
    | txa.value = txa.value+text+"\n";
    | }
    |
    | function loaded() {
    | ffxa = document.getElementById("ffxa");
    | txa = document.getElementById("txa");
    |
    | }
    | </SCRIPT>
    | </HEAD>
    | <BODY onload="loaded()">
    | <APPLET id="ffxa"
    | code="JavaJS.FirefoxApplet.class"
    | width="0"
    | height="0"
    | MAYSCRIPT>
    | </APPLET><BR>
    | <INPUT type="button" onclick="go()" value="Go"><BR>
    | <TEXTAREA id="txa" rows="10" cols="40"></TEXTAREA>
    | </BODY>
    | </HTML>
    When the HTML page has loaded, a click on the Go button gives :
    . Firefox output :
    | null
    | null
    | object o, member s
    | object o.o, member s
    | null
    | null
    . IE output :
    | object o, member s
    | object o.o, member s
    | object o, member s
    | object o.o, member s
    | object o, member s
    | object o.o, member s
    2/ Internet Explorer / JSObject
    As we have seen in the previous example, passing Javascript object to
    an applet method works. Here, the problem comes when a Javascript object
    is pass to a method that's not an applet's method.
    If within the applet, you instantiate a new Java object and then
    call from Javascript a method on this object with a Javascript object as
    parameter then an Exception is raised when invoking that method.
    Firefox works fine here.
    Example, with the Java applet and HTML page below :
    . Java applet :
    | package JavaJS;
    |
    | public class IEApplet extends java.applet.Applet {
    |  
    |   public void init() {
    |   }
    |  
    |   public Object echo( Object object ) {
    |     return object;
    |   }
    |  
    |   public Object newEcho() {
    |     return new Echo();
    |   }
    | }
    . Java Echo class
    | package JavaJS;
    |
    | public class Echo {
    |  
    |   public Echo() {
    |   }
    |
    |   public Object echo(Object object) {
    |     return object;
    |   }
    | }
    . HTML page :
    | <HTML>
    |   <HEAD>
    |     <TITLE>IEApplet</TITLE>
    |     <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    |     <META http-equiv="Content-Script-Type" content="text/javascript">
    |     <SCRIPT>
    |       var iea = null;
    |       var txa = null;
    |
    |       var o = {
    |         s : "object o, member s",
    |         o : {
    |           s : "object o.o, member s"
    |         }
    |       }
    |
    |       function go() {
    |         print(iea.echo(o));
    |         print(iea.newEcho().echo(o));
    |       }
    |      
    |       function print( text ) {
    |         txa.value = txa.value+text+"\n";
    |       }
    |
    |       function loaded() {
    |         iea = document.getElementById("iea");
    |         txa = document.getElementById("txa");
    |        
    |       }
    |     </SCRIPT>
    |   </HEAD>
    |   <BODY onload="loaded()">
    |     <APPLET id="iea"
    |             code="JavaJS.IEApplet.class"
    |             width="0"
    |             height="0"
    |             MAYSCRIPT>
    |     </APPLET><BR>
    |     <INPUT type="button" onclick="go()" value="Go"><BR>
    |     <TEXTAREA id="txa" rows="10" cols="40"></TEXTAREA>
    |   </BODY>
    | </HTML>When the HTML page has loaded, a click on the Go button gives :
    . Firefox output :
    | [object Object]
    | [object Object]
    . IE output :
    | [object Object]
    with this Exception on the second method invocation :
    | java.lang.ClassCastException
    |      at sun.plugin.com.DispatchImpl.convertParams(Unknown Source)
    |      at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
    |      at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
    |      at java.security.AccessController.doPrivileged(Native Method)
    |      at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
    | java.lang.Exception: java.lang.ClassCastException
    |      at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
    |      at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
    |      at java.security.AccessController.doPrivileged(Native Method)
    |      at sun.plugin.com.DispatchImpl.invoke(Unknown Source)There is a workaround for this, it's possible to wrap the Javascript object
    in a Java object with an applet method and then use this Java object as
    parameter.
    Anyway, my questions are : regarding points 1/ and 2/ are these bugs with the Sun Java Plug-in ? or someone could explain these behaviors ?
    Thanks for your reading.
    Software infos :
    . Firefox version 1.0.7
    . Internet Explorer version 6.0.2800.1106 / JScript version 5.6
    . Plug-in Java(TM): Version 1.4.2_08
    . JSDK version 1.4.2_08
    . Windows 2000 Server version 5.00.2195 sp4

    Please test with the new Java Plug-In available in 6u10 at http://jdk6.dev.java.net/6u10ea.html. The Java/JavaScript bridge has been completely rewritten and is now more complete and portable than ever before. Longstanding issues should be fixed with this new version. Please try it and post if you continue to have problems.

  • Java Plug-In's SSV Helper 2, Start Detector - are not Verified

    I have the following Internet Explorer Add-ons relating to Java...
    I had an old version of Java, something like 1.5 or 1.15 ? - it was from 2006... then i installed the latest version of java from the official java website (where i had to say yes to installing add-ons / active-x controls even before the download begun)... my new version is Java version 6 update 10, (build 1.6.0_10-b33). i think i uninstalled the old version of java first.. it left some files in its installation directory so i manually deleted them after i had installed the new version though, it had its own folder with the version number as its name, a different folder for each version.
    These are the java plug-ins i have...
    Java(tm) Plug-In 2 SSV Helper (Not verified) Sun Microsystems, Inc. jp2ssv.dll
    Java(tm) Plug-In SSV Helper Sun Microsystems, Inc. ssv.dll
    JQSIEStartDetector Impl Class (Not verified) Sun Microsystems, Inc. jqs_plugin.dll
    i guess the SSV Helper (the first one, not 2) was the old version of java.. and the other two are the new version.
    My question, why are they not verified, is this normal, a danger/problem... considering the old java version add-on is verified.
    Also what do these add-ons do?, are they needed.
    thanks.
    I have windows xp home.sp3??? - its fully auto updated... internet explorer 7.

    Exactly .. I have way too much Java stuff in my add-ins that is NOT verified and am having problems deleting that which I may not need
    I wish we did not have to be a "developer" just to have the latest version of Java working on our systems. I realize more reading has to be done but for someone like me who has so many versions of Java and can not find out why this is so .. and how many I need in order to just prowse the web in the latest version of Java .. it is time consuming to have to go thru these Java add-ins and time consuming to have to want to remove older versions of Java.
    Sorry for the nit picking but it is valid for those of us who don't want to know all of this stuff.

  • Applets and memory not being released by Java Plug-in

    Hi.
    I am experiencing a strange memory-management behavior of the Java Plug-in with Java Applets. The Java Plug-in seems not to release memory allocated for non-static member variables of the applet-derived class upon destroy() of the applet itself.
    I have built a simple "TestMemory" applet, which allocates a 55-megabytes byte array upon init(). The byte array is a non-static member of the applet-derived class. With the standard Java Plug In configuration (64 MB of max JVM heap space), this applet executes correctly the first time, but it throws an OutOfMemoryException when pressing the "Reload / Refresh" browser button or if pressing the "Back" and then the "Forward" browser buttons. In my opionion, this is not an expected behavior. When the applet is destroyed, the non-static byte array member should be automatically invalidated and recollected. Isn't it?
    Here is the complete applet code:
    // ===================================================
    import java.awt.*;
    import javax.swing.*;
    public class TestMemory extends JApplet
      private JLabel label = null;
      private byte[] testArray = null;
      // Construct the applet
      public TestMemory()
      // Initialize the applet
      public void init()
        try
          // Initialize the applet's GUI
          guiInit();
          // Instantiate a 55 MB array
          // WARNING: with the standard Java Plug-in configuration (i.e., 64 MB of
          // max JVM heap space) the following line of code runs fine the FIRST time the
          // applet is executed. Then, if I press the "Back" button on the web browser,
          // then press "Forward", an OutOfMemoryException is thrown. The same result
          // is obtained by pressing the "Reload / Refresh" browser button.
          // NOTE: the OutOfMemoryException is not thrown if I add "testArray = null;"
          // to the destroy() applet method.
          testArray = new byte[55 * 1024 * 1024];
          // Do something on the array...
          for (int i = 0; i < testArray.length; i++)
            testArray[i] = 1;
          System.out.println("Test Array Initialized!");
        catch (Exception e)
          e.printStackTrace();
      // Component initialization
      private void guiInit() throws Exception
        setSize(new Dimension(400, 300));
        getContentPane().setLayout(new BorderLayout());
        label = new JLabel("Test Memory Applet");
        getContentPane().add(label, BorderLayout.CENTER);
      // Start the applet
      public void start()
        // Do nothing
      // Stop the applet
      public void stop()
        // Do nothing
      // Destroy the applet
      public void destroy()
        // If the line below is uncommented, the OutOfMemoryException is NOT thrown
        // testArray = null;
      //Get Applet information
      public String getAppletInfo()
        return "Test Memory Applet";
    // ===================================================Everything works fine if I set the byte array to "null" upon destroy(), but does this mean that I have to manually set to null all applet's member variables upon destroy()? I believe this should not be a requirement for non-static members...
    I am able to reproduce this problem on the following PC configurations:
    * Windows XP, both JRE v1.6.0 and JRE v1.5.0_11, both with MSIE and with Firefox
    * Linux (Sun Java Desktop), JRE v1.6.0, Mozilla browser
    * Mac OS X v10.4, JRE v1.5.0_06, Safari browser
    Your comments would be really appreciated.
    Thank you in advance for your feedback.
    Regards,
    Marco.

    Hi Marco,
    my guess as to why JPI would keep references around, if it does keep them, is that it propably is an implementation side effect. A lot of things are cached in the name of performance and it is easy to leave things laying around in your cache. Maybe the page with the associated images/applets is kept in the browser cache untill the browser needs some memory and if the browser memory manager is not co-operating with the JPI/JVM memory manager the browser is not out of memory, thus not releasing its caches but the JVM may be out of memory. Thus the browser indirectly keeps the reference that it realy does not need. This reference could be inderect through some 'applet context' or what ever the browser uses to interact with JPI, don't realy know any of these details, just imaging what must/could be going on there. Browser are amazingly complicated beast.
    This behaviour that you are observing, weather the origin is something like I speculated or not, is not nice but I would not expect it to be fixed even if you filed a bug report. I guess we are left with relleasing all significatn memory structures in destroy. A simple way to code this is not to store anything in the member fields of the applet but in a separate class; then one has to do is to null that one reference from the applet to that class in the destroy method and everything will be relased when necessary. This way it is not easy to forget to release things.
    Hey, here is a simple, imaginary, way in which the browser could cause this problem:
    The browser, of course needs a reference to the applet, call it m_Applet here. Presume the following helper function:
    Applet instantiateAndInit(Class appletClass) {
    Applet applet=appletClass.newInstance();
    applet.init();
    return applet;
    When the browser sees the applet tag it instantiates and inits the new applet as follows:
    m_Applet=instantiateAndInit(appletClass);
    As you can readily see, the second time the instantiation occurs, the m_Applet holds the reference to the old applet until after the new instance is created and initlized. This would not cause a memory leak but would require that twice the memory needed by the applet would be required to prevent OutOfMemory.I guess it is not fair to call this sort of thing a bug but it is questionable design.In real life this is propably not this blatant, but could happen You could try, if you like, by allocating less than 32 Megs in your init. If you then do not run out of memory it is an indication that there are at most two instances of your applet around and thus it could well be someting like I've speculated here.
    br Kusti

  • JRE 1.7 / Java Plug-in - Long delay in retrieving the applet File(JAR) due to a request to the Domain Controller(on port 53)

    Description:
    A specific group of users/customers (using Windows7 OS with IE and FireFox web browsers) are facing problems with retrieving the applet File, after they upgraded the JRE on the system(PC) to JRE 1.7.0_25-b17 from JRE version 1.6.0_29-b11.
    With JRE 1.7.0_25-b17 it is noticed that when the Java plugin requests for the applet File; it sends a request to the Domain Controller of the user, which causes a delay of 2 to 5 minutes and sometimes hangs. The problem occurs consistently.
    The current temporary workaround for this group of users is to use JRE version 1.6.0_29-b11.
    Problem analysis:
    To investigate the problem the below steps were executed:
    1) Collected the Java console outputbelow details from the user's system. (The complete output is not posted due to lengthy content, though can be added further to this post if required.)
    (a) Works fine with JRE version 1.6.0_29-b11. Kindly refer to Java console output in the code ‘section A’ towards the end of this post.
    (b) The problem occurs with problem with JRE version 1.7.0_25-b17. Kindly refer to Java console output in the code ‘section B’ towards the end of this post. The step where the problem is observed, is indicated as(##<comment>##).
    2) The network settings in the user's browser was checked. Internet Options > Connections > LAN setting
    The configured option is 'Use automatic configuration script' and the value is http://www.userAppX.com/proxy.pac
    This configuration remains the same irrespective of the JRE version in use.
    3) The network settings in the Java Control Panel was checked.
    The used/selected option is "Use browser settings", although values for 'Use proxy server' and 'use automatic proxy configuration script' are filled-in as 'user-proxy.com' and 'http://www.userAppX.com/proxy.pac' respectively.
    This configuration remains the same irrespective of the JRE version in use.
    4) The proxy PAC file was checked and debugging was done for the request 'https://myAppletHost.com/download/...'. The FindProxyForUrl function (including the conditions defined in it, for the hostname and domain checks) returns PROXY user-proxy.com:80
    5) The user also tried the below
    a. Changed the option in the network settings in the browser to 'Proxy server' with Address 'user-proxy.com' and Port '80'
    b. Restarted the browser.
    c. Tried with Java Plug-in 1.6.0_29, JRE version 1.6.0_29-b11. There was no problem and no request to the Domain Controller of the user.
    d. Tried with Java Plug-in 10.40.2.43, JRE version 1.7.0_40-b43. The problem occurs with the delay and a request to the Domain Controller of the user is observed.
    Kindly refer to Java console output in the code ‘section C’ towards the end of this post.
    6) The user also tried setting the below property in the Java Control panel; restarted the browser, and try with JRE 1.7.0_40-b43. The problem stil persists.
    -Djava.net.preferIPv4Stack=true
    7) The Global Policy Management of the Domain Controller was verified by the user. It has GPO for proxy setting but nothing related to Java security.
    Questions:
    The problem seems be specific to a particular (user) environment setup, and the user faces the problem when using JRE 1.7.
    We would like to know if the issue is in the (user) environment setup or in JRE 1.7.
    Could you please help with information/ideas/suggestions to identify the root cause and solution for this problem?
    Section A:
    Java Plug-in 1.6.0_29
    Using JRE version 1.6.0_29-b11 Java HotSpot(TM) Client VM
    User home directory = C:\Users\userA
    basic: Plugin2ClassLoader.addURL parent called for https://myAppletHost.com/download/myApplet.jar
    network: Connecting https://myAppletHost.com/download/myApplet.jar with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-b1bb5056c5b0e83f=2; Path=/"
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-b1bb5056c5b0e83f=2; Path=/"
    security: Loading Root CA certificates from C:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loaded Root CA certificates from C:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loading SSL Root CA certificates from C:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loaded SSL Root CA certificates from C:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Loading certificates from Internet Explorer ROOT certificate store
    security: Loaded certificates from Internet Explorer ROOT certificate store
    security: Checking if certificate is in Deployment denied certificate store
    network: Connecting https://myAppletHost.com/download/myApplet.jar with cookie "JSESSIONID=0000IK4bEMoqXH10zsl88rwvoRI:175oe9tjd; BCSI-CS-b1bb5056c5b0e83f=2"
    network: Downloading resource: https://myAppletHost.com/download/myApplet.jar
                    Content-Length: 403.293
                    Content-Encoding: null
    Dump system properties ...
    https.protocols = TLSv1,SSLv3
    java.vm.info = mixed mode, sharing
    java.vm.name = Java HotSpot(TM) Client VM
    java.vm.specification.name = Java Virtual Machine Specification
    java.vm.specification.vendor = Sun Microsystems Inc.
    java.vm.specification.version = 1.0
    java.vm.vendor = Sun Microsystems Inc.
    java.vm.version = 20.4-b02
    javaplugin.nodotversion = 160_29
    javaplugin.version = 1.6.0_29
    javaplugin.vm.options =
    os.arch = x86
    os.name = Windows 7
    os.version = 6.1
    trustProxy = true
    deployment.proxy.auto.config.url = http://www.userAppX.com/proxy.pac
    deployment.proxy.bypass.local = false
    deployment.proxy.http.host = user-proxy.com
    deployment.proxy.http.port = 80
    deployment.proxy.override.hosts =
    deployment.proxy.same = false
    deployment.proxy.type = 3
    deployment.security.SSLv2Hello = false
    deployment.security.SSLv3 = true
    deployment.security.TLSv1 = true
    deployment.security.mixcode = ENABLE
    Section B:
    Java Plug-in 10.25.2.17
    Using JRE version 1.7.0_25-b17 Java HotSpot(TM) Client VM
    User home directory = C:\Users\userA
    basic: Added progress listener: sun.plugin.util.ProgressMonitorAdapter@12adac5
    basic: Plugin2ClassLoader.addURL parent called for https://myAppletHost.com/download/myApplet.jar
    network: Connecting https://myAppletHost.com/download/myApplet.jar with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-2d4ce94a2ae7b460=2; Path=/"
    network: Connecting http://10.x.x.xx:53/ with proxy=DIRECT
                    (##THE ABOVE REQUEST CAUSES THE DELAY OR HANGS##)
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-2d4ce94a2ae7b460=2; Path=/"
    security: Loading Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    security: Loaded Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    security: Loading SSL Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    security: Loaded SSL Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Loading certificates from Internet Explorer ROOT certificate store
    security: Loaded certificates from Internet Explorer ROOT certificate store
    network: Connecting https://myAppletHost.com/download/myApplet.jar with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-2d4ce94a2ae7b460=2; Path=/"
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-2d4ce94a2ae7b460=2; Path=/"
    network: Connecting https://myAppletHost.com/download/myApplet.jar with cookie "JSESSIONID=0000UQuXWY5tjxjpwcKHlfJKe_8:175oe9j45; BCSI-CS-2d4ce94a2ae7b460=2"
    network: ResponseCode for https://myAppletHost.com/download/myApplet.jar : 200
    network: Encoding for https://myAppletHost.com/download/myApplet.jar : null
    network: Server response: (length: -1, lastModified: Thu Feb xx yy:yy:yy CET 2013, downloadVersion: null, mimeType: text/plain)
    network: Downloading resource: https://myAppletHost.com/download/myApplet.jar
                    Content-Length: -1
                    Content-Encoding: null
    Section C:
    Java Plug-in 10.40.2.43
    Using JRE version 1.7.0_40-b43 Java HotSpot(TM) Client VM
    User home directory = C:\Users\userA
    basic: Plugin2ClassLoader.addURL parent called for https://myAppletHost.com/download/myApplet.jar
    network: Connecting https://myAppletHost.com/download/myApplet.jar with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-1d67c8b6508ca09c=2; Path=/"
    network: Connecting http://10.x.x.xx:53/ with proxy=DIRECT
                    (##THE ABOVE REQUEST CAUSES THE DELAY OR HANGS##)
    network: Checking for update at: https://javadl-esd-secure.oracle.com/update/blacklist
    network: Checking for update at: https://javadl-esd-secure.oracle.com/update/blacklisted.certs
    network: Checking for update at: https://javadl-esd-secure.oracle.com/update/baseline.version
    network: Connecting https://javadl-esd-secure.oracle.com/update/blacklist with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    network: Connecting https://javadl-esd-secure.oracle.com/update/baseline.version with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    network: Connecting https://javadl-esd-secure.oracle.com/update/blacklisted.certs with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    security: Loading Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    security: Loaded Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    security: Loading SSL Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    security: Loaded SSL Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
    Dump system properties ...
    https.protocols = TLSv1,SSLv3
    java.vm.info = mixed mode, sharing
    java.vm.name = Java HotSpot(TM) Client VM
    java.vm.specification.name = Java Virtual Machine Specification
    java.vm.specification.vendor = Oracle Corporation
    java.vm.specification.version = 1.7
    java.vm.vendor = Oracle Corporation
    java.vm.version = 24.0-b56
    javaplugin.nodotversion = 10402
    javaplugin.version = 10.40.2.43
    os.arch = x86
    os.name = Windows 7
    os.version = 6.1
    trustProxy = true
    active.deployment.proxy.auto.config.url = http://www.userAppX.com/proxy.pac
    active.deployment.proxy.bypass.local = false
    active.deployment.proxy.http.host = user-proxy.com
    active.deployment.proxy.http.port = 80
    active.deployment.proxy.same = false
    active.deployment.proxy.type = 3
    deployment.browser.path = C:\Program Files (x86)\Internet Explorer\iexplore.exe
    deployment.proxy.auto.config.url = http://www.userAppX.com/proxy.pac
    deployment.proxy.bypass.local = false
    deployment.proxy.http.host = user-proxy.com
    deployment.proxy.http.port = 80
    deployment.proxy.override.hosts =
    deployment.proxy.same = false
    deployment.proxy.type = 3                                                                                                                                                                                                                                                            
    deployment.security.SSLv2Hello = false
    deployment.security.SSLv3 = true
    deployment.security.TLSv1 = true
    deployment.security.TLSv1.1 = false
    deployment.security.TLSv1.2 = false
    deployment.security.authenticator = true
    deployment.security.disable = false
    deployment.security.level = HIGH
    deployment.security.mixcode = ENABLE
    PS:
    Since the JRE 1.7.0_25-b17 update, it is noticed that when the Java plugin requests for the applet File; it sends a request to the Domain Controller of the user, which causes a delay of 2 to 5 minutes and sometimes hangs.
    The problem occurs consistently, and also with JRE 1.7.0_45-b18.
    Java Plug-in 10.45.2.18
    Using JRE version 1.7.0_45-b18 Java HotSpot(TM) Client VM
    User home directory = C:\Users\userA
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    l:   dump classloader list
    m:   print memory usage
    o:   trigger logging
    q:   hide console
    r:   reload policy configuration
    s:   dump system and deployment properties
    t:   dump thread list
    v:   dump thread stack
    x:   clear classloader cache
    0-5: set trace level to <n>
    cache: Initialize resource manager: com.sun.deploy.cache.ResourceProviderImpl@134a33d
    basic: Added progress listener: sun.plugin.util.ProgressMonitorAdapter@1971f66
    basic: Plugin2ClassLoader.addURL parent called for https://myAppletHost.com/download/myApplet.jar
    network: Connecting https://myAppletHost.com/download/myApplet.jar with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
    network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-f797d4d262467220=2; Path=/"
    network: Connecting http://10.x.x.xx:53/ with proxy=DIRECT
    network: Connecting http://10.x.x.xx:53/ with proxy=DIRECT
                    (##THE ABOVE REQUEST CAUSES THE DELAY AND SOMETIMES HANGS##)

    My organization is experiencing very similar problems.  We have resolved it through several steps.
    We upgraded the client to Java 8 and we saw in the console that the hanging connection with the Domain Controller no longer occurs.  This may be all that is necessary for your environment as well. 

Maybe you are looking for