现在已经常用MyEclipse,之前在台式使用从来不会出现启动报错,现在都是用笔记本,大部分时间是不会出岔子的,但是这种报错的情况已经出现了几次…准备大展身手的时候还没开始就跪下了…
第一次报错的时候随手一查莫名其妙就解决了就没有细心记录下来 第二第三次怎么都解决不了…暴脾气重装重新导入
不知道是不是电脑卡的原因,日常报错,关掉重启,或者删掉报错log日志文件就可以解决,但有时候又不行…我太迷了
现在东西多了,不舍得重新装重新再配置了,必须解决了。
情况一: 关于这次的报错文件 !SESSION 2019-10-31 12:42:40.508 ----------------------------------------------- eclipse.buildId=15.0.1.CI-007 java.version=1.8.0_112 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CN Command-line arguments: -os win32 -ws win32 -arch x86_64
!ENTRY org.eclipse.equinox.ds 2 0 2019-10-31 12:43:28.903 !MESSAGE [SCR - WorkThread] Timeout occurred! Thread was blocked on processing [QueuedJob] WorkPerformer: org.eclipse.equinox.internal.ds.SCRManager@509d250a; actionType 1
!ENTRY org.eclipse.equinox.ds 2 0 2019-10-31 12:43:29.294 !MESSAGE [SCR] Enabling components of bundle org.eclipse.ui.trace did not complete in 30000 ms
!ENTRY org.eclipse.osgi 2 0 2019-10-31 12:43:34.529 !MESSAGE While loading class “com.genuitec.eclipse.core.AbstractGenuitecUIPlugin”, thread “Thread[Start Level: Equinox Container: d07a35e1-98fb-0019-1152-95fef78fdbda,5,main]” timed out waiting (5003ms) for thread “Thread[Component Resolve Thread,5,main]” to finish starting bundle “org.eclipse.core.runtime_3.12.0.v20160606-1342 [547]”. To avoid deadlock, thread “Thread[Start Level: Equinox Container: d07a35e1-98fb-0019-1152-95fef78fdbda,5,main]” is proceeding but “com.genuitec.eclipse.core.AbstractGenuitecUIPlugin” may not be fully initialized. !STACK 0 org.osgi.framework.BundleException: Unable to acquire the state change lock for the module: osgi.identity; type=“osgi.bundle”; version:Version=“3.12.0.v20160606-1342”; osgi.identity=“org.eclipse.core.runtime”; singleton:=“true” [id=547] STARTED [STARTED] at org.eclipse.osgi.container.Module.lockStateChange(Module.java:337) at org.eclipse.osgi.container.Module.start(Module.java:401) at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:470) at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107) at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:529) at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:325) at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:345) at org.eclipse.osgi.internal.loader.sources.SingleSourcePackage.loadClass(SingleSourcePackage.java:36) at org.eclipse.osgi.internal.loader.sources.MultiSourcePackage.loadClass(MultiSourcePackage.java:32) at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:419) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:372) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:364) at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:161) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:763) at org.eclipse.osgi.internal.loader.ModuleClassLoader.defineClass(ModuleClassLoader.java:273) at inerStartLevel.dispatchEvent(ModuleContainer.java:1514) at org.eclipse.osgi.container.ModuleContainer C o n t a i n e r S t a r t L e v e l . d i s p a t c h E v e n t ( M o d u l e C o n t a i n e r . j a v a : 1 ) a t o r g . e c l i p s e . o s g i . f r a m e w o r k . e v e n t m g r . E v e n t M a n a g e r . d i s p a t c h E v e n t ( E v e n t M a n a g e r . j a v a : 230 ) a t o r g . e c l i p s e . o s g i . f r a m e w o r k . e v e n t m g r . E v e n t M a n a g e r ContainerStartLevel.dispatchEvent(ModuleContainer.java:1) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.EventManager ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)atorg.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)atorg.eclipse.osgi.framework.eventmgr.EventManagerEventThread.run(EventManager.java:340)
!ENTRY org.eclipse.osgi 2 0 2019-10-31 12:43:51.197 !MESSAGE While loading class “org.eclipse.core.internal.runtime.Messages”, thread “Thread[Start Level: Equinox Container: d07a35e1-98fb-0019-1152-95fef78fdbda,5,main]” timed out waiting (5001ms) for thread “Thread[Component Resolve Thread,5,main]” to finish starting bundle “org.eclipse.core.runtime_3.12.0.v20160606-1342 [547]”. To avoid deadlock, thread “Thread[Start Level: Equinox Container: d07a35e1-98fb-0019-1152-95fef78fdbda,5,main]” is proceeding but “org.eclipse.core.internal.runtime.Messages” may not be fully initialized. !STACK 0 org.osgi.framework.BundleException: Unable to acquire the state change lock for the module: osgi.identity; type=“osgi.bundle”; version:Version=“3.12.0.v20160606-1342”; osgi.identity=“org.eclipse.core.runtime”; singleton:=“true” [id=547] STARTED [STARTED] at … 查了很多,都试过了没有用,最后有用的方法是: 删除文件 [workspace]/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
再不行,再删除[workspace].metadata.lock