JavaEar 专注于收集分享传播有价值的技术资料

An internal error occurred during: "Loading bundle[...]"

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:

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

I get this error message for the other Aptana bundles as well.

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.

Here's a log sample:

!ENTRY 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".
java.lang.ClassCastException: org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String
    at org.jruby.util.OSEnvironment.getAsMapOfRubyStrings(
    at org.jruby.util.OSEnvironment.getSystemPropertiesMap(
    at org.jruby.RubyGlobal.defineGlobalEnvConstants(
    at org.jruby.RubyGlobal.createGlobals(
    at org.jruby.Ruby.init(
    at org.jruby.Ruby.newInstance(
    at org.jruby.embed.internal.SingletonLocalContextProvider.getRuntime(
    at org.jruby.embed.internal.EmbedRubyRuntimeAdapterImpl.runParser(
    at org.jruby.embed.internal.EmbedRubyRuntimeAdapterImpl.parse(
    at org.jruby.embed.ScriptingContainer.parse(
    at org.jruby.embed.ScriptingContainer.runScriptlet(
    at com.aptana.scripting.ScriptingEngine.getInitializedScriptingContainer(
    at com.aptana.scripting.ScriptingEngine.runScript(
    at com.aptana.scripting.ScriptingEngine.runScript(
    at com.aptana.scripting.model.BundleManager.loadScript(
    at com.aptana.scripting.model.BundleManager$


  1. 参考答案2
  2. I had the same issue. Building from the previous post, and in case it was missed, the Eclipse team has already provided a patch:

    Steps to apply patch:

    1. Open Eclipse > Help > Install New Software
    2. In "Work with:" field, enter
    3. From the populated list, select Eclipse 4.4.1 Patches for bug 445122 . Click "Next"
    4. Let Eclipse perform the needed checks. Click "Next"
    5. In "Install Details" screen, click "Next"
    6. Finish the patch installation process and restart 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

  3. 参考答案3
  4. 参考答案4
  5. Do the following:

    1. In EclipsegGo to the "Help" menu and select "Install New Software"
    2. Work with:, then click "Add"
    3. A popup window opens, enter name: Ivy Update Site, Click "OK"
    4. Wait while it shows "pending"
    5. Click Select All to select "Apache Ivy Library" and "Apache IvyDE Eclipse plugins"
    6. Hit Next on the next two screens, then accept the license and click "Finish"
    7. If you get a warning about unsigned code, click "OK"
    8. When propmpted to restart eclipse, click "OK"
  6. 参考答案5
  7. The class cast exception is a regression in Eclipse 4.4.1 (Luna SR1) Equinox component:

    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).