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

Applet fails to launch on virtual desktop

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b76
    • OS:
      windows

      Backports

        Description

        Applet fails to launch on virtual desktop and throws AWT exceptions.

        Steps to reproduce
          - install 9 b71 on Windows (tested on Win7 64-bit)
             http://jre.us.oracle.com/java/re/jdk/9/promoted/all/b71/bundles/windows-i586/
         - install Desktops tool from Sysinternals
            https://technet.microsoft.com/en-us/library/cc817881.aspx
         - switch to 4 desktop (works fine for first dekstop)
         - enable console in JCP, run applet in FF
            http://docs.oracle.com/javase/tutorial/deployment/applet/deployingApplet.html
         - it fails with the following message in console

        Exception in thread "AWT-EventQueue-2" java.lang.ClassCastException: Component must be a Canvas or Window
        at java.awt.Component$FlipBufferStrategy.<init>(Component.java:4054)
        at java.awt.Component$FlipSubRegionBufferStrategy.<init>(Component.java:4587)
        at java.awt.Component.createBufferStrategy(Component.java:3927)
        at java.awt.Component$1.createBufferStrategy(Component.java:980)
        at javax.swing.BufferStrategyPaintManager$BufferInfo.createBufferStrategy(BufferStrategyPaintManager.java:791)
        at javax.swing.BufferStrategyPaintManager$BufferInfo.createBufferStrategy(BufferStrategyPaintManager.java:757)
        at javax.swing.BufferStrategyPaintManager$BufferInfo.getBufferStrategy(BufferStrategyPaintManager.java:699)
        at javax.swing.BufferStrategyPaintManager.prepare(BufferStrategyPaintManager.java:476)
        at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:232)
        at javax.swing.RepaintManager.paint(RepaintManager.java:1302)
        at javax.swing.JComponent.paint(JComponent.java:1039)
        at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
        at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:78)
        at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:115)
        at java.awt.Container.paint(Container.java:1998)
        at javax.swing.RepaintManager$4.run(RepaintManager.java:857)
        at javax.swing.RepaintManager$4.run(RepaintManager.java:829)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:77)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:829)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:804)
        at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:753)
        at javax.swing.RepaintManager.access$1200(RepaintManager.java:65)
        at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1762)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:759)
        at java.awt.EventQueue.access$500(EventQueue.java:97)
        at java.awt.EventQueue$3.run(EventQueue.java:712)
        at java.awt.EventQueue$3.run(EventQueue.java:706)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:77)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:729)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:192)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:106)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:102)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:94)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ssadetsky Semyon Sadetsky (Inactive)
                  Reporter:
                  dcherepanov Dmitry Cherepanov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: