使用jdk 7 u 25及更高版本启动JNLP文件(load netbeans 6.5模块)时出现Nullpointer异常

时间:2014-09-25 10:32:08

标签: java java-7 jnlp netbeans-platform

申请详情:

基于Netbeans Platform 6.5的应用程序 JDK 7 u 25或更高版本。 JNLP

注意:

这个问题不适用于jdk 7 u 21.但是所有高于u21的版本都有这个问题。

用户操作:

用户在任何浏览器中输入jnlp文件的URL,比如chrome,以下载本地系统中的jnlp文件。下载JNLP文件后,用户单击它以启动应用程序。

行为:

单击jnlp文件时,将打开启动画面,并开始下载基于netbeans平台的模块。下载完成后,将加载这些模块。加载模块时会出现Nullpointer异常。

例外:

FINE [org.openide.filesystems.Ordering]: getOrder for [MultiFileObject@9e9ee3c[Toolbars/Explorers], MultiFileObject@1b1a7ef6[Toolbars/File]]
WARNING [org.openide.loaders.FolderList]: cannot compute data objects for MultiFileObject@172d3d[Toolbars]
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 org.openide.util.Mutex.doEvent(Mutex.java:1334)
    at org.openide.util.Mutex.readAccess(Mutex.java:345)
    at org.openide.awt.AWTTask.<init>(AWTTask.java:52)
    at org.openide.awt.ToolbarPool$Folder.postCreationTask(ToolbarPool.java:585)
    at org.openide.loaders.FolderInstance.processObjects(FolderInstance.java:653)
    at org.openide.loaders.FolderInstance$Listener.finished(FolderInstance.java:934)
    at org.openide.loaders.FolderList.createBoth(FolderList.java:873)
    at org.openide.loaders.FolderList.getObjects(FolderList.java:562)
    at org.openide.loaders.FolderList.access$300(FolderList.java:74)
    at org.openide.loaders.FolderList$ListTask.computeResult(FolderList.java:955)
[catch] at org.openide.loaders.FolderList$ListTask.run(FolderList.java:933)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
SEVERE [org.openide.util.RequestProcessor]
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.invokeLater(Unknown Source)
    at javax.swing.SwingUtilities.invokeLater(Unknown Source)
    at org.netbeans.core.NotifyExcPanel.notify(NotifyExcPanel.java:276)
    at org.netbeans.core.NbErrorManager.publish(NbErrorManager.java:85)
    at org.netbeans.core.startup.TopLogging$LookupDel.publish(TopLogging.java:798)
    at java.util.logging.Logger.log(Unknown Source)
    at java.util.logging.Logger.doLog(Unknown Source)
    at java.util.logging.Logger.log(Unknown Source)
    at org.openide.loaders.FolderList$ListTask.run(FolderList.java:938)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Exception in thread "Folder recognizer" 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.invokeLater(Unknown Source)
    at javax.swing.SwingUtilities.invokeLater(Unknown Source)
    at org.netbeans.core.NotifyExcPanel.notify(NotifyExcPanel.java:276)
    at org.netbeans.core.NbErrorManager.publish(NbErrorManager.java:85)
    at org.netbeans.core.startup.TopLogging$LookupDel.publish(TopLogging.java:798)
    at java.util.logging.Logger.log(Unknown Source)
    at java.util.logging.Logger.doLog(Unknown Source)
    at java.util.logging.Logger.log(Unknown Source)
    at org.openide.util.RequestProcessor$Processor.doNotify(RequestProcessor.java:1072)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1016)**

0 个答案:

没有答案