3 Replies Latest reply: Oct 19, 2012 10:31 AM by gimbal2 RSS

    Applet stopped to work updating from java 6 to 7

    969300
      Hallo everybody,

      The software we produce, allows to use a Java Applet to access from Browser to our product. The link below will help you to understand better what I mean.

      http://support.progea.com/webclient/

      After the upgrade to version 7, on some PC with Windows 7, we note that Browser is not able to access this link, the page is blocked on loading applet.

      This the text I can find in the debug Console:

      cache: Initialize resource manager: com.sun.deploy.cache.ResourceProviderImpl@211b37
      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: Told clients applet is started
      basic: Aggiunto listener avanzamento: sun.plugin.util.ProgressMonitorAdapter@c8cdca
      basic: Plugin2ClassLoader.addURL parent called for http://support.progea.com/webclient/MovWebClientX.jar
      network: Voce cache non trovata [URL: http://support.progea.com/webclient/MovWebClientX.jar, versione: null]
      Plugin Java 10.7.2.10
      Uso della versione JRE 1.7.0_07-b10 Java HotSpot(TM) Client VM
      Directory home utente = C:\Users\MIncerti
      ----------------------------------------------------
      c: cancella finestra console
      f: finalizza oggetti nella coda di finalizzazione
      g: garbage collection
      h: visualizza questo messaggio della Guida
      l: esegui dump lista classloader
      m: stampa utilizzo memoria
      o: attiva registrazione eventi
      q: nascondi console
      r: ricarica configurazione criteri
      s: esegui dump delle proprietà del sistema e della distribuzione
      t: esegui dump lista thread
      v: esegui dump stack thread
      x: cancella cache classloader
      0-5: imposta livello di trace su <n>
      ----------------------------------------------------
      network: Connessione a http://support.progea.com/webclient/MovWebClientX.jar con proxy=DIRECT
      network: Connessione a http://support.progea.com:80/ con proxy=DIRECT
      network: Connessione http://support.progea.com/webclient/MovWebClientX.jar con cookie "__utma=26485756.1851745410.1321431319.1348652624.1349419835.141; __utmz=26485756.1321431319.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmv=26485756.|1=User=Registered=1"
      security: Accesso alle chiavi e al certificato nel profilo utente di Mozilla: null
      security: JSS non è configurato
      network: Connessione a https://javadl-esd-secure.oracle.com/update/baseline.version con proxy=DIRECT
      network: Connessione a http://javadl-esd-secure.oracle.com:443/ con proxy=DIRECT
      security: Caricamento certificati della CA radice da C:\Program Files (x86)\Java\jre7\lib\security\cacerts
      security: Certificati della CA radice caricati da C:\Program Files (x86)\Java\jre7\lib\security\cacerts
      security: Caricamento dei certificati SSL della CA radice da C:\Program Files (x86)\Java\jre7\lib\security\cacerts
      security: Certificati SSL della CA radice caricati da C:\Program Files (x86)\Java\jre7\lib\security\cacerts
      security: Caricamento certificati dallarea di memorizzazione dei certificati della sessione di distribuzione
      security: Certificati caricati dallarea di memorizzazione dei certificati della sessione di distribuzione
      security: Controllo della presenza del certificato nellarea di memorizzazione dei certificati respinti della distribuzione
      network: Connessione https://javadl-esd-secure.oracle.com/update/baseline.version con cookie "s_nr=1348836780560; ORA_UCM_INFO=3~C79C33B29E1ABF11E0401490B1AA7029~Matteo~Incerti~mincerti@progea.com; s_cc=true; s_sq=%5B%5BB%5D%5D; gpv_p24=https%3A//forums.oracle.com/forums/thread.jspa%3FmessageID%3D10018894; gpw_e24=https%3A//forums.oracle.com/forums/thread.jspa%3FmessageID%3D10018894"
      java.net.SocketException: Connection reset
           at java.net.SocketInputStream.read(Unknown Source)
           at java.net.SocketInputStream.read(Unknown Source)
           at java.io.BufferedInputStream.fill(Unknown Source)
           at java.io.BufferedInputStream.read1(Unknown Source)
           at java.io.BufferedInputStream.read(Unknown Source)
           at sun.net.www.MeteredStream.read(Unknown Source)
           at java.io.FilterInputStream.read(Unknown Source)
           at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(Unknown Source)
           at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(Unknown Source)
           at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(Unknown Source)
           at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.close(Unknown Source)
           at java.io.BufferedInputStream.close(Unknown Source)
           at sun.plugin.PluginURLJarFileCallBack.downloadJAR(Unknown Source)
           at sun.plugin.PluginURLJarFileCallBack.access$000(Unknown Source)
           at sun.plugin.PluginURLJarFileCallBack$1.run(Unknown Source)
           at java.security.AccessController.doPrivileged(Native Method)
           at sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)
           at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
           at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
           at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
           at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
           at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
           at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFileInternal(Unknown Source)
           at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
           at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(Unknown Source)
           at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$1000(Unknown Source)
           at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(Unknown Source)
           at java.security.AccessController.doPrivileged(Native Method)
           at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(Unknown Source)
           at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(Unknown Source)
           at com.sun.deploy.security.DeployURLClassPath$3.run(Unknown Source)
           at java.security.AccessController.doPrivileged(Native Method)
           at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
           at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
           at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
           at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
           at java.security.AccessController.doPrivileged(Native Method)
           at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
           at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
           at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
           at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
           at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
           at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
           at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
           at java.lang.ClassLoader.loadClass(Unknown Source)
           at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
           at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
           at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
           at java.lang.Thread.run(Unknown Source)
      network: Voce cache non trovata [URL: http://support.progea.com/webclient/MovWebClientX.jar, versione: null]
      network: Connessione a http://support.progea.com/webclient/MovWebClientX.jar con proxy=DIRECT
      network: Connessione a http://support.progea.com:80/ con proxy=DIRECT
      network: Connessione http://support.progea.com/webclient/MovWebClientX.jar con cookie "__utma=26485756.1851745410.1321431319.1348652624.1349419835.141; __utmz=26485756.1321431319.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmv=26485756.|1=User=Registered=1"


      I hope anyone can help me!

      Regards..
        • 1. Re: Applet stopped to work updating from java 6 to 7
          gimbal2
          java.net.SocketException: Connection reset
          Connection failure. One difference between Java 7 and Java 6 is that Java 7 prefers IPv6; it might just be that the client's networking hardware is not equipped to deal properly with that (which is something the client should be fixing as it is becoming more and more crucial). The general workaround for dealing with that is by adding -Djava.net.preferIPv4Stack=true to the command line parameters of Java; I have no idea how to do that for an applet though.

          I'm not saying it is the reason for the failure, but it is something to investigate.
          • 2. Re: Applet stopped to work updating from java 6 to 7
            969300
            Hi Gimbal2,

            first of all, thanks a lot for your response.

            Then, I explain you that launching Java Applet "stand alone" (out of the browser) it works correctly. The problem occurs only when I start it from a browser environment.

            I tried with Explorer, Chrome and Firefox, but I can't solve this issue. On the Web I found many suggestions related to Browsers settings and Java configurations but despite this, I can't load my Applet.

            Have you got any other ideas now?

            Thanks in advance
            • 3. Re: Applet stopped to work updating from java 6 to 7
              gimbal2
              Are you sure that "local" Java 7 is being used? When you execute 'java -version' on the command prompt, what do you get?

              And no, I don't have any more ideas. I remember seeing some threads regarding socket connection problems under Java 7, but I don't recall their outcome. You could try a forum search.