My Netbeans 7.4在尝试打开文件(sql文件)时冻结,并引用此帖子底部的错误日志。现在,this bug seems to have been around in one form or another已经12年了!!最新的补丁似乎位于名为KarmaPreferences.java的文件中。现在,这个文件似乎是javascript模块的一部分。看起来我应该能够简单地禁用或卸载javascript支持,而不必从夜间构建重新安装netbeans,打破谁知道在此过程中还有什么。但是,当我尝试从ModuleManager执行此操作时,我被告知将卸载一大堆应该完全不相关的模块,包括Ant,Java(严重?!),Python,Service Registry和IDE Platform。在vanilla插件对话框中,Javascript甚至不会显示为已安装或可安装的插件。
所以,如果我愿意摆脱不必要的模块,我应该卸载什么才能让Netbeans每次打开文件都停止冻结?或者,下面是红鲱鱼,我应该在其他地方寻找Netbeans冻结的原因?感谢。
SEVERE [org.openide.util.Exceptions]
java.lang.IllegalStateException: WARNING: Going from readAccess to writeAccess through queue, see #10778: http://www.netbeans.org/issues/show_bug.cgi?
id=10778
[catch] at org.openide.util.Mutex.enterImpl(Mutex.java:709)
at org.openide.util.Mutex.enter(Mutex.java:641)
at org.openide.util.Mutex.writeEnter(Mutex.java:619)
at org.openide.util.Mutex.writeAccess(Mutex.java:440)
at org.netbeans.modules.python.api.PythonPlatformManager.storePlatform(PythonPlatformManager.java:212)
at org.netbeans.modules.python.api.PythonPlatformManager.getBundledPlatform(PythonPlatformManager.java:98)
at org.netbeans.modules.python.api.PythonPlatformManager.load(PythonPlatformManager.java:176)
at org.netbeans.modules.python.api.PythonPlatformManager.<init>(PythonPlatformManager.java:61)
at org.netbeans.modules.python.api.PythonPlatformManager.getInstance(PythonPlatformManager.java:112)
at org.netbeans.modules.python.project.ui.actions.RunSingleCommand.<init>(RunSingleCommand.java:34)
at org.netbeans.modules.python.project.PythonActionProvider.<init>(PythonActionProvider.java:45)
at org.netbeans.modules.python.project.PythonProject.createLookup(PythonProject.java:95)
at org.netbeans.modules.python.project.PythonProject.<init>(PythonProject.java:72)
at org.netbeans.modules.python.project.PythonProjectType.createProject(PythonProjectType.java:31)
at org.netbeans.modules.project.ant.AntBasedProjectFactorySingleton.loadProject(AntBasedProjectFactorySingleton.java:264)
at org.netbeans.api.project.ProjectManager.createProject(ProjectManager.java:371)
at org.netbeans.api.project.ProjectManager.access$300(ProjectManager.java:86)
at org.netbeans.api.project.ProjectManager$2.run(ProjectManager.java:292)
at org.netbeans.api.project.ProjectManager$2.run(ProjectManager.java:235)
at org.openide.util.Mutex.readAccess(Mutex.java:337)
at org.netbeans.api.project.ProjectManager.findProject(ProjectManager.java:235)
at org.netbeans.modules.projectapi.SimpleFileOwnerQueryImplementation.getOwner(SimpleFileOwnerQueryImplementation.java:129)
at org.netbeans.api.project.FileOwnerQuery.getOwner(FileOwnerQuery.java:102)
at org.netbeans.modules.java.project.ProjectClassPathProvider.findClassPath(ProjectClassPathProvider.java:68)
at org.netbeans.api.java.classpath.ClassPath.getClassPath(ClassPath.java:628)
at org.netbeans.modules.parsing.impl.indexing.errors.Utilities.getSourceClassPathFor(Utilities.java:73)
at org.netbeans.modules.parsing.impl.indexing.errors.ErrorAnnotator$1.run(ErrorAnnotator.java:315)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Diagnostic information
答案 0 :(得分:1)
IMHO KarmaPreferences.java与此无关,你可以在你的stacktrace中看到没有提到javascript.karma。我认为这个警告不是你问题的原因。堆栈跟踪来自一些Python模块,所以我首先要删除Python插件,看它是否有帮助。
如果没有,请从冻结时刻提交针对NetBeans和附加线程转储的新问题(请参阅here)
堆栈跟踪可能根本不相关
答案 1 :(得分:1)
我针对python模块提交了一个新问题https://netbeans.org/bugzilla/show_bug.cgi?id=239131。
请在那里投票以提高其优先级。
答案 2 :(得分:1)
寻找答案的人
我在Windows 8 x64下遇到了同样的错误
我只是在属性菜单中给出netbeans64.exe(x86中的netbeans.exe)管理员权限 问题消失了。