Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On JRuby, initialize Nokogiri::HTML::SAX::PushParser failed with error "initialize_native" #1147

Closed
siuying opened this issue Aug 20, 2014 · 3 comments
Milestone

Comments

@siuying
Copy link

siuying commented Aug 20, 2014

with nokogiri "1.6.3.1-java", when i try to initialize PushParser, I get the error:

jruby-1.7.13 :001 > require 'nokogiri'
jruby-1.7.13 :002 > parser = Nokogiri::HTML::SAX::PushParser.new
NoMethodError: undefined method `initialize_native' for #<Nokogiri::HTML::SAX::PushParser:0xffcf7b3>

Initialize XML PushParser works:

jruby-1.7.13 :006 > parser = Nokogiri::XML::SAX::PushParser.new
 => #<Nokogiri::XML::SAX::PushParser:0x79906abc @sax_parser=#<Nokogiri::XML::SAX::Parser:0x784f9afd @warned=false, @document=#<Nokogiri::XML::SAX::Document:0x324895c0>, @encoding="UTF-8">, @document=#<Nokogiri::XML::SAX::Document:0x324895c0>, @encoding="UTF-8"> 
@flavorjones
Copy link
Member

Hi! Thanks for reporting this. We'll take a look at the PR!

@flavorjones
Copy link
Member

Merged #1148 to fix this, will be in 1.6.6.

@siuying
Copy link
Author

siuying commented Jan 21, 2015

Thank you @flavorjones @esse !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants