不知道在哪裏張貼此:需要有一個通用的「Eclipse的吊」線!
我的問題是在啓動後的幾分鐘到幾分鐘之後,Eclipse掛起(在Windows上)。
查看日誌文件「workspace.metadata.log」,僅指向錯誤的方向(刪除由 堆棧跟蹤指向的隨機插件)。
我可以先看了看EVENTVWR救自己很多的麻煩,因爲它原來是一個權限問題:
"%USERPROFILE%\AppData\Local\Microsoft\Windows\WebCache"
這裏是出現在EVENTVWR錯誤:
taskhost (2404) WebCacheLocal: An attempt to open the file
"C:\Users\Malcolm.Boekhoff\AppData\Local\Microsoft\Windows\WebCache\V01.chk"
for read/write access failed with system error 5 (0x00000005): "Access is denied. ".
The open file operation will fail with error -1032 (0xfffffbf8).
具體地,檢查在 「V01.log」 文件的權限:
icacls "%USERPROFILE%\AppData\Local\Microsoft\Windows\WebCache" /T
修復它通過將自己與完全訪問:
icacls "%USERPROFILE%\AppData\Local\Microsoft\Windows\WebCache" /T /Q /C /GRANT "%USERDOMAIN%\%USERNAME%:F"
延伸閱讀:
這裏是我想感謝谷歌浪費時間的尷尬列表。他們沒有工作:
- Disable: "Code Recommendations"
- Disable: "General"."Notifications" (used to be under "Mylyn")
- Disable: "Install/Update"."Automatic Updates"
- Disable: "Java"."Code Coverage"
- Disable: "News": "Preferences"."General"
- Remove the "org.eclipse.rse.*.jar" files, except for "org.eclipse.rse.shells.ui_3.0.500.201403271554.jar", from the "plugins" directory.
- Remove all maven jars
- Remove all gradle jars
- Specify: "-Declipse.log.level=ALL" in VM args (I think I forgot to also specify "-debug")
- etc.
如果有人有興趣,這裏是我的日食的命令行:
start "eclipse" /max "c:\eclipse-jee-oxygen-1a-win32-x86_64\eclipse\eclipse" -nosplash -clean -consoleLog -debug -data "c:\eclipse-jee-oxygen-1a-win32-x86_64\workspace" -product "org.eclipse.epp.package.jee.product" -vm "c:/Program Files/Java/jdk1.8.0_121/bin/java" "-vmargs" "-Declipse.log.level=ALL" "-Xmx2048m"
下面是當您使用的「bin/java的」你看到的Java控制檯日誌(如以上),而不是 「斌/ javaw進程」:
Install location:
file:/c:/eclipse-jee-oxygen-1a-win32-x86_64/eclipse/
Configuration file:
file:/c:/eclipse-jee-oxygen-1a-win32-x86_64/eclipse/configuration/config.ini loaded
Configuration location:
file:/c:/eclipse-jee-oxygen-1a-win32-x86_64/eclipse/configuration/
Framework located:
file:/c:/eclipse-jee-oxygen-1a-win32-x86_64/eclipse/plugins/org.eclipse.osgi_3.12.50.v20170928-1321.jar
Loading extension: reference:file:org.eclipse.osgi.compatibility.state_1.1.0.v20170516-1513.jar
eclipse.properties not found
Framework classpath:
file:/c:/eclipse-jee-oxygen-1a-win32-x86_64/eclipse/plugins/org.eclipse.osgi_3.12.50.v20170928-1321.jar
file:/c:/eclipse-jee-oxygen-1a-win32-x86_64/eclipse/plugins/
file:/c:/eclipse-jee-oxygen-1a-win32-x86_64/eclipse/plugins/org.eclipse.osgi.compatibility.state_1.1.0.v20170516-1513.jar
Debug options:
file:/c:/mcb/religare/work/.options not found
Time to load bundles: 32
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry aft
er the state location is initialized.
Starting application: 5075
org.eclipse.m2e.logback.configuration: Logback config file: C:\eclipse-jee-oxygen-1a-win32-x86_64\workspace\.metadata\.plugins\org.eclipse.m2e.logback.configura
tion\logback.1.8.2.20171007-0217.xml
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [bundleresource://1008.fwk985397764:1/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [bundleresource://1008.fwk985397764:2/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
org.eclipse.m2e.logback.configuration: Initializing logback
Application Started: 10507
# !SESSION 2017-10-20 13:07:49.562
# version: 1.1
# verbose: true
# The following option strings are specified for this debug session:
| main | 2017-10-20 13:07:49.562 | org.eclipse.e4.ui.workbench | /debug | org.eclipse.e4.ui.internal.workbench.WorkbenchLogger | trace | 158 | Ignored attempt t
o set focus during set focus for: [email protected]375 |
此外,使用 「-debug」,你得到的.metadata目錄中的文件, 「trace.log的」(但沒有 「.LOG」 的文件,甚至與「全部」):
# !SESSION 2017-10-20 13:07:49.562
# version: 1.1
# verbose: true
# The following option strings are specified for this debug session:
| main | 2017-10-20 13:07:49.562 | org.eclipse.e4.ui.workbench | /debug | org.eclipse.e4.ui.internal.workbench.WorkbenchLogger | trace | 158 | Ignored attempt to set focus during set focus for: [email protected]375 |
| main | 2017-10-20 13:09:47.775 | org.eclipse.e4.ui.workbench | /debug | org.eclipse.e4.ui.internal.workbench.WorkbenchLogger | trace | 158 | Ignored attempt to set focus during set focus for: [email protected]cf |
| main | 2017-10-20 13:09:49.555 | org.eclipse.e4.ui.workbench | /debug | org.eclipse.e4.ui.internal.workbench.WorkbenchLogger | trace | 158 | Ignored attempt to set focus during set focus for: [email protected]cf |
你可以定位。告訴我更多?我面臨類似的問題,但不知道在哪裏可以找到你提到的會話目錄。 – shrini1000
我已經更新了我的答案,以包含有關我的問題和修復問題的更多細節。希望有所幫助。 –
@EricG請告訴我在哪裏可以找到目錄我的日食一次又一次地掛起 –