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

monitoring all EventQueues instead of specific EventQueues incompat. w/ webstart

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.0.3
    • 1.4.0
    • client-libs



      Name: nt126004 Date: 09/23/2002


      FULL PRODUCT VERSION :
      java version "1.4.1-rc"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-rc-b19)
      Java HotSpot(TM) Client VM (build 1.4.1-rc-b19, mixed mode)

      FULL OPERATING SYSTEM VERSION :
      glibc-2.2.5, Linux 2.4.19, Mandrake 8.3
       
      ADDITIONAL OPERATING SYSTEMS :


      A DESCRIPTION OF THE PROBLEM :
      Accessibility fails with JWS because JWS only lets accessibility
      monitor a single EventQueue instead of all EventQueues. JWS is
      likely doing the right thing and Accessibility is not configurable
      enough so it can monitor only one EventQueue.
      (It seemed like JWS was the best place to initially log the bug)
       


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Run the swingscroller demo in JWS
      2.
      3.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      I'd expect SwingScroller to work.
      Actual: stack trace.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      java.security.AccessControlException: access denied (java.awt.AWTPermission
      listenToAllAWTEvents)
      at
      java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
      at java.security.AccessController.checkPermission(AccessController.java:401)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
      at java.awt.Toolkit.addAWTEventListener(Toolkit.java:1730)
      at
      com.sun.java.accessibility.util.EventQueueMonitor.maybeInitialize(EventQueueMonitor.java:177)
      at
      com.sun.java.accessibility.util.EventQueueMonitor.addGUIInitializedListener(EventQueueMonitor.java:521)
      at com.cloudgarden.scroller.SwingScroller.<init>(SwingScroller.java:162)
      at com.wss.calendar.client.swing.Main.main(Main.java:66)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at com.sun.javaws.Launcher.executeApplication(Launcher.java:778)
      at com.sun.javaws.Launcher.executeMainClass(Launcher.java:740)
      at com.sun.javaws.Launcher.continueLaunch(Launcher.java:625)
      at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:352)
      at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:177)
      at com.sun.javaws.Launcher.run(Launcher.java:145)
      at java.lang.Thread.run(Thread.java:536)

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      Full source:
      http://www.cloudgarden.com/JSAPI/index.html
      menu(SwingScroller, download)
       
      package it normally in a JNLP app.

      ---------- END SOURCE ----------
      (Review ID: 164359)
      ======================================================================

            lmonsantsunw Lynn Monsanto (Inactive)
            nthompsosunw Nathanael Thompson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: