5 Replies Latest reply: Nov 7, 2009 3:44 PM by 843811 RSS

    Error during running Applet

    843811
      Wile running applet it writing to the consul:
      security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.
      security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws
      security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,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.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.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.javaws,com.sun.deploy,com.sun.jnlp
      security: property package.definition value null
      security: property package.definition new value com.sun.javaws
      security: property package.definition value com.sun.javaws
      security: property package.definition new value com.sun.javaws,com.sun.deploy
      security: property package.definition value com.sun.javaws,com.sun.deploy
      security: property package.definition new value 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.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.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
      security: property package.definition value com.sun.javaws,com.sun.deploy,com.sun.jnlp
      security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
      basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@cd2c3c
      network: Cache entry not found [url: http://localhost:8080/sense-race/applet.GameApplet.class?v=120, version: null]
      network: Connecting http://localhost:8080/sense-race/applet.GameApplet.class?v=120 with proxy=DIRECT
      network: Connecting http://localhost:8080/ with proxy=DIRECT
      network: Connecting http://localhost:8080/sense-race/applet.GameApplet.class?v=120 with cookie "sense-race-email="Snir"; sense-race-pass=x1x1x1; JSESSIONID=90D2B48FC6BDF236C8B68A84AA786001"

      And then:
      java.io.FileNotFoundException: http://localhost:8080/sense-race/applet.GameApplet.class?v=120
           at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
           at sun.plugin.PluginURLJarFileCallBack.downloadJAR(Unknown Source)
           at sun.plugin.PluginURLJarFileCallBack.access$000(Unknown Source)

      applet.GameApplet.class is the applet

      then:

      network: Cache entry not found [url: http://localhost:8080/sense-race/applet.GameApplet.class?v=120, version: null]
      network: Connecting http://localhost:8080/sense-race/applet.GameApplet.class?v=120 with proxy=DIRECT
      network: Connecting http://localhost:8080/sense-race/applet.GameApplet.class?v=120 with cookie "sense-race-email="Snir is big"; sense-race-pass=12345; JSESSIONID=90D2B48FC6BDF236C8B68A84AA786001"
      network: Cache entry not found [url: http://localhost:8080/sense-race/applet/GameApplet/class%3fv%3d118.class, version: null]
      network: Connecting http://localhost:8080/sense-race/applet/GameApplet/class%3fv%3d118.class with proxy=DIRECT
      network: Connecting http://localhost:8080/sense-race/applet/GameApplet/class%3fv%3d118.class with cookie "sense-race-email="Snir is big"; sense-race-pass=12345; JSESSIONID=90D2B48FC6BDF236C8B68A84AA786001"
      network: Cache entry not found [url: http://localhost:8080/sense-race/applet/GameApplet/class%3fv%3d118.class, version: null]
      network: Connecting http://localhost:8080/sense-race/applet/GameApplet/class%3fv%3d118.class with proxy=DIRECT
      network: Connecting http://localhost:8080/sense-race/applet/GameApplet/class%3fv%3d118.class with cookie "sense-race-email="Snir is big"; sense-race-pass=12345; JSESSIONID=90D2B48FC6BDF236C8B68A84AA786001"
      basic: load: class applet.GameApplet.class?v=118 not found.
      load: class applet.GameApplet.class?v=118 not found.
      java.lang.ClassNotFoundException: applet.GameApplet.class?v=118
           at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
           at java.lang.ClassLoader.loadClass(Unknown Source)
           at java.lang.ClassLoader.loadClass(Unknown Source)
           at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
           at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
           at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
           at java.lang.Thread.run(Unknown Source)
      Caused by: java.io.IOException: open HTTP connection failed:http://localhost:8080/sense-race/applet/GameApplet/class%3fv%3d118.class
           at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
           at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
           at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
           at java.security.AccessController.doPrivileged(Native Method)
           ... 7 more
      Exception: java.lang.ClassNotFoundException: applet.GameApplet.class?v=118
      security: Accessing keys and certificate in Mozilla user profile: null
        • 1. Re: Error during running Applet
          EJP
          java.io.FileNotFoundException: http://localhost:8080/sense-race/applet.GameApplet.class?v=120
          Caused by: java.io.IOException: open HTTP connection failed:http://localhost:8080/sense-race/applet/GameApplet/class%3fv%3d118.class
          What's that ?v=120 doing there?
          • 2. Re: Error during running Applet
            843811
            The v=120 is to avoid cash when changing version

            HTML Applet tag:
                 <APPLET CODE="applet.GameApplet.class?v=118" archive="applet.GameApplet.class?v=120" WIDTH="650" HEIGHT="480">
                 </APPLET>
            • 3. Re: Error during running Applet
              EJP
              And who implements that?

              At the moment it looks like nobody does.

              Remove it.
              • 4. Re: Error during running Applet
                baftos
                It says nowhere in here [http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/applet.html] that your syntax for CODE and ARCHIVE would be legal just because it resembles a URL query. By using it you avoid not only caching, but loading the applet as well. Get your applet to work without this, see if you have any caching problems and then you can ask here how to avoid caching.

                Edit: The same link does not suggest at all that you would be allowed to specify a class file in ARCHIVE. If your applet is not JAR-ed, get rid of ARCHIVE.

                Edited by: baftos on Nov 6, 2009 8:15 AM
                • 5. Re: Error during running Applet
                  843811
                  Ok I removed the archive and now I got StackOverflowError
                  network: Connecting http://localhost:8080/sense-race/applet/com/senserace/messages/UserMessages.class with proxy=DIRECT
                  network: Connecting http://localhost:8080/sense-race/applet/com/senserace/messages/UserMessages.class with cookie "sense-race-email="xxxxx"; sense-race-pass=xxxxx; JSESSIONID=80F2BB5B53D0E6CB4428662C2A147C6A"
                  basic: Removed progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@1833955
                  Exception in thread "thread applet-applet.GameApplet.class-1" java.lang.StackOverflowError
                       at sun.awt.SunToolkit.isInstanceOf(Unknown Source)
                       at sun.awt.SunToolkit.isInstanceOf(Unknown Source)
                       at sun.awt.SunToolkit.isInstanceOf(Unknown Source)
                       at sun.awt.SunToolkit.isInstanceOf(Unknown Source)
                       at sun.awt.SunToolkit.isInstanceOf(Unknown Source)
                       at sun.awt.SunToolkit.isInstanceOf(Unknown Source)
                       at javax.swing.LookAndFeel.installProperty(Unknown Source)
                       at javax.swing.plaf.basic.BasicButtonUI.installDefaults(Unknown Source)
                       at javax.swing.plaf.metal.MetalButtonUI.installDefaults(Unknown Source)
                       at javax.swing.plaf.basic.BasicButtonUI.installUI(Unknown Source)
                       at javax.swing.JComponent.setUI(Unknown Source)
                       at javax.swing.AbstractButton.setUI(Unknown Source)
                       at javax.swing.JButton.updateUI(Unknown Source)
                       at javax.swing.AbstractButton.init(Unknown Source)
                       at javax.swing.JButton.<init>(Unknown Source)
                       at javax.swing.JButton.<init>(Unknown Source)