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

Solaris x86 JDS: SwingSet2 demo - Exceptions thrown when GTK L&F is chosen

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: client-libs

      Description

      OS Tested - Solaris IA 10
      Desktop - JDS

      Steps to reproduce -

      1) Install jdk1.5.0-b63 from the following location -

      /net/koori.sfbay/a/v04/jdk/1.5.0/rc/bundles/*

      2) Invoke the SwingSet2 demos by the following command

      {JDK_DIR}/bin/appletviewer {JDK_DIR}/demo/jfc/SwingSet2/SwingSet2.html

      3) The demo should load fine.

      4) Choose GTK Style Look and Feel. Exceptions are thrown on the terminal. Also, the demo sometimes hangs (8/10 times).

      -----------------------------------------------------------------------------

      Exception in thread "AWT-EventQueue-1" java.lang.ExceptionInInitializerError
              at com.sun.java.swing.plaf.gtk.GTKPainter.getInsets(GTKPainter.java:83)
              at com.sun.java.swing.plaf.gtk.GTKStyle.getInsets(GTKStyle.java:262)
              at javax.swing.plaf.synth.SynthStyle.installDefaults(SynthStyle.java:807)
              at javax.swing.plaf.synth.SynthLookAndFeel.updateStyle(SynthLookAndFeel.java:241)
              at javax.swing.plaf.synth.SynthInternalFrameUI.updateStyle(SynthInternalFrameUI.java:75)
              at javax.swing.plaf.synth.SynthInternalFrameUI.installDefaults(SynthInternalFrameUI.java:51)
              at javax.swing.plaf.basic.BasicInternalFrameUI.installUI(BasicInternalFrameUI.java:87)
              at javax.swing.JComponent.setUI(JComponent.java:650)
              at javax.swing.JInternalFrame.setUI(JInternalFrame.java:326)
              at javax.swing.JInternalFrame.updateUI(JInternalFrame.java:342)
              at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1146)
              at javax.swing.SwingUtilities.updateComponentTreeUI(SwingUtilities.java:1138)
              at javax.swing.JInternalFrame$JDesktopIcon.updateUI(JInternalFrame.java:2131)
              at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1146)
              at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1157)
              at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1157)
              at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1157)
              at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1157)
              at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1157)
              at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1157)
              at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1157)
              at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1157)
              at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1157)
              at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1157)
              at javax.swing.SwingUtilities.updateComponentTreeUI(SwingUtilities.java:1138)
              at SwingSet2.updateThisSwingSet(SwingSet2.java:1045)
              at SwingSet2.updateLookAndFeel(SwingSet2.java:1068)
              at SwingSet2.setLookAndFeel(SwingSet2.java:1031)
              at SwingSet2$ChangeLookAndFeelAction.actionPerformed(SwingSet2.java:1218)
              at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
              at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
              at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
              at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:269)
              at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
              at com.sun.java.swing.plaf.motif.MotifRadioButtonMenuItemUI$MouseInputHandler.mouseReleased(MotifRadioButtonMenuItemUI.java:96)
              at java.awt.Component.processMouseEvent(Component.java:5488)
              at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
              at java.awt.Component.processEvent(Component.java:5253)
              at java.awt.Container.processEvent(Container.java:1966)
              at java.awt.Component.dispatchEventImpl(Component.java:3955)
              at java.awt.Container.dispatchEventImpl(Container.java:2024)
              at java.awt.Component.dispatchEvent(Component.java:3803)
              at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
              at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
              at java.awt.Container.dispatchEventImpl(Container.java:2010)
              at java.awt.Component.dispatchEvent(Component.java:3803)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
              at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
      Caused by: java.security.AccessControlException: access denied (java.io.FilePermission /usr/share/themes/blueprint/metacity-1/metacity-theme-1.xml read)
              at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
              at java.security.AccessController.checkPermission(AccessController.java:427)
              at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
              at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
              at java.io.File.isDirectory(File.java:721)
              at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:65)
              at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
              at java.net.URL.openStream(URL.java:1007)
              at com.sun.java.swing.plaf.gtk.Metacity.getXMLDoc(Metacity.java:1413)
              at com.sun.java.swing.plaf.gtk.Metacity.<init>(Metacity.java:99)
              at com.sun.java.swing.plaf.gtk.Metacity.<clinit>(Metacity.java:53)
      -------------------------------------------------------------------------------

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joutwatesunw Joshua Outwater (Inactive)
              Reporter:
              anprabha Anjana Prabhakar (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: