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

false mixed code warning dialog for a serialized applet

XMLWordPrintable

    • generic
    • generic

      Tested JRE: b135-pit http://rehudson.sfbay.sun.com/hudsonws/deploypit/bundles/ dir:b255-2011-03-24_52/
      Tested OS: winxp, solaris
      Tested browser: firefox 3.6.13, IE8

      Steps to reproduce:
      1) Open the following applet http://sqeweb.sfbay.sun.com/jsn/users/fred/reproduce/eventlistener/testObject.html
      This is a serialized applet. The serialized applet object is in the jar file PrintEventAppletSer.jar and it is signed. There is only one file PrintEventApplet.ser in PrintEventAppletSer.jar except for META-INF dir.

      2) Click "Run" on seruciry dialog

      3) If there is a mixed code security dialog, bug is reproduced. There is only one signed jar file in the html file, so mixed code dialog is not expected. Even though, after clicking "No" in the mixed code dialog, it throws following exception, applet can not be loaded.

      java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
      at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.runOnEDTAndWait(Unknown Source)
      at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.instantiateSerialApplet(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)
      Caused by: java.lang.reflect.InvocationTargetException
      at com.sun.deploy.uitoolkit.impl.awt.OldPluginAWTUtil.invokeAndWait(Unknown Source)
      ... 5 more
      Caused by: java.security.AccessControlException: access denied ("java.awt.AWTPermission" "listenToAllAWTEvents")
      at java.security.AccessControlContext.checkPermission(Unknown Source)
      at java.security.AccessController.checkPermission(Unknown Source)
      at java.lang.SecurityManager.checkPermission(Unknown Source)
      at java.awt.Toolkit.addAWTEventListener(Unknown Source)
      at PrintEventApplet.readResolve(PrintEventApplet.java:66)


      Source code location:
      http://sqeweb.sfbay.sun.com/jsn/users/fred/reproduce/eventlistener/
      Following tests are effected due to this bug:
      ConfiguredTitle/CT001_05
      ConfiguredTitle/CT001_06

            herrick Andy Herrick (Inactive)
            qgong Fred Gong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: