0

当我启动 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 运行,但它是什么意思,我应该如何解决它?

4

1 回答 1

1

首先,我会尝试更新版本的 netbeans。6.0.1 已经超过 5 年了。

另外,尝试清除 netbeans 缓存。在 linux 上,它存储在 $HOME/.netbeans/
不确定它在 OSX 上的存储位置。

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

于 2013-04-08T19:55:10.217 回答