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

Pavel Porvatov pavel.porvatov at oracle.com
Mon Jan 16 14:44:48 UTC 2012


Hi Christiaan,
> 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).
I tried the described steps with the SwingSet2 demo and cannot reproduce 
your problem.
My environment is:

Microsoft Windows [Version 6.1.7601]
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b21)
Java HotSpot(TM) Client VM (build 23.0-b09, mixed mode)

> Not displaying the short cut folder as the bug fix shows
> probably isn't really a good solution.
The solution is good, because native file chooser doesn't contain 
shortcuts in drop-down list as well. But of course other errors also 
should be fixed....
> 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

Regards, Pavel



More information about the swing-dev mailing list