-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.4.0
-
x86
-
generic
When using JFileChooser, the application crashed throwing java.lang.InternalError. This was found happening in Windows2000 professional edition and WindowsME.
Error seen in the console:
Exception in thread "main" java.lang.InternalError: Could not parse file path
at sun.awt.shell.Win32ShellFolder.initFile(Native Method)
at sun.awt.shell.Win32ShellFolder.<init>(Unknown Source)
at sun.awt.shell.Win32ShellFolder.getCanonicalFile(Unknown Source)
at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.addI
tem(Unknown Source)
at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.acce
ss$2200(Unknown Source)
at javax.swing.plaf.metal.MetalFileChooserUI.doDirectoryChanged(Unknown
Source)
at javax.swing.plaf.metal.MetalFileChooserUI.access$2400(Unknown Source)
at javax.swing.plaf.metal.MetalFileChooserUI$11.propertyChange(Unknown S
ource)
at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(Unkno
wn Source)
at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(Unkno
wn Source)
at javax.swing.JComponent.firePropertyChange(Unknown Source)
at javax.swing.JFileChooser.setCurrentDirectory(Unknown Source)
at javax.swing.JFileChooser.<init>(Unknown Source)
at javax.swing.JFileChooser.<init>(Unknown Source)
at FileChooserDemo.<init>(FileChooserDemo.java:21)
at FileChooserDemo.main(FileChooserDemo.java:73)
Code to reproduce the bug:
import javax.swing.*;
class FileChooserTest {
public static void main(String args[]) {
JFileChooser jfc = new JFileChooser();
}
}
Error seen in the console:
Exception in thread "main" java.lang.InternalError: Could not parse file path
at sun.awt.shell.Win32ShellFolder.initFile(Native Method)
at sun.awt.shell.Win32ShellFolder.<init>(Unknown Source)
at sun.awt.shell.Win32ShellFolder.getCanonicalFile(Unknown Source)
at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.addI
tem(Unknown Source)
at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.acce
ss$2200(Unknown Source)
at javax.swing.plaf.metal.MetalFileChooserUI.doDirectoryChanged(Unknown
Source)
at javax.swing.plaf.metal.MetalFileChooserUI.access$2400(Unknown Source)
at javax.swing.plaf.metal.MetalFileChooserUI$11.propertyChange(Unknown S
ource)
at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(Unkno
wn Source)
at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(Unkno
wn Source)
at javax.swing.JComponent.firePropertyChange(Unknown Source)
at javax.swing.JFileChooser.setCurrentDirectory(Unknown Source)
at javax.swing.JFileChooser.<init>(Unknown Source)
at javax.swing.JFileChooser.<init>(Unknown Source)
at FileChooserDemo.<init>(FileChooserDemo.java:21)
at FileChooserDemo.main(FileChooserDemo.java:73)
Code to reproduce the bug:
import javax.swing.*;
class FileChooserTest {
public static void main(String args[]) {
JFileChooser jfc = new JFileChooser();
}
}
- duplicates
-
JDK-4423768 JCK1.3a: plugin: java.lang.InternalError: Could not get shell folder ID list
-
- Closed
-