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

Rare Random exception in SecureRandom.engineNextBytes (in JNLP applets)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 6u23
    • security-libs

      FULL PRODUCT VERSION :
      Java SE 1.6.0_23

      ADDITIONAL OS VERSION INFORMATION :
      Windows XP

      A DESCRIPTION OF THE PROBLEM :
      Received a random crash/hang from the java plugin2 when running a jnlp applet. It only happened once but i was able to catch the exception thrown out.

      Console output pasted below.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Very rarely happens when starting a jnlp applet

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      not to happen
      ACTUAL -
      happens rarely

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      sun.plugin2.main.client.PluginMain: unrecognized message ID 42
      Exception in thread "Thread-13" java.lang.NoClassDefFoundError: Could not initialize class sun.security.provider.SeedGenerator
      at sun.security.provider.SecureRandom.engineNextBytes(Unknown Source)
      at java.security.SecureRandom.nextBytes(Unknown Source)
      at java.security.SecureRandom.next(Unknown Source)
      at java.util.Random.nextInt(Unknown Source)
      at com.sun.deploy.cache.Cache.getRandom(Unknown Source)
      at com.sun.deploy.cache.Cache$15.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.deploy.cache.Cache.generateCacheFileName(Unknown Source)
      at com.sun.deploy.cache.Cache.downloadResourceToTempFile(Unknown Source)
      at com.sun.deploy.cache.Cache.downloadResourceToCache(Unknown Source)
      at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
      at com.sun.deploy.net.DownloadEngine.getCacheEntry(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 com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
      at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
      at sun.plugin2.applet.JNLP2Manager.initialize(Unknown Source)
      at sun.plugin2.main.client.PluginMain.initManager(Unknown Source)
      at sun.plugin2.main.client.PluginMain.access$300(Unknown Source)
      at sun.plugin2.main.client.PluginMain$2.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

      REPRODUCIBILITY :
      This bug can be reproduced rarely.

            wetmore Bradford Wetmore
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: