Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
576 views
in Technique[技术] by (71.8m points)

eclipse - 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 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)
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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 http://download.eclipse.org/eclipse/updates/4.4/
  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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.8k users

...