我在jre6.0.33 +中运行的applet代码中获得此堆栈跟踪但在7.025中失败了。任何人都可以帮助我理解为什么并且正确吗?
Exception in thread "AWT-EventQueue-2" 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$Sync.innerRun(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)
答案 0 :(得分:0)
Mea culpa 是的,我应该克制并阅读。问题是排序对话框。我接受了我的失败惩罚。我希望尽管他们是,我仍然可以发布天真。请注意,这不是讽刺,即使声明压力很大。
答案 1 :(得分:0)
我也是如此,它显然是一个"化身"根据{{3}},this bug。它似乎是固定的,但仅限于JDK8版本。 OTOH,似乎有一个" Apple补丁"修正了(大概)JDK 7(但仅限Apple用户)。