Java Plug-in 1.5.0_02 applet error

Hi to all,
I have a situation that i cannot resolve. I have a computer in which i login as myself (admin context) and can view the site correctly without errors. However, when i login as a normal user (user) with some group policies implemented i get the following error. My TOC and tool bar do not appear and this is the error extracted.
My question is that i know it is group policy related but which policy would invoke this result. ? Ie: disabling java scripting in gpedit, disabling java all together etc...
Any help would be appreciated.
Java Plug-in 1.5.0_02
Utilisation de la version JRE 1.5.0_02 Java HotSpot(TM) Client VM
R�pertoire d'accueil de l'utilisateur = C:\Documents and Settings\dbabin
c: effacer la fen�tre de la console
f: finaliser les objets de la file d'attente de finalisation
g: lib�rer la m�moire
h: afficher ce message d'aide
l: vider la liste des chargeurs de classes
m: imprimer le relev� d'utilisation de la m�moire
o: d�clencher la consignation
p: recharger la configuration du proxy
q: masquer la console
r: recharger la configuration des politiques
s: vider les propri�t�s syst�me et d�ploiement
t: vider la liste des threads
v: vider la pile des threads
x: effacer le cache de chargeurs de classes
0-5: fixer le niveau de tra�age � <n>
charger : classe a0ce100 introuvable.
java.lang.ClassNotFoundException: a0ce100
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
java.lang.NoClassDefFoundError: JTreeCanvas
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

I forgot to mention the envrironment.
Windows 2000 SP4
Sun Java Plug-in 1.5.0_02

