Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.1.6
-
Fix Version/s: JRuby 1.1.6
-
Component/s: None
-
Labels:None
-
Environment:Mac with java 1.6
Description
It looks like hpricot broke with 1.6. If I run the rails project with 1.5 hpricot is happy. When I use 1.6 I get this stack.
Exception in thread "Thread-4" java.lang.NoSuchMethodError: org.jruby.RubyString.substr(II)Lorg/jruby/runtime/builtin/IRubyObject;
at HpricotScanService.hpricot_scan(HpricotScanService.java:845)
at HpricotScanService.__hpricot_scan(HpricotScanService.java:1284)
at HpricotScanServiceCallback$__hpricot_scan_S1.call(Unknown Source)
at org.jruby.runtime.callback.InvocationCallback.execute(InvocationCallback.java:67)
at org.jruby.internal.runtime.methods.FullFunctionCallbackMethod.call(FullFunctionCallbackMethod.java:69)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:243)
require 'rubygems'
require 'open-uri'
require 'hpricot'
xml = open("http://www.google.com/").read
doc = Hpricot.XML( xml)