Load YAML on ruboto
-------------------
Key: JRUBY-5565
URL: http://jira.codehaus.org/browse/JRUBY-5565
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.6RC2
Environment: ruboto-core
Reporter: Uwe Kubosch
Fix For: JRuby 1.6RC3
Hi!
In a clean ruboto-core project, try
{noformat}
require 'yaml'
{noformat}
I get the output below. I see references to yecht.jar in yaml/yecht.rb and in
Ruby.java And what is YechtService? Please help! I need to get yaml,
activerecord, and derby working this week :)
{noformat}
E/dalvikvm( 2746): ERROR: defineClass(0x40840848,
org.yecht.ruby.Module$s$1$0$compile, 0x40fb8a28, 0, 745, 0x0)
W/System.err( 2746): java.lang.UnsupportedOperationException: can't load this
type of class file
W/System.err( 2746): at java.lang.VMClassLoader.defineClass(Native Method)
W/System.err( 2746): at
java.lang.ClassLoader.defineClass(ClassLoader.java:327)
W/System.err( 2746): at
org.jruby.util.JRubyClassLoader.defineClass(JRubyClassLoader.java:76)
W/System.err( 2746): at
org.jruby.internal.runtime.methods.InvocationMethodFactory.endClass(InvocationMethodFactory.java:1347)
W/System.err( 2746): at
org.jruby.internal.runtime.methods.InvocationMethodFactory.getAnnotatedMethodClass(InvocationMethodFactory.java:782)
W/System.err( 2746): at
org.jruby.internal.runtime.methods.InvocationMethodFactory.getAnnotatedMethod(InvocationMethodFactory.java:800)
W/System.err( 2746): at
org.jruby.RubyModule.defineAnnotatedMethod(RubyModule.java:691)
W/System.err( 2746): at
org.jruby.RubyModule.defineAnnotatedMethod(RubyModule.java:659)
W/System.err( 2746): at
org.jruby.anno.TypePopulator$DefaultTypePopulator.populate(TypePopulator.java:67)
W/System.err( 2746): at
org.jruby.RubyModule.defineAnnotatedMethodsIndividually(RubyModule.java:653)
W/System.err( 2746): at
org.jruby.RubyModule.defineAnnotatedMethods(RubyModule.java:541)
W/System.err( 2746): at YechtService.basicLoad(YechtService.java:21)
W/System.err( 2746): at
org.jruby.runtime.load.LoadService.reflectedLoad(LoadService.java:412)
W/System.err( 2746): at
org.jruby.ext.LateLoadingLibrary.load(LateLoadingLibrary.java:48)
W/System.err( 2746): at
org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:755)
W/System.err( 2746): at
org.jruby.runtime.load.LoadService.smartLoad(LoadService.java:334)
W/System.err( 2746): at
org.jruby.runtime.load.LoadService.require(LoadService.java:381)
W/System.err( 2746): at
org.jruby.runtime.load.LoadService.lockAndRequire(LoadService.java:306)
W/System.err( 2746): at
org.jruby.RubyKernel.requireCommon(RubyKernel.java:1054)
W/System.err( 2746): at org.jruby.RubyKernel.require(RubyKernel.java:1037)
W/System.err( 2746): at
org.jruby.RubyKernel$s$1$0$require.call(RubyKernel$s$1$0$require.gen:65535)
W/System.err( 2746): at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:319)
W/System.err( 2746): at
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:282)
W/System.err( 2746): at
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:139)
W/System.err( 2746): at
org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
W/System.err( 2746): at
org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
W/System.err( 2746): at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
W/System.err( 2746): at org.jruby.ast.RootNode.interpret(RootNode.java:129)
W/System.err( 2746): at
org.jruby.evaluator.ASTInterpreter.INTERPRET_ROOT(ASTInterpreter.java:119)
W/System.err( 2746): at org.jruby.Ruby.runInterpreter(Ruby.java:697)
W/System.err( 2746): at org.jruby.Ruby.loadFile(Ruby.java:2417)
W/System.err( 2746): at
org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:66)
W/System.err( 2746): at
org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:755)
W/System.err( 2746): at
org.jruby.runtime.load.LoadService.smartLoad(LoadService.java:334)
W/System.err( 2746): at
org.jruby.runtime.load.LoadService.require(LoadService.java:381)
W/System.err( 2746): at
org.jruby.runtime.load.LoadService.lockAndRequire(LoadService.java:306)
W/System.err( 2746): at
org.jruby.RubyKernel.requireCommon(RubyKernel.java:1054)
W/System.err( 2746): at org.jruby.RubyKernel.require(RubyKernel.java:1037)
W/System.err( 2746): at
org.jruby.RubyKernel$s$1$0$require.call(RubyKernel$s$1$0$require.gen:65535)
W/System.err( 2746): at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:319)
W/System.err( 2746): at
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:282)
W/System.err( 2746): at
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:139)
W/System.err( 2746): at
org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
W/System.err( 2746): at
org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
W/System.err( 2746): at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
W/System.err( 2746): at org.jruby.ast.RootNode.interpret(RootNode.java:129)
W/System.err( 2746): at
org.jruby.evaluator.ASTInterpreter.INTERPRET_ROOT(ASTInterpreter.java:119)
W/System.err( 2746): at org.jruby.Ruby.runInterpreter(Ruby.java:697)
W/System.err( 2746): at org.jruby.Ruby.loadFile(Ruby.java:2417)
W/System.err( 2746): at
org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:66)
W/System.err( 2746): at
org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:755)
W/System.err( 2746): at
org.jruby.runtime.load.LoadService.smartLoad(LoadService.java:334)
W/System.err( 2746): at
org.jruby.runtime.load.LoadService.require(LoadService.java:381)
W/System.err( 2746): at
org.jruby.runtime.load.LoadService.lockAndRequire(LoadService.java:306)
W/System.err( 2746): at
org.jruby.RubyKernel.requireCommon(RubyKernel.java:1054)
W/System.err( 2746): at org.jruby.RubyKernel.require(RubyKernel.java:1037)
W/System.err( 2746): at
org.jruby.RubyKernel$s$1$0$require.call(RubyKernel$s$1$0$require.gen:65535)
W/System.err( 2746): at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:319)
W/System.err( 2746): at
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:282)
W/System.err( 2746): at
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:139)
W/System.err( 2746): at
org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
W/System.err( 2746): at
org.jruby.ast.NewlineNode.interpret(NewlineNode.java:103)
W/System.err( 2746): at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
W/System.err( 2746): at org.jruby.ast.RootNode.interpret(RootNode.java:129)
W/System.err( 2746): at
org.jruby.evaluator.ASTInterpreter.INTERPRET_ROOT(ASTInterpreter.java:119)
W/System.err( 2746): at org.jruby.Ruby.evalScriptlet(Ruby.java:322)
W/System.err( 2746): at org.ruboto.Script.exec(Script.java:101)
W/System.err( 2746): at org.ruboto.Script.execute(Script.java:93)
W/System.err( 2746): at org.ruboto.Script.execute(Script.java:239)
W/System.err( 2746): at
org.ruboto.RubotoActivity.finishCreate(RubotoActivity.java:157)
W/System.err( 2746): at
org.ruboto.RubotoActivity.access$300(RubotoActivity.java:13)
W/System.err( 2746): at
org.ruboto.RubotoActivity$2.run(RubotoActivity.java:129)
W/System.err( 2746): at android.os.Handler.handleCallback(Handler.java:587)
W/System.err( 2746): at android.os.Handler.dispatchMessage(Handler.java:92)
W/System.err( 2746): at android.os.Looper.loop(Looper.java:126)
W/System.err( 2746): at
android.app.ActivityThread.main(ActivityThread.java:3997)
W/System.err( 2746): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 2746): at java.lang.reflect.Method.invoke(Method.java:491)
W/System.err( 2746): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
W/System.err( 2746): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
W/System.err( 2746): at dalvik.system.NativeStart.main(Native Method)
W/System.err( 2746): org.jruby.exceptions.RaiseException: (LoadError) can't
load this type of class file
W/System.err( 2746): at
org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1037)
W/System.err( 2746): at
#<Class:0x1407769a8>.(root)(file:/data/app/org.ruboto.poc.yaml-1.apk!/yaml/yecht.rb:5)
W/System.err( 2746): at
org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1037)
W/System.err( 2746): at
#<Class:0x1407769a8>.(root)(file:/data/app/org.ruboto.poc.yaml-1.apk!/yaml/yecht.rb:12)
W/System.err( 2746): at
org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1037)
W/System.err( 2746): at
#<Class:0x1407769a8>.(root)(file:/data/app/org.ruboto.poc.yaml-1.apk!/yaml.rb:2)
D/dalvikvm( 1145): GC_EXPLICIT freed <1K, 12% free 27845K/31559K, paused 5ms+6ms
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email