2 Replies Latest reply: Aug 14, 2012 6:37 AM by 955291 RSS

    Large applets will not start  using 1.7 JRE

    955291
      When I attempt to load a large archive > 20kb the plugin stops with this error:

      basic: Added progress listener: sun.plugin.util.ProgressMonitorAdapter@9d74b8
      network: Connecting http://192.168.56.200/applets/testJAR.jar with proxy=DIRECT
      network: Connecting http://192.168.56.200:80/ with proxy=DIRECT
      network: Downloading resource: http://192.168.56.200/applets/testJAR.jar
           Content-Length: 25,174
           Content-Encoding: null
      plugin2manager.parentwindowDispose
      basic: JVM[id=1]-Heartbeat heartbeat dead, exception. dT=0 seconds.
      java.io.IOException: Error 232 writing to named pipe, numWritten 0, WriteFile ts: 4911820851, now ts: 4911820865, dT 14
           at sun.plugin2.ipc.windows.WindowsNamedPipe.write(Unknown Source)
           at sun.plugin2.message.transport.NamedPipeTransport$SerializerImpl.flush(Unknown Source)
           at sun.plugin2.message.transport.NamedPipeTransport.signalDataWritten(Unknown Source)
           at sun.plugin2.message.transport.SerializingTransport.write(Unknown Source)
           at sun.plugin2.message.Pipe.send(Unknown Source)
           at sun.plugin2.main.server.HeartbeatThread.run(Unknown Source)

      I have tried the following configurations on Windows 7, it does not appear to occur on XP. My windows 7 is 64 bit but browsers and plugins are 32 bit.

      Plugin version 1.7u2,3,4,5
      Next generation Plug-In enabled or disabled
      Browser: IE9 or Firefox 14.1
      All jars are signed

      More specifics, I first loaded a very small applet and this works:

      public class testapp extends Applet {
      boolean isStandalone = false;
      BorderLayout borderLayout1 = new BorderLayout();
      JLabel jLabel1 = new JLabel();

      //Get a parameter value
      public String getParameter(String key, String def) {
      return isStandalone ? System.getProperty(key, def) :
      (getParameter(key) != null ? getParameter(key) : def);
      }

      //Construct the applet
      public testapp() {
      }

      //Initialize the applet
      public void init() {
      try {
      jbInit();
      } catch (Exception e) {
      e.printStackTrace();
      }
      }

      //Component initialization
      private void jbInit() throws Exception {
      jLabel1.setText("jLabel1");
      this.add(jLabel1);
      }

      //Get Applet information
      public String getAppletInfo() {
      return "Applet Information";
      }

      //Get parameter info
      public String[][] getParameterInfo() {
      return null;
      }
      }

      Then I tried loading another archive to check if the issue was with a coma separated list.

      archive = "testJAR.jar,testApplet.jar"

      If the testJAR.jar is small <20kb it works but when I added more content to the jar or tried to replace it with a larger item I get the error.
        • 1. Re: Large applets will not start  using 1.7 JRE
          817614
          Just to see if this related to heartbeat communication between the browser VM and applet VM, try setting env JPI_PLUGIN2_NO_HEARTBEAT=true in a script that start IE.
          • 2. Re: Large applets will not start  using 1.7 JRE
            955291
            I created a script

            set JPI_PLUGIN2_NO_HEARTBEAT=true
            "C:\Program Files\Internet Explorer\iexplore.exe"

            And this is as far as I got:

            Java Plug-in 10.6.2.24
            Using JRE version 1.7.0_06-b24 Java HotSpot(TM) 64-Bit Server VM
            User home directory = C:\Users\tmoyer
            ----------------------------------------------------
            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@6b8612e4
            security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.
            security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
            security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
            security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
            security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
            security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
            security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.
            security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
            security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
            security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
            security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
            security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
            security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
            security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
            security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
            security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
            basic: Added progress listener: sun.plugin.util.ProgressMonitorAdapter@64ca9718
            network: Connecting http://192.168.56.200/applets/testJAR.jar with proxy=DIRECT
            network: Connecting http://192.168.56.200:80/ with proxy=DIRECT
            network: Downloading resource: http://192.168.56.200/applets/testJAR.jar
                 Content-Length: 25,174
                 Content-Encoding: null