Similar Messages

  • Java Plug-in 1.3.0_02

    I have Java Plug-in 1.3.0_02.
    I wrote an applet that depends on some extra clsses which are stored on the client computer.
    I put the jar file that contains those classes in the CLSSPATH variable but applet is not able to load them.
    How should I set up the Java Plug-in so the applet can see those extra clsses?
    Thanks

    put the classpath in the "archive" attribute of the
    applet tag, the re-convert the htmlHow can I put the classpath in the "archive" attribute of the applet tag?
    Can you send the example?
    Thanks

  • How to force the Netscape browser to use Java Plug-in 1.3.0_02?

    For Analyzer 6.2.1, how to force the Netscape browser to use Java Plug-in 1.3.0_02?

    Change the classid in the object tag here is some info.This applies to JRE's 1.3.1 and greater.How do I know what Class ID to use for a specific JRE?CAFEEFAC-0013-0001-0004-ABCDEFFEDCBACAFEEFAC = This tells the browser to force a specific JRE0013-0001-0004 = JRE version number 1.3.1_04 (1.3.1_08 would be 0013-0001-0008)ABCDEFFEDCBA = Just needs to be there.1.3.0_02 = E19F9331-3110-11d4-991C-005004D3B3DB, it seems like they did not implement the standard until v.1.3.1Any good JRE Version = 8AD9C840-044E-11D1-B3E9-00805F499D93, this class id will just look for any good JRE.http://java.sun.com/j2se/1.4.1/docs/guide/plugin/developer_guide/version.html

  • New java plug-in on linux : jnlp applets not working

    Hello my dear forum,
    Here is (a part of) my configuration :
    * Ubuntu 9.04
    * Firefox 3.0.13
    * Java Plug-in 1.6.0_14 with JRE 1.6.0_14-b08
    I couldn't launch jogl applets in firefox with ubuntu since I updated the new plugin. (like this one : https://jogl-demos.dev.java.net/applettest.html)
    I get this error :
    java.lang.ClassCastException: sun.awt.motif.MToolkit cannot be cast to sun.awt.X11.XToolkit
         at sun.awt.X11.XEmbeddedFrame.addNotify(XEmbeddedFrame.java:53)
         at sun.plugin2.main.client.PluginEmbeddedFrame.addNotify(PluginEmbeddedFrame.java:46)
         at sun.awt.X11.XEmbeddedFrame.<init>(XEmbeddedFrame.java:43)
         at sun.awt.X11.XEmbeddedFrame.<init>(XEmbeddedFrame.java:60)
         at sun.plugin2.main.client.PluginEmbeddedFrame.<init>(PluginEmbeddedFrame.java:37)
         at sun.plugin2.main.client.PluginMain$StartAppletRunner.run(PluginMain.java:927)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    PluginMain: could not create embedded frame
    Does this problem have something to do with this one : http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6625747 ?
    I would really appreciate if someone can help me.

    poupitoupou wrote:
    I thought Java was cross-platform, snirf...It is. But if one uses code that relies on a particular platform then all bets are off.
    >
    I wonder how many people manage to get this applet working on linux :
    https://jogl-demos.dev.java.net/applettest.html
    I don't know what 'working' means for this. I'm using 1.6.0_15 on Ubuntu 9.04 an all I see is 3 gear wheels that don't move.
    >
    Listen, you forum-reader, if you are on linux, can you test this applet and tell me if it is working ?Again - what does 'working' mean?

  • How  to get java plug-in to work for applet?

    Hello!
    I have a simple applet which I want to run in a browswe (Explorer and Netscape). I want to use the "java plug in" for this but my code does�nt seem to work? Can someone help me??? Code listed below...
    <!-- HTML CONVERTER -->
    <OBJECT classid="clsid:E19F9330-3110-11d4-991C-005004D3B3DB">
    <COMMENT>
    <EMBED pluginspage="$NSFileLocation$"><NOEMBED>
    </COMMENT>
    </NOEMBED></EMBED>
    </OBJECT>
    <applet code="Gui.class" width=700 height=400>
    </applet>

    Hello agin...
    I have used a new code but this does�nt work either... help???
    <OBJECT classid="clsid:E19F9330-3110-11d4-991C-005004D3B3DB"
    codebase = "http://java.sun.com/products/plugin/autodl/jinstall-1_4_1-windows-i586.cab#Version=1,4,1,0"
    WIDTH = "800" HEIGHT = "400" ALIGN = "bottom">
    <PARAM NAME = CODE VALUE = "Gui.class" >
    <PARAM NAME = "type" VALUE = "application/x-java-applet;version=1.4">
    <PARAM NAME = "scriptable" VALUE = "false">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.4"
    CODE = "Gui.class"
    WIDTH = "800"
    HEIGHT = "400"
    ALIGN = "bottom"
    scriptable = false
    pluginspage = "http://java.sun.com/products/plugin/index.html#do
    wnload">
    </EMBED>
    </COMMENT>
    </OBJECT>

  • Java Plug-in 1.3.0_02 nor 1.3.0_01 won't launch

    Help, I have installed JSDK 1.3.0_01 and 1.3.0_02, I get the same results, neither one will launch from control panel. I have checked the registry and everything seems to be fine.
    I am installing the application on WindowsNT 4.0 Svc pk 6 server with I.E. 5.5 with svc pk 2. I s there a patch or something that will keep this from launching? I have uninstalled and reinstalled for the last week and a half now.

    I'm having the exact same problem. I'm trying to install ArcIMS (internet map service). ArcIMS requires JRE, JRUN (a servlet engine) and the ArcIMS software. I've uninstalled and re-installed JRE 1.3.0_02 and JRE 1.3.1_01. No luck. JRUN works fine, ArcIMS passes all diagnostics, but will not launch. The Plug-in console will not launch on any version. I'm running Winnt Server 4.0 with service pack 6a and full administrator rights. I've installed, uninstalled, re-installed IE 5.5 and 6.0, both with all their service packs. No luck. I suspect this has something to do with the JVM (Java Virtual Machine). But I can't check that because the Plug-in will not launch! This appears to be a registry problem, but I can't find any improper settings. All help would be greatly appreciated.

  • Java Plug-In1.3.1_03 and downloading applets

    hey,
    Following is the detail of my problem with Java 1.3.1_03 Plug-In:
    I have a java applet written using Microsoft SDK 4.0 in Java 1.1.
    This applet is downloadable from the browser. When I have the Java Plug-In enabled to load applets (in my Browser - options - advanced) - the applet gets downloaded fine but, does not find the cab file that has been downloaded. If this Java Plug-In option is not ticked in my browser then, the applet works fine and the cab file could be found.
    Help will be much appreciated. Thanks.
    -Tanvi

    hello,
    Actually, i think the Java Plug-In writes the path of the directories and the Java VM elsewhere in the registry and the browser is set to look it up in the usual Microsoft->JavaVM place in the registry. But, I cant seem to find the key that it puts the path in. If you have any leads, do fill me in. Thanks.
    - Tanvi

  • 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 not working with WinXP SP2 Registry Key Missing Error Pop-Up

    I have WinXp PRO with SP2 and the Oct 12 Security Update Patch for SP2 loaded and I went to my Control Panel and saw that the JavaRuntime Environment 1.4.2_04 icon was missing and when I went to click the Java Plugin icon to Open it, I got the following message in a Error Pop-Up window:
    The system cannot find the registry key specified:
    HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java pPlug-in\1.4.2_04\JavaHome
    I then went to Chage Access Program Controls and when I clicked on the Change box for the program, it wanted me to re-install the whole environment.
    Prior to doing this, and potentially screwing up my MS winXp environment, I went to the Sun support page for Java Plug-in and I did get the dancing elmo appear as they said I would but I noticed that my environment was MS VM, not Java and that I was out of date and a newer update was avaliable.
    The downloads page for the plug-in states clearly that it supports WinXp SP1 and NOT SP2.
    SO, my question is, do I need to re-install anything or wait till the whole SP2 issue and java with (BITS) issue gets resolved and just use the MS VM engine during my browsing time? Is there a workaround and what impact will this have on my system? I am not developing Java Apps but am a Power user in Windows who is wondering if applets and general browsing might be easier, faster and more fluid if the Java Runtime was enabled as opposed to the MS VM solution?
    Any ideas or thoughts on this very timely issue would be greatly appreciated as I see others have tried to post related issues but none that succinctly combines what I have asked for here in this post.
    Thanks from NYC -Phil

    did you know that XP SP2 has so many technical problems? try SP1 or contact the WindowsXP Vendor

  • Java Plug-in 1.5.0_06 Error JRE notinited

    Uninstalled all JRE versions. and downloaded the previous offline install packets from:
    http://java.sun.com/products/archive/
    JRE 1.5.0
    JRE 1.5.0_1
    JRE 1.5.0_2
    JRE 1.5.0_3
    JRE 1.5.0_4
    JRE 1.5.0_5
    JRE 1.5.0_6
    ,Installed them one after the other due to I read somewhere they recommend you keep all your JRE versions. Keep getting that error JRE notinited error on the brower status bar when I run the verify installation proccess at
    http://java.com/en
    JRE 1.4.1_02 an older version works if I uninstall all the newer versions and leave this version.
    None of the browser installed seem tow ork with the JRE 1.5 ect.
    I have IE 6, Netscape 7.2,. Firefox 1.5 all will not load applets and get that verify install red x for failing to load.
    Below is what I get in the Java Log.
    I
    Java Plug-in 1.5.0_06
    Using JRE version 1.5.0_06 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\Darrel Decal
    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
    p: reload proxy configuration
    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>
    load: class jreCheck.class not found.
    java.lang.ClassNotFoundException: jreCheck.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    Exception in thread "Thread-4" java.lang.NullPointerException
         at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
         at sun.plugin.AppletViewer.showAppletException(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    java.lang.NullPointerException
         at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
         at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Some People claim that Norton programs might interfere, I disabled them even went as far to uninstall them which takes a long time.. to uninstall and install them back.
    I even went as far as a clean systems install of windows XP sp2 Home Edition and th en tried to update to Sun Java and still got the red X basically saying something wrong with install. But nothing every says its wrong when you run the offline installation. Just when you go back to the website to veriffy jjava is installed.
    To be able to use my subsciption I pay for on Pogo.com to play games that require applets I had to enable the MSJava in Internet Explorer and disable the box of the Sun Java applet version whatever you have installed to have Runtime Environment.
    If you don't have the MS Java on your Internet Explorer Advanced Options you can get it at this address:
    http://www.microsoft.com/mscorp/java/
    Go figure. I thought Sun Java would be more better which I had working before have no clue why it stopped working and those errors come up when trying to play games that require the use of the java applet.
    Was hoping other java users who have figured out why it stopped can tell me what to look for to alter so I can change back to sun Java.
    The Sun Java works great with other applications just not the applets.

    The same problem happened to me. When upgrading from JRE 1.5.0_5 to JRE 1.5.0_6, suddenly no applets would load, and all I could see was the little red X.
    I tried to change proxysettings (I dont use a proxy, but it is told at http://www.java.com/en/download/help/redximage.xml that it is due to wrong proxy-settings). It didn't help.
    I tried to turn off zonealarm. It didn't help.
    I tried to clear the browsers cache. It didn't help.
    I have been using both Firefox 1.5, and IE6. None would load the java-applets.
    So I uninstalled all older JRE versions and installed JRE 1.4.1_02. It worked!
    I then tried to upgrade to JRE 1.5.0. It didn't work.
    Now I am back at JRE 1.4.1_02 without knowing why I had to downgrade through 6 versions that through the last year or so has been working fine on my machine.
    I have no idea why it suddenly wouldnt work with the newer versions.
    Any ideas?
    Thank you.

  • Java Plug-in 1.4.2_01 error

    Hi,
    Sometimes when I access certain websites with java programs I get the following pop-up error
    "Java Plug-in 1.4.2_01 is not installed properly". It then asks if I would like to open a new browser as the one I'm using apparently won't support the version of java needed for the applet.
    I'm using IE 6.0
    When I click on the Tools --> Sun Java Console I get the same Java Plug-in error.
    I have installed:
    Java(TM) 2 SDK, Standard Edition Version 1.4.2
    Java(TM) 2 Runtime Environment, Standard Edition Version 1.4.2 (j2re1.4.2_01)
    in different folders. Could that be the conflict?
    Should I just uninstall/delete both of them and reinstall another version?
    Any help is much appreciated!

    Yes, I would uninstall the JRE and the SDK and reinstall the latest version, J2SE SDK 1.4.2_04. In my experiences, during install the setup application asks me if I want to use this JVM with the browsers it finds, IE and Netscape. I always leave the boxes checked for both browsers and that seems to do the trick for me.

  • Java plug-in fatal error

    When I try to open an applet on a site I get the message "Java plug-in fatal error- several Java virtual machines running in the same process caused an error". Checking my add/remove program I see that I have J2SE runtime environment 5.0 updates 7,9,10 and 11. Java 2 runtime environment standard edition version 1.3.1_02, 1.4.1_01, and 1.4.2_03. Also Java runtime environment 6 update 1. I'm running Windows XP service pack 2. Hope someone has a solution to my problem.

    This is an existing bug request:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6516270
    Providing this information could be handy:
    1) Does this occur on all browser(s) which includes Firefox, Mozilla other then Internet Explorer
    2) What is the outcome of running testvm applet:
    http://java.com/en/download/help/testvm.xml
    3) Does this error start appearing after updating to 6u01
    4) Have you attempted running the applet after deleting Java Plug-in and browser cache
    This could be an issue with memory management on the system.
    The possible workaround(s) are:
    1) Try setting virtual memory as System managed:
    Windows xp users start--->control panel--->System--->advanced---->Performance(setting)---->Advanced---->virtualmemory(change)--->Click system managed size--->set then Ok restart your computer
    2) Set JRE parameter less then 3/4 of actual physical memory present in the system.
    For example, 512 MB if RAM is 1024 MB.
    3) Disable any unwanted/new/confusing add-on in the browser (IE7).
    For example, Windows Live Sign-in add-on can restrict Java functioning due to unknown reasons. Disabling same, if installed could be helpful.

  • How to get applets running with Java Plug-in on Win but also on Mac OS X???

    I've converted to the use of Java Plug-in for my applets, but I need to have those same applets executable from browsers on Mac OS X platform. Surely this has been done, but I don't see how. The browsers I've tried on Mac OS X (Netscape, IE) don't seem to recognize the <OBJECT> tag used for the java plug-in. I've seen no news about the Java plug-in being ported to Macs. How can one get the same applet to run with the Java plug-in on Windows browsers, and also to run with at least one of the common browsers on Mac OS X? Any help would be SO much appreciated!

    Those ten dukes look good to me. But the passing of fifteen months has me thinking you've probably moved on. In any case, here's my effort.
    I've been through a trial trying to get my applet, developed with 1.4.1_03, to run on my Mac OS X v.10.2.6 in multiple browsers. I'm posting my results here. Comments and feedback are welcome.
    JVM support for 1.4.1 is limited to the Safari browser. All other browsers running in Mac OS X that I've tried ( Camino, Opera, Internet Explorer, Mozilla ) are using the 1.3.1 plugin. According to a bug report by Mozilla on this topic ( see Bugzilla Bug # 197813 http://bugzilla.mozilla.org/show_bug.cgi?id=197813 )
    with the release of Apple's version of Sun's Java 1.4.1 the applet programming model has changed, and only Safari has adapted with this change. Other browsers, according to the report, could not because of a lack of documentation. The use of the MRJCarbon plugin offered by Mozilla (here - http://www.mozilla.org/oji/MRJPluginCarbon.html) only allows Mozilla to use the J 1.3.1. And I have not found any information on the Microsoft site about how to get IE 5.2 to recognize the newer version of Java.
    Regarding the use of the OBJECT tag in Safari, it is a matter of debate. A current post on this topic exists in the Applet Development forum:
    http://forum.java.sun.com/thread.jsp?forum=421&thread=441002
    In my experience, I have not been able to determine that Safari v1.0 recognizes the OBJECT tag. My experience is that the APPLET tag is required to run applets in Safari. The Bugzilla report echoes the problem with the BadMagicNumber error that can arise in Safari. Nonetheless, I enjoy Safari and I enjoy Mac OS X.

  • How can destroy Java Plug - in when i jump to another page without Applet

    When I jump to another HTML page, that not include <Applet> </Applet> tag, the Java Plug-in does not exit and use system's resource. I don't want it make my computer run slow then I want sutdown the Java Plug-in when I stop the page, that have an Applet.

    Hi dekassequi:
    Sorry if I misunderstood the problem......I've never tried swing set because it requires the JVM plugin. All my applets are non-swing and I've noticed that frequently when I exited the browser, it would be stuck in a never-never land requiring ALT-CTRL-DEL to end the browser's task. By overriding the destroy a the call to system.exit seems to have solved my problem -- if there is any error message in the system console, it is not noticeable because it disappeared instantenousely when the browser's own JVM is used.... Besides, destroy is the last thing an applet does anyway....without looking at Java source code, I can only surmise that that's what it does
    As a matter of fact, I've just tried to write some stupid swing applet but I've noticed that one cannot really script an applet that requires a Sun JVM. Here is a link, perhaps you can take a quick look and see if I'm doing something wrong.
    http://home.attbi.com/~aokabc/test/test2.htm
    BTW, I did notice late last night that overriding the destroy method in an applet that requires a JVM plugin does give an error message in the system console which takes a bit longer to close but you know what, at least it got rid of the console afterward -- otherwise, the console just sit in the tray and ALT-CTRL-DEL can't even get rid of it. In the mean time, I'll simply remove the system.exist(0) and leave a skeleton destroy method and see if the JVM console still sit in the system tray.
    Regards,
    V.V.

  • 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

Maybe you are looking for

  • Work book taking longer time to open

    Hi, We created a workbook and embedded one  input ready query in it.  The query when executed separately takes 1 minute to load.  But when the work book is opened for the same selections, it takes 3-5 mins.  There is no Macros written in the workbook

  • How to stop Nvidia driver errors on Bootcamp

    Hi, I'm using a MacBook Pro mid 2010 with a Nvidia Drive fully updated on a Windows 8.1 x64 and it is constantly going black specially when using web browsers. If someone had the same problem and found a practical solution please help.

  • My ipod screen is very dim and i cant change it

    ive tried to restore and it dosnt work. ive tired resetting it dosnt work also

  • Applications playing in the background

    Does apple allow programs to play in the background? If so .? Pandora?

  • Creating a text file output from ABAP

    Hi I'm trying to create a comma delimited text file by using ABAP code Could someone please help me with my coding in the following areas or is there better coding to do it: 1)Is there a way  to move the entire Customer file KNA1 into my text file in