jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JRuby
  • JRUBY-3230

Hpricot broke from 1.5 to 1.6

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major 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)

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Vlaj Bert added a comment - 10/Dec/08 3:41 PM

require 'rubygems'
require 'open-uri'
require 'hpricot'

xml = open("http://www.google.com/").read
doc = Hpricot.XML( xml)

Show
Vlaj Bert added a comment - 10/Dec/08 3:41 PM require 'rubygems' require 'open-uri' require 'hpricot' xml = open("http://www.google.com/").read doc = Hpricot.XML( xml)
Hide
Permalink
Marcin Mielzynski added a comment - 10/Dec/08 4:44 PM

Already fixed on trunk.

Show
Marcin Mielzynski added a comment - 10/Dec/08 4:44 PM Already fixed on trunk.
Hide
Permalink
Thomas E Enebo added a comment - 10/Dec/08 5:05 PM

Marcin, please apply this to 1.1.6RC2 tag. We should make sure 1.1.6 final still works.

Show
Thomas E Enebo added a comment - 10/Dec/08 5:05 PM Marcin, please apply this to 1.1.6RC2 tag. We should make sure 1.1.6 final still works.
Hide
Permalink
Marcin Mielzynski added a comment - 10/Dec/08 6:06 PM

Done

Show
Marcin Mielzynski added a comment - 10/Dec/08 6:06 PM Done

People

  • Assignee:
    Marcin Mielzynski
    Reporter:
    Vlaj Bert
Vote (0)
Watch (1)

Dates

  • Created:
    10/Dec/08 2:53 PM
    Updated:
    12/Jan/09 4:27 PM
    Resolved:
    10/Dec/08 4:44 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.