<Swing Dev> <AWT Dev> JFileChooser: Nullpointer navigating shortcut folder on Windows

Christiaan christiaan_db at hotmail.com
Mon Jan 16 10:39:29 UTC 2012


Dear Pavel, 
I do see the bug again in the bug database, so probably just a temporary
problem. I tried it with jdk 8 b21 but I still get this error. I do see a
difference with the reported bug in the database. I select the desktop
option in the file chooser and next I double click on the available short
cut folder (so I don't do anything in the drop down box as the bug
description). Not displaying the short cut folder as the bug fix shows
probably isn't really a good solution. I get the following error: 

java.lang.InternalError: Unable to bind C:\Users\cdesbouvrie\Desktop\Data -
Shortcut.lnk to parent 
        at
sun.awt.shell.Win32ShellFolder2$4.call(Win32ShellFolder2.java:414) 

Complete stack trace: 
java.lang.InternalError: Unable to bind C:\Users\cdesbouvrie\Desktop\Data -
Shortcut.lnk to parent 
        at
sun.awt.shell.Win32ShellFolder2$4.call(Win32ShellFolder2.java:414) 
        at
sun.awt.shell.Win32ShellFolder2$4.call(Win32ShellFolder2.java:398) 
        at
sun.awt.shell.Win32ShellFolderManager2$ComInvoker.invoke(Win32ShellFolderManager2.java:533) 
        at sun.awt.shell.ShellFolder.invoke(ShellFolder.java:514) 
        at
sun.awt.shell.Win32ShellFolder2.getIShellFolder(Win32ShellFolder2.java:398) 
        at
sun.awt.shell.Win32ShellFolder2.access$200(Win32ShellFolder2.java:72) 
        at
sun.awt.shell.Win32ShellFolder2$16.call(Win32ShellFolder2.java:1088) 
        at
sun.awt.shell.Win32ShellFolder2$16.call(Win32ShellFolder2.java:1086) 
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 
        at java.util.concurrent.FutureTask.run(FutureTask.java:166) 
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) 
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) 
        at
sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run(Win32ShellFolderManager2.java:502) 
        at java.lang.Thread.run(Thread.java:722) 

kind regards, 
Christiaan
-- 
View this message in context: http://old.nabble.com/Re%3A-%3CSwing-Dev%3E-%3CAWT-Dev%3E-JFileChooser%3A-Nullpointer-navigating-shortcut-folder-on-Windows-tp33133976p33146716.html
Sent from the OpenJDK Swing Development mailing list archive at Nabble.com.




More information about the swing-dev mailing list