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

Merlinb59:FileChooserDemo:Internal Error on opening a folder that doesn't exist

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.4.0
    • client-libs
    • beta2
    • x86
    • windows_2000
    • Verified


      Steps to Reproduce:

      1) Launch FileChooser Demo.
      2) Click 'ShowFileChooser' button to launch FileChooser dialog.
      3) Click 'Create New Folder' button to create a new folder in any existing
      folder.
      4) Now in the Explorer, delete this new folder which you created.
      5) In the FileChooser Dialog, try to open this folder which you deleted (This
      should be done before refreshing the File/Folder list since this folder would
      still be visible in that list in this case).
      On doing so, Internal Error is raised on the console.

      This occurs on all the Windows platforms.

      %java -version
      java version "1.4.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b59)
      Java Hotspot(TM) Client VM (build 1.4.0-beta-b59, mixed mode)

      The following Error was raised:

      java.lang.InternalError: Could not parse file path
              at sun.awt.shell.Win32ShellFolder.initFile(Native Method)
              at sun.awt.shell.Win32ShellFolder.<init>(Win32ShellFolder.java:175)
              at sun.awt.shell.Win32ShellFolder.getCanonicalFile(Win32ShellFolder.jav
      :634)
              at javax.swing.plaf.basic.BasicFileChooserUI$DoubleClickListener.mouseC
      icked(BasicFileChooserUI.java:423)
              at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:2
      1)
              at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:2
      0)
              at java.awt.Component.processMouseEvent(Component.java:4909)
              at java.awt.Component.processEvent(Component.java:4732)
              at java.awt.Container.processEvent(Container.java:1337)
              at java.awt.Component.dispatchEventImpl(Component.java:3476)
              at java.awt.Container.dispatchEventImpl(Container.java:1399)
              at java.awt.Component.dispatchEvent(Component.java:3343)
              at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:330
      )
              at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3026

              at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2967)
              at java.awt.Container.dispatchEventImpl(Container.java:1373)
              at java.awt.Window.dispatchEventImpl(Window.java:1459)
              at java.awt.Component.dispatchEvent(Component.java:3343)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:439)
              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:1
      0)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136

              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:131

              at java.awt.Dialog.show(Dialog.java:498)
              at javax.swing.JFileChooser.showDialog(JFileChooser.java:688)
              at FileChooserDemo.actionPerformed(FileChooserDemo.java:367)
              at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1
      22)
              at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstr
      ctButton.java:1775)
              at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonMode
      .java:414)
              at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:25
      )
              at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButton
      istener.java:261)
              at java.awt.Component.processMouseEvent(Component.java:4906)
              at java.awt.Component.processEvent(Component.java:4732)
              at java.awt.Container.processEvent(Container.java:1337)
              at java.awt.Component.dispatchEventImpl(Component.java:3476)
              at java.awt.Container.dispatchEventImpl(Container.java:1399)
              at java.awt.Component.dispatchEvent(Component.java:3343)
              at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:330
      )
              at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3014

              at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2967)
              at java.awt.Container.dispatchEventImpl(Container.java:1373)
              at java.awt.Window.dispatchEventImpl(Window.java:1459)
              at java.awt.Component.dispatchEvent(Component.java:3343)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:439)
              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:1
      0)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136

              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:131

              at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

      ruchika.mehdiratta@Eng 2001-04-09

            leifs Leif Samuelsson (Inactive)
            rmehdirasunw Ruchika Mehdiratta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: