eclipse 期间发生内部错误:“正在加载包 [...]”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26077296/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
An internal error occurred during: "Loading bundle[...]"
提问by Menger sponge
I've started using Eclipse Luna with the plugin Aptana Studio 3 and it worked quite well for a while, but after I ran Eclipse as root to update the IDE to version 4.4.1, every time Eclipse starts I get the following error message:
我已经开始使用带有插件 Aptana Studio 3 的 Eclipse Luna 并且它运行良好一段时间,但是在我以 root 身份运行 Eclipse 以将 IDE 更新到版本 4.4.1 后,每次 Eclipse 启动时我都会收到以下错误消息:
An internal error occurred during: "Loading bundle: /opt/eclipse/configuration/org.eclipse.osgi/873/0/.cp/bundles/php.ruble". org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String
在以下过程中发生内部错误:“正在加载包:/opt/eclipse/configuration/org.eclipse.osgi/873/0/.cp/bundles/php.ruble”。org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 不能转换为 java.lang.String
I get this error message for the other Aptana bundles as well.
对于其他 Aptana 包,我也收到此错误消息。
I've tried reinstalling Eclipse and Aptana Studio but nothing has worked yet. I'd be very glad if someone could help. Sorry for bad english, I'm not a native speaker.
我试过重新安装 Eclipse 和 Aptana Studio,但没有任何效果。如果有人可以提供帮助,我会很高兴。抱歉英语不好,我不是母语人士。
Here's a log sample:
这是一个日志示例:
!ENTRY org.eclipse.core.jobs 4 2 2014-09-27 19:19:23.753
!MESSAGE An internal error occurred during: "Loading bundle: /opt/eclipse/configuration/org.eclipse.osgi/873/0/.cp/bundles/php.ruble".
!STACK 0
java.lang.ClassCastException: org.eclipse.osgi.internal.framework.EquinoxConfiguration cannot be cast to java.lang.String
at org.jruby.util.OSEnvironment.getAsMapOfRubyStrings(OSEnvironment.java:90)
at org.jruby.util.OSEnvironment.getSystemPropertiesMap(OSEnvironment.java:75)
at org.jruby.RubyGlobal.defineGlobalEnvConstants(RubyGlobal.java:393)
at org.jruby.RubyGlobal.createGlobals(RubyGlobal.java:358)
at org.jruby.Ruby.init(Ruby.java:1078)
at org.jruby.Ruby.newInstance(Ruby.java:186)
at org.jruby.embed.internal.SingletonLocalContextProvider.getRuntime(SingletonLocalContextProvider.java:95)
at org.jruby.embed.internal.EmbedRubyRuntimeAdapterImpl.runParser(EmbedRubyRuntimeAdapterImpl.java:166)
at org.jruby.embed.internal.EmbedRubyRuntimeAdapterImpl.parse(EmbedRubyRuntimeAdapterImpl.java:93)
at org.jruby.embed.ScriptingContainer.parse(ScriptingContainer.java:1163)
at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1223)
at com.aptana.scripting.ScriptingEngine.getInitializedScriptingContainer(ScriptingEngine.java:292)
at com.aptana.scripting.model.ScriptLoadJob.run(ScriptLoadJob.java:76)
at com.aptana.scripting.model.AbstractScriptRunner.run(AbstractScriptRunner.java:144)
at com.aptana.scripting.model.AbstractScriptRunner.run(AbstractScriptRunner.java:180)
at com.aptana.scripting.ScriptingEngine.runScript(ScriptingEngine.java:274)
at com.aptana.scripting.ScriptingEngine.runScript(ScriptingEngine.java:243)
at com.aptana.scripting.model.BundleManager.loadScript(BundleManager.java:2032)
at com.aptana.scripting.model.BundleManager$BundleLoadJob.run(BundleManager.java:129)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
回答by j4v1
I had the same issue. Building from the previous post, and in case it was missed, the Eclipse team has already provided a patch:
我遇到过同样的问题。从上一篇文章中构建,如果遗漏了,Eclipse 团队已经提供了一个补丁:
Steps to apply patch:
应用补丁的步骤:
- Open Eclipse > Help > Install New Software
- In "Work with:" field, enter http://download.eclipse.org/eclipse/updates/4.4/
- From the populated list, select Eclipse 4.4.1 Patches for bug 445122 . Click "Next"
- Let Eclipse perform the needed checks. Click "Next"
- In "Install Details" screen, click "Next"
- Finish the patch installation process and restart Eclipse.
- 打开 Eclipse > 帮助 > 安装新软件
- 在“使用:”字段中,输入http://download.eclipse.org/eclipse/updates/4.4/
- 从填充的列表中,选择 Eclipse 4.4.1 Patches for bug 445122 。点击下一步”
- 让 Eclipse 执行所需的检查。点击下一步”
- 在“安装详细信息”屏幕中,单击“下一步”
- 完成补丁安装过程并重新启动 Eclipse。
The problem on my Eclipse was gone after this. In Win7 I am using: Eclipse IDE for Java Developers Version: Luna Service Release 1 (4.4.1) Build id: 20140925-1800
在此之后,我的 Eclipse 上的问题就消失了。在 Win7 中,我使用的是:Eclipse IDE for Java Developers 版本:Luna Service Release 1 (4.4.1) Build id:20140925-1800
回答by vicgilbcn
I updated the aptana plug-in to 3.7 dev version and the bundle error message dissapeared and it showed the standar aptana start page. Here the link to update it: http://studio-jenkins.appcelerator.org/job/studio3-feature-development/lastSuccessfulBuild/artifact/dist/Now I hope that version works. Definitely there was a compatibility between eclipse luna 4.4 and aptana plugin 3.6.
我将 aptana 插件更新为 3.7 开发版本,并且捆绑错误消息消失了,它显示了标准的 aptana 起始页。这是更新它的链接:http: //studio-jenkins.appcelerator.org/job/studio3-feature-development/lastSuccessfulBuild/artifact/dist/现在我希望该版本有效。eclipse luna 4.4 和 aptana 插件 3.6 之间肯定存在兼容性。
回答by futuretelematics
I resolved the issue by updating the IVYDE plugin to the latest build version: https://builds.apache.org/job/IvyDE-updatesite/lastSuccessfulBuild/artifact/trunk/build/
我通过将 IVYDE 插件更新到最新版本解决了这个问题:https://builds.apache.org/job/IvyDE-updatesite/lastSuccessfulBuild/artifact/trunk/build/
This updates ivy to the 2.5 version and ivyde to the 2.3 version
这会将 ivy 更新为 2.5 版本,将 ivyde 更新为 2.3 版本
回答by k4b
Do the following:
请执行下列操作:
- In EclipsegGo to the "Help" menu and select "Install New Software"
- Work with: https://builds.apache.org/job/IvyDE-updatesite/lastSuccessfulBuild/artifact/trunk/build/, then click "Add"
- A popup window opens, enter name: Ivy Update Site, Click "OK"
- Wait while it shows "pending"
- Click Select All to select "Apache Ivy Library" and "Apache IvyDE Eclipse plugins"
- Hit Next on the next two screens, then accept the license and click "Finish"
- If you get a warning about unsigned code, click "OK"
- When propmpted to restart eclipse, click "OK"
- 在 Eclipseg 中转到“帮助”菜单并选择“安装新软件”
- 使用:https://builds.apache.org/job/IvyDE-updatesite/lastSuccessfulBuild/artifact/trunk/build/,然后单击“添加”
- 一个弹出窗口打开,输入名称:常春藤更新站点,点击“确定”
- 等待它显示“待处理”
- 单击 Select All 以选择“Apache Ivy Library”和“Apache IvyDE Eclipse plugins”
- 在接下来的两个屏幕上点击 Next,然后接受许可并点击“Finish”
- 如果您收到有关未签名代码的警告,请单击“确定”
- 当提示重新启动eclipse时,单击“确定”
回答by Konstantin Kolinko
The class cast exception is a regression in Eclipse 4.4.1 (Luna SR1) Equinox component: https://bugs.eclipse.org/bugs/show_bug.cgi?id=445122
类转换异常是 Eclipse 4.4.1 (Luna SR1) Equinox 组件中的回归:https: //bugs.eclipse.org/bugs/show_bug.cgi?id =445122
As a number of components were broken by that (Apache IvyDE is just one of them), I plan to avoid using this version of Eclipse and will wait for the next one (SR2).
由于许多组件被破坏(Apache IvyDE 只是其中之一),我计划避免使用此版本的 Eclipse,并等待下一个版本 (SR2)。