我在Eclipse Indigo中遇到了一个奇怪的例外;每次启动Eclipse都会抛出一些IO异常......这是Eclipse启动后生成的日志文件:
!SESSION 2014-12-27 23:40:06.656 -----------------------------------------------
eclipse.buildId=M20120208-0800
java.version=1.7.0_71
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.java.product
!ENTRY org.eclipse.epp.usagedata.recording 4 0 2014-12-27 23:41:27.685
!MESSAGE Error writing events to file.
!STACK 0
java.io.FileNotFoundException: .../.metadata/.plugins/org.eclipse.epp.usagedata.recording/usagedata.csv (Permission denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
at java.io.FileWriter.<init>(FileWriter.java:107)
at org.eclipse.epp.usagedata.internal.recording.UsageDataRecorder.createEventWriter(UsageDataRecorder.java:174)
at org.eclipse.epp.usagedata.internal.recording.UsageDataRecorder.getWriter(UsageDataRecorder.java:169)
at org.eclipse.epp.usagedata.internal.recording.UsageDataRecorder.dumpEvents(UsageDataRecorder.java:145)
at org.eclipse.epp.usagedata.internal.recording.UsageDataRecorder.stop(UsageDataRecorder.java:77)
at org.eclipse.epp.usagedata.internal.recording.UsageDataRecordingActivator.stop(UsageDataRecordingActivator.java:75)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:771)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:764)
at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:510)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:565)
at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1161)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:595)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:257)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:215)
at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:284)
at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:691)
at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:598)
at org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:390)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:198)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
禁用使用率数据收集器。所以我的问题是如何解决这个问题? BTW目前我正在遭受windowbuilder冻结每个swing组件的添加,所以上面提到的异常会导致吗?
P.S。 Eclipse Indigo J2SE Linux x64
由于
答案 0 :(得分:1)
打开'窗口&gt;偏好&gt;一般&gt;启动和关闭'。取消选择两个“Usage Data Collector”条目,然后单击“确定”。这应该完全禁用使用数据集合(您可能需要重新启动Eclipse)。
Eclipse的更高版本不再包含使用情况数据集。
更多信息here