Netbeans启动时出现NullpointerException



当我启动Netbeans 6.0.1时,我得到以下错误消息:

java.lang.NullPointerException
    at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:521)
    at com.sun.servicetag.RegistrationDocument.initializeDocument(RegistrationDocument.java:121)
    at com.sun.servicetag.RegistrationDocument.load(RegistrationDocument.java:81)
    at com.sun.servicetag.RegistrationData.loadFromXML(RegistrationData.java:392)
    at org.netbeans.modules.reglib.NbServiceTagSupport.getRegistrationData(NbServiceTagSupport.java:373)
    at org.netbeans.modules.reglib.NbServiceTagSupport.getNbServiceTag(NbServiceTagSupport.java:453)
    at org.netbeans.modules.reglib.NbServiceTagSupport.createNbServiceTag(NbServiceTagSupport.java:171)
    at org.netbeans.modules.registration.NbInstaller.restored(NbInstaller.java:98)
    at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:378)
    at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:297)
    at org.netbeans.ModuleManager.enable(ModuleManager.java:933)
    at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:405)
    at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:341)
    at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:275)
    at org.netbeans.core.startup.Main.getModuleSystem(Main.java:171)
    at org.netbeans.core.startup.Main.start(Main.java:322)
    at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:110)
[catch] at java.lang.Thread.run(Thread.java:655)

我认为这并不能阻止Netbeans的运行,但这意味着什么,我应该如何修复它?

首先,我会尝试使用较新版本的netbeans。6.0.1已经超过5岁了。

同时,尝试清空netbeans缓存。在linux上,它存储在$HOME/.netbeans/
不确定在OSX上存储在哪里

至于它的意思-阅读这个问题/答案:什么是空指针异常?

相关内容

  • 没有找到相关文章

最新更新