Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6688396

Exception getting thrown on refreshing the applets and JVM fails to start sometimes

    Details

    • Subcomponent:
    • Introduced In Version:
    • Resolved In Build:
      b23
    • CPU:
      generic
    • OS:
      generic, windows
    • Verification:
      Verified

      Description

      With latest nightly bundles(dated apr 14) regression in behavior of applets has been noticed when browser/page is refreshed or reloaded. Following exception are getting thrown and applets fails/JRE fails to re-start on certain occasions. Bug can be reproduced with applets using or not using JNLP support
      - Install JRE(bundle dated Apr-14)
      - Try loading following applets. Try to refresh and reload them
      Simple applets not using JNLP:
      ------------------------------
      http://sqeweb.sfbay.sun.com/deployment2/jitu/plug-bug/ALC/JOptionPaneTest.html
      http://sqeweb.sfbay.sun.com/deployment2/jitu/plug-bug/ALC/PrintThread.html
      http://sqeweb.sfbay.sun.com/deployment2/jitu/plug-bug/ojiliveconnect/src/JSAppletCommunication.html

      Simple applets using JNLP:
      -------------------------
      http://nicole1.sfbay.sun.com:8080/plugin_tests/JNLPSupport/AppletLifecycle/htmls/PrintThread1.html
      http://nicole1.sfbay.sun.com:8080/plugin_tests/JNLPSupport/applets/AppletBasics/JNLPBasicS
      ervice1-jnlp-applet-abs.html

      If you can notice any of the following exception getting raised and applet fails to relaod then bug is reproduced
      1)
      java.lang.NullPointerException
      at sun.plugin2.applet.JNLP2Manager.storeJarVersionMapInAppContext(Unknown Source)
      at sun.plugin2.applet.JNLP2Manager.prepareLaunchFile(Unknown Source)
      at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Exception: java.lang.NullPointerException

      2)
      Exception in thread "AWT-EventQueue-33" java.lang.InternalError: couldn't create component peer
      at sun.awt.windows.WComponentPeer.checkCreation(Unknown Source)
      at sun.awt.windows.WComponentPeer.<init>(Unknown Source)
      at sun.awt.windows.WCanvasPeer.<init>(Unknown Source)
      at sun.awt.windows.WPanelPeer.<init>(Unknown Source)
      at sun.awt.windows.WWindowPeer.<init>(Unknown Source)
      at sun.awt.windows.WFramePeer.<init>(Unknown Source)
      at sun.awt.windows.WEmbeddedFramePeer.<init>(Unknown Source)
      at sun.awt.windows.WToolkit.createEmbeddedFrame(Unknown Source)
      at sun.awt.windows.WEmbeddedFrame.addNotify(Unknown Source)
      at sun.awt.windows.WEmbeddedFrame.<init>(Unknown Source)
      at sun.plugin2.main.client.PluginEmbeddedFrame.<init

      3)
      java.nio.channels.OverlappingFileLockException
      at sun.nio.ch.FileChannelImpl$SharedFileLockTable.checkList(Unknown Source)
      at sun.nio.ch.FileChannelImpl$SharedFileLockTable.add(Unknown Source)
      at sun.nio.ch.FileChannelImpl.lock(Unknown Source)
      at com.sun.deploy.cache.CacheEntry.lockFile(Unknown Source)
      at com.sun.deploy.cache.CacheEntry.readIndexFile(Unknown Source)
      at com.sun.deploy.cache.CacheEntry.access$000(Unknown Source)
      at com.sun.deploy.cache.CacheEntry$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)

      4)
      com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://nicole1.sfbay.sun.com:8080/plugin_tests/JNLPSupport/AppletLifecycle/classes/PrintThreadTest.jnlp
      at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
      at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
      at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
      at com.sun.deploy.net.DownloadEngine.getCachedFile(Unknown Source)
      at sun.plugin2.applet.JNLP2Manager.prepareToLaunch(Unknown Source)
      at sun.plugin2.applet.JNLP2Manager.initialize(Unknown Source)
      at sun.plugin2.main.client.PluginMain$StartAppletRunner.run(Unknown Source

      5)netscape.javascript.JSException
      at sun.plugin2.main.client.MessagePassingJSObject.newJSException(Unknown Source)
      at sun.plugin2.main.client.MessagePassingJSObject.waitForReply(Unknown Source)
      at sun.plugin2.main.client.MessagePassingJSObject.doMemberOp(Unknown Source)
      at sun.plugin2.main.client.MessagePassingJSObject.getMember(Unknown Source)
      at JSAppletsComm.init(JSAppletsComm.java:31)
      at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.InterruptedException
      at java.lang.Object.wait(Native Method)
      at sun.plugin2.message.Queue.waitForMessage(Unknown Source)
      at sun.plugin2.message.Pipe.receive(Unknown Source)
      ... 6 more
      basic: Applet initialized
      java.lang.Exception: comp is null
      at sun.plugin2.applet.Plugin2Manager.runOnEDT(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sgothelsunw Sven Gothel (Inactive)
                Reporter:
                jijising Jitender Singh (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: