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

Occurs IOException while press "Ctrl + C" on My Computer icon in JFileChooser

XMLWordPrintable

      FULL PRODUCT VERSION :
      java version "1.5.0_04"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
      Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)


      ADDITIONAL OS VERSION INFORMATION :
      Windows XP Professional with SP1a (Simplified Chinese)


      EXTRA RELEVANT SYSTEM CONFIGURATION :
      NetVista M42 8307-41C (CPU: Pentium 4 2.4GHz, Memory: 1G, Video: Intel 82845G)


      A DESCRIPTION OF THE PROBLEM :
      In JFileChooser component, i can see My computer icon in home directory, i try copy on My computer icon, i think copy-action will be legality. but java vm thrown IOException.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Select current listed directory to "Desktop".
      2. Focus to "My Computer" with mouse click.
      3. Press "Ctrl+C" copy selected item to Clipboard.
      4. An java.io.IOException thrown.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Copy action should be running, or don't list My computer icon in home directory
      ACTUAL -
      An java.io.IOException thrown

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      java.io.IOException
              at sun.awt.datatransfer.DataTransferer.translateTransferable(DataTransfe
      rer.java:1222)
              at sun.awt.windows.WDataTransferer.translateTransferable(WDataTransferer
      .java:162)
              at sun.awt.windows.WClipboard.setContentsNative(WClipboard.java:73)
              at sun.awt.datatransfer.SunClipboard.setContents(SunClipboard.java:93)
              at javax.swing.TransferHandler.exportToClipboard(TransferHandler.java:22
      7)
              at javax.swing.TransferHandler$TransferAction.actionPerformed(TransferHa
      ndler.java:833)
              at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1571)
              at javax.swing.JComponent.processKeyBinding(JComponent.java:2763)
              at javax.swing.JComponent.processKeyBindings(JComponent.java:2798)
              at javax.swing.JComponent.processKeyEvent(JComponent.java:2726)
              at java.awt.Component.processEvent(Component.java:5265)
              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.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.ja
      va:1810)
              at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboard
      FocusManager.java:672)
              at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeybo
      ardFocusManager.java:920)
              at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeybo
      ardFocusManager.java:798)
              at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFoc
      usManager.java:636)
              at java.awt.Component.dispatchEventImpl(Component.java:3841)
              at java.awt.Container.dispatchEventImpl(Container.java:2024)
              at java.awt.Window.dispatchEventImpl(Window.java:1774)
              at java.awt.Component.dispatchEvent(Component.java:3803)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
              at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
      read.java:242)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
      ad.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)

      REPRODUCIBILITY :
      This bug can be reproduced always.

            tr Tejesh R
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: