java.lang.ClassCastException: org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String

Appcelerator JIRA | Chris Williams | 2 years ago
  1. 0

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

    Stack Overflow | 2 years ago | Menger sponge
    java.lang.ClassCastException: org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String
  2. 0

    JRuby is explicitly casting System.getProperties as String keys and values. However, Eclipse 4.4.1 is now pushing an anonymous null object as a value for some of them, and we need to explicitly call toString() on it to get a String. The fix here may be to apply a small patch to JRuby, or to upgrade to the latest JRuby release. {code} !ENTRY org.eclipse.core.jobs 4 2 2014-09-26 14:09:53.781 !MESSAGE An internal error occurred during: "Loading bundle: /Users/cwilliams/Documents/Aptana Rubles/ruby.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) {code}

    Appcelerator JIRA | 2 years ago | Chris Williams
    java.lang.ClassCastException: org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String
  3. 0

    JRuby is explicitly casting System.getProperties as String keys and values. However, Eclipse 4.4.1 is now pushing an anonymous null object as a value for some of them, and we need to explicitly call toString() on it to get a String. The fix here may be to apply a small patch to JRuby, or to upgrade to the latest JRuby release. {code} !ENTRY org.eclipse.core.jobs 4 2 2014-09-26 14:09:53.781 !MESSAGE An internal error occurred during: "Loading bundle: /Users/cwilliams/Documents/Aptana Rubles/ruby.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) {code}

    Appcelerator JIRA | 2 years ago | Chris Williams
    java.lang.ClassCastException: org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Eclipse Luna crashes on new project in Ubuntu

    Stack Overflow | 2 years ago
    java.lang.ClassCastException: org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String
  6. 0

    Error when starting eclipse on Ubuntu 14.04 lts (trough virtualbox)

    Stack Overflow | 1 year ago | Rodrigo Cunha
    java.lang.ClassCastException: org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String

      at org.jruby.util.OSEnvironment.getAsMapOfRubyStrings()
    2. JRuby Main Maven Artifact
      ScriptingContainer.runScriptlet
      1. org.jruby.util.OSEnvironment.getAsMapOfRubyStrings(OSEnvironment.java:90)
      2. org.jruby.util.OSEnvironment.getSystemPropertiesMap(OSEnvironment.java:75)
      3. org.jruby.RubyGlobal.defineGlobalEnvConstants(RubyGlobal.java:393)
      4. org.jruby.RubyGlobal.createGlobals(RubyGlobal.java:358)
      5. org.jruby.Ruby.init(Ruby.java:1078)
      6. org.jruby.Ruby.newInstance(Ruby.java:186)
      7. org.jruby.embed.internal.SingletonLocalContextProvider.getRuntime(SingletonLocalContextProvider.java:95)
      8. org.jruby.embed.internal.EmbedRubyRuntimeAdapterImpl.runParser(EmbedRubyRuntimeAdapterImpl.java:166)
      9. org.jruby.embed.internal.EmbedRubyRuntimeAdapterImpl.parse(EmbedRubyRuntimeAdapterImpl.java:93)
      10. org.jruby.embed.ScriptingContainer.parse(ScriptingContainer.java:1163)
      11. org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1223)
      11 frames
    3. com.aptana.scripting
      BundleManager$BundleLoadJob.run
      1. com.aptana.scripting.ScriptingEngine.getInitializedScriptingContainer(ScriptingEngine.java:292)
      2. com.aptana.scripting.model.ScriptLoadJob.run(ScriptLoadJob.java:76)
      3. com.aptana.scripting.model.AbstractScriptRunner.run(AbstractScriptRunner.java:144)
      4. com.aptana.scripting.model.AbstractScriptRunner.run(AbstractScriptRunner.java:180)
      5. com.aptana.scripting.ScriptingEngine.runScript(ScriptingEngine.java:274)
      6. com.aptana.scripting.ScriptingEngine.runScript(ScriptingEngine.java:243)
      7. com.aptana.scripting.model.BundleManager.loadScript(BundleManager.java:2032)
      8. com.aptana.scripting.model.BundleManager$BundleLoadJob.run(BundleManager.java:129)
      8 frames
    4. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      1 frame