Skip to content

Instantly share code, notes, and snippets.

@biilmann
Created March 11, 2010 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biilmann/329265 to your computer and use it in GitHub Desktop.
Save biilmann/329265 to your computer and use it in GitHub Desktop.
require 'java'
require 'rubygems'
require 'nokogiri'
data = %[<?xml version="1.0" encoding="UTF-8"?>
<auth_createToken_response xmlns="http://api.facebook.com/1.0/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd">
3e4a22bb2f5ed75114b0fc9995ea85f1
</auth_createToken_response>]
xml = Nokogiri::XML(data.strip)
[mbc@mbcbook nokogiri-problem]$ jruby -X+O test.rb
FastIntMethodFactory.java:340:in `isConvertible': java.lang.NoSuchMethodError: org.jruby.ext.ffi.Struct.getMemory()Lorg/jruby/runtime/builtin/IRubyObject;
from FastIntPointerMethodOneArg.java:25:in `invoke'
from FastIntPointerMethodOneArg.java:44:in `call'
from CachingCallSite.java:309:in `cacheAndCall'
from CachingCallSite.java:148:in `call'
from CallOneArgNode.java:57:in `interpret'
from LocalAsgnNode.java:123:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:160:in `call'
from DefaultMethod.java:164:in `call'
from RubyClass.java:459:in `finvoke'
from RubyObject.java:1438:in `send'
from org/jruby/RubyObject$i_method_multi$RUBYINVOKER$send.gen:-1:in `call'
from JavaMethod.java:266:in `call'
from CachingCallSite.java:146:in `call'
from FCallOneArgNode.java:36:in `interpret'
from DAsgnNode.java:110:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from RescueNode.java:225:in `executeBody'
from RescueNode.java:147:in `interpretWithJavaExceptions'
from RescueNode.java:110:in `interpret'
from BeginNode.java:83:in `interpret'
from NewlineNode.java:104:in `interpret'
from InterpretedBlock.java:373:in `evalBlockBody'
from InterpretedBlock.java:346:in `yield'
from InterpretedBlock.java:303:in `yield'
from Block.java:194:in `yield'
from RubyArray.java:2507:in `rejectBang'
from RubyArray.java:2527:in `reject_bang'
from RubyArray.java:2487:in `rejectCommon'
from RubyArray.java:2493:in `reject'
from org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$reject.gen:-1:in `call'
from CachingCallSite.java:299:in `cacheAndCall'
from CachingCallSite.java:117:in `callBlock'
from CachingCallSite.java:122:in `call'
from CallNoArgBlockNode.java:64:in `interpret'
from CallNoArgBlockNode.java:60:in `interpret'
from CallOneArgNode.java:57:in `interpret'
from LocalAsgnNode.java:123:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from InterpretedMethod.java:139:in `call'
from DefaultMethod.java:156:in `call'
from RubyClass.java:555:in `finvoke'
from RuntimeHelpers.java:428:in `invoke'
from RubyBasicObject.java:319:in `callMethod'
from RubyObject.java:927:in `inspect'
from RubyKernel.java:449:in `p'
from org/jruby/RubyKernel$s_method_0_0$RUBYINVOKER$p.gen:-1:in `call'
from JavaMethod.java:630:in `call'
from DynamicMethod.java:186:in `call'
from CachingCallSite.java:309:in `cacheAndCall'
from CachingCallSite.java:148:in `call'
from test.rb:14:in `__file__'
from test.rb:-1:in `load'
from Ruby.java:651:in `runScript'
from Ruby.java:569:in `runNormally'
from Ruby.java:415:in `runFromMain'
from Main.java:275:in `run'
from Main.java:117:in `run'
from Main.java:97:in `main'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment