eclipse - 发生内部错误: “Loading bundle[…]”

标签 eclipse plugins aptana

我已经开始使用带有插件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



我也收到其他Aptana bundle 包的错误消息。

我试过重新安装Eclipse和Aptana Studio,但还没有任何效果。
如果有人可以帮忙,我会很高兴。对不起,英语不好,我不是母语人士。

这是一个日志示例:
!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$1 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)

最佳答案

我遇到过同样的问题。
根据前一篇文章进行构建,以防万一,Eclipse团队有already provided a patch:

申请补丁的步骤:

  • 打开Eclipse>帮助>安装新软件
  • 在“使用方式:”字段中,输入http://download.eclipse.org/eclipse/updates/4.4/
  • 从填充列表中,为错误445122选择Eclipse 4.4.1补丁。点击“下一步”
  • 让Eclipse执行所需的检查。点击“下一步”
  • 在“安装详细信息”屏幕中,单击“下一步”。
  • 完成补丁安装过程,然后重新启动Eclipse。

  • 此后,Eclipse上的问题就消失了。
    在Win7中,我正在使用:
    Java开发人员的Eclipse IDE
    版本:Luna Service Release 1(4.4.1)
    Build ID:20140925-1800

    关于eclipse - 发生内部错误: “Loading bundle[…]”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26077296/

    相关文章:

    java - TestFX和Gradle-NoNodeFoundException

    objective-c - 是否可以为 OSX Preview 编写插件?

    php - 确定插件中的 Joomla 版本

    ide - Aptana 不会保存编辑器首选项

    java - 错误: Could not find or load main class application.主要JAVAFX

    eclipse - 如何在eclipse中添加apache tomcat v9

    Java 类通过 eclipse 中的外部 maven 编译,但不是(使用相同的 maven)从命令行编译

    eclipse - 当 Eclipse 插件使用 JNI 时,如何将 JNI 控制台输出重定向到 Eclipse 控制台 View ?

    text - 无论主题如何,Aptana Studio 选择的文本都难以阅读

    javascript - 如何在 Aptana 中升级 JSLint?