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

Failed to create caching file in random

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0
    • Component/s: deploy
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b58
    • CPU:
      generic
    • OS:
      generic

      Description

      CachedFileLoader fails to save the downloaded resource. It seems to have racing condition, since it breaks in different places for the same test.

      java.io.IOException: The handle is invalid
          at java.io.RandomAccessFile.seek(Native Method)
          at sun.plugin.cache.CachedFileLoader.createCacheFiles(CachedFileLoader.java:403)
          at sun.plugin.cache.CachedFileLoader.access$200(CachedFileLoader.java:34)
          at sun.plugin.cache.CachedFileLoader$3.run(CachedFileLoader.java:293)
          at java.security.AccessController.doPrivileged(Native Method)
          at sun.plugin.cache.CachedFileLoader.download(CachedFileLoader.java:291)
          at sun.plugin.cache.CachedFileLoader.load(CachedFileLoader.java:103)
          at sun.plugin.cache.FileCache.get(FileCache.java:136)
          at sun.plugin.cache.PluginCacheHandler.get(PluginCacheHandler.java:87)
          at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
          at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
          at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
          at java.net.HttpURLConnection.getResponseCode(Unknown Source)
          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)
          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 java.lang.ClassLoader.loadClassInternal(Unknown Source)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Unknown Source)
          at VerifierTest.testVerifierHack(VerifierTest.java:36)
          at VerifierTest.test(VerifierTest.java:48)
          at SecurityTest.paint(SecurityTest.java:63)
          at SecurityTestApplet.paint(SecurityTestApplet.java:98)
          at java.awt.Container.update(Unknown Source)
          at sun.awt.RepaintArea.updateComponent(Unknown Source)
          at sun.awt.RepaintArea.paint(Unknown Source)
          at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
          at java.awt.Component.dispatchEventImpl(Unknown Source)
          at java.awt.Container.dispatchEventImpl(Unknown Source)
          at java.awt.Component.dispatchEvent(Unknown Source)
          at java.awt.EventQueue.dispatchEvent(Unknown Source)
          at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
          at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
          at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
          at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

        Attachments

          Activity

            People

            Assignee:
            zgu Zhengyu Gu
            Reporter:
            zgu Zhengyu Gu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: