<div dir="ltr"><div><div><div><div><div><div>Hello Petr,<br><br></div>is there a known workaround for this particular issue?<br><br></div>If not, this regression should be fixed ASAP in my opinion.<br></div>FileChooser operations are essential for a lot of webstart applications.<br>
<br></div>It would be great if this issue could be found in JIRA sonewhere so it doesn't get lost...<br><br></div>Thanks,<br></div>Holger<br><div><div><div><div><div><br></div></div></div></div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2014-02-20 20:20 GMT+01:00 Petr Pchelko <span dir="ltr"><<a href="mailto:petr.pchelko@oracle.com" target="_blank">petr.pchelko@oracle.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Hello, Holger.<div><br></div><div>Thank you for the report.</div><div><br></div><div>The reason is that the ThreadPool is creating a thread in a ThreadGroup which is not associated with any AppContext. </div>
<div>I suppose that the fix for JDK-8019274 would also resolve this issue, but this should be checked. I’ll write back as I have a chance to check this.</div><div><br></div><div>With best regards. Petr.</div><div><br></div>
<div><div><div>20 февр. 2014 г., в 11:01 после полудня, Holger Brands <<a href="mailto:holger.brands@googlemail.com" target="_blank">holger.brands@googlemail.com</a>> написал(а):</div><div><div class="h5"><br><blockquote type="cite">
<div dir="ltr"><div><div><div>Hi there,<br><br>this is meant as a comment to issue<br><a href="https://bugs.openjdk.java.net/browse/JDK-8019274" target="_blank">https://bugs.openjdk.java.net/browse/JDK-8019274</a><br></div>
which describes a problem of RMI threads calling out to java.awt.EventQueue in a java webstart app.<br>
<br>I think it's a more general problem, not only related to RMI threads. Another scenario is the following:<br>
When you open a JFileChooser in a Java Webstart application, change the<br>
view to "Details" such that column headers appear
and then click on the name column to sort the shown entries, I get the<br>
following exception on Windows 7, both with Java 7u45 and Java 7u51:<br>
<br>
java.lang.NullPointerException<br>
at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)<br><div>
at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)<br>
at sun.awt.SunToolkit.getSystemEventQueueImpl(Unknown Source)<br>
at java.awt.Toolkit.getEventQueue(Unknown Source)<br>
at java.awt.EventQueue.isDispatchThread(Unknown Source)<br>
at javax.swing.SwingUtilities.isEventDispatchThread(Unknown Source)<br>
at javax.swing.JComponent.revalidate(Unknown Source)<br>
at javax.swing.JTable.resizeAndRepaint(Unknown Source)<br>
at javax.swing.JTable.sortedTableChanged(Unknown Source)<br>
at javax.swing.JTable.sorterChanged(Unknown Source)<br>
at javax.swing.RowSorter.fireRowSorterChanged(Unknown Source)<br>
at javax.swing.RowSorter.fireRowSorterChanged(Unknown Source)<br>
at javax.swing.DefaultRowSorter.sort(Unknown Source)<br>
at sun.swing.FilePane$DetailsTableRowSorter.access$1601(Unknown Source)<br>
at sun.swing.FilePane$DetailsTableRowSorter$1.call(Unknown Source)<br>
at sun.swing.FilePane$DetailsTableRowSorter$1.call(Unknown Source)<br>
at java.util.concurrent.FutureTask.run(Unknown Source)<br>
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)<br>
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)<br>
at sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run(Unknown
Source)<br>
at java.lang.Thread.run(Unknown Source)<br>
<br>
</div><div>It's a similiar stacktrace but not quite the same.<br></div><div>But I bet it's the same cause.<br></div><div><br>Please ensure when fixing JDK-8019274 that this variant is also fixed.<br>
</div><div>Also, I would be interested in a workaround for this FileChooser sorting issue.<br></div><br></div>Thanks,<br></div>Holger<br></div>
</blockquote></div></div></div><br></div></div></blockquote></div><br></div>