Project: appceleratorstudio
Issue TISTUD-6961: Error loading rubles with Eclipse 4.4.1
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 org.jruby.util.OSEnvironment.getAsMapOfRubyStrings(OSEnvironment.java:90) org.jruby.util.OSEnvironment.getSystemPropertiesMap(OSEnvironment.java:75) org.jruby.RubyGlobal.defineGlobalEnvConstants(RubyGlobal.java:393) org.jruby.RubyGlobal.createGlobals(RubyGlobal.java:358) org.jruby.Ruby.init(Ruby.java:1078) org.jruby.Ruby.newInstance(Ruby.java:186) org.jruby.embed.internal.SingletonLocalContextProvider.getRuntime(SingletonLocalContextProvider.java:95) org.jruby.embed.internal.EmbedRubyRuntimeAdapterImpl.runParser(EmbedRubyRuntimeAdapterImpl.java:166) org.jruby.embed.internal.EmbedRubyRuntimeAdapterImpl.parse(EmbedRubyRuntimeAdapterImpl.java:93) org.jruby.embed.ScriptingContainer.parse(ScriptingContainer.java:1163) org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1223) com.aptana.scripting.ScriptingEngine.getInitializedScriptingContainer(ScriptingEngine.java:292) com.aptana.scripting.model.ScriptLoadJob.run(ScriptLoadJob.java:76) com.aptana.scripting.model.AbstractScriptRunner.run(AbstractScriptRunner.java:144) com.aptana.scripting.model.AbstractScriptRunner.run(AbstractScriptRunner.java:180) com.aptana.scripting.ScriptingEngine.runScript(ScriptingEngine.java:274) com.aptana.scripting.ScriptingEngine.runScript(ScriptingEngine.java:243) com.aptana.scripting.model.BundleManager.loadScript(BundleManager.java:2032) com.aptana.scripting.model.BundleManager$BundleLoadJob.run(BundleManager.java:129) org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {code}
Story points: 5