<Swing Dev> Another incarnation of the EventQueue NPE
Holger Brands
holger.brands at googlemail.com
Thu Feb 20 19:01:29 UTC 2014
Hi there,
this is meant as a comment to issue
https://bugs.openjdk.java.net/browse/JDK-8019274
which describes a problem of RMI threads calling out to java.awt.EventQueue
in a java webstart app.
I think it's a more general problem, not only related to RMI threads.
Another scenario is the following:
When you open a JFileChooser in a Java Webstart application, change the
view to "Details" such that column headers appear and then click on the
name column to sort the shown entries, I get the
following exception on Windows 7, both with Java 7u45 and Java 7u51:
java.lang.NullPointerException
at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
at sun.awt.SunToolkit.getSystemEventQueueImpl(Unknown Source)
at java.awt.Toolkit.getEventQueue(Unknown Source)
at java.awt.EventQueue.isDispatchThread(Unknown Source)
at javax.swing.SwingUtilities.isEventDispatchThread(Unknown Source)
at javax.swing.JComponent.revalidate(Unknown Source)
at javax.swing.JTable.resizeAndRepaint(Unknown Source)
at javax.swing.JTable.sortedTableChanged(Unknown Source)
at javax.swing.JTable.sorterChanged(Unknown Source)
at javax.swing.RowSorter.fireRowSorterChanged(Unknown Source)
at javax.swing.RowSorter.fireRowSorterChanged(Unknown Source)
at javax.swing.DefaultRowSorter.sort(Unknown Source)
at sun.swing.FilePane$DetailsTableRowSorter.access$1601(Unknown Source)
at sun.swing.FilePane$DetailsTableRowSorter$1.call(Unknown Source)
at sun.swing.FilePane$DetailsTableRowSorter$1.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
It's a similiar stacktrace but not quite the same.
But I bet it's the same cause.
Please ensure when fixing JDK-8019274 that this variant is also fixed.
Also, I would be interested in a workaround for this FileChooser sorting
issue.
Thanks,
Holger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20140220/c4afddc2/attachment.html>
More information about the swing-dev
mailing list