-
-
Notifications
You must be signed in to change notification settings - Fork 898
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
Failed to take ownership of node #841
Comments
@yokolet - any idea what's going on here? Perhaps the document parsed from |
I'm very sorry, without the original |
I linked a gist that can create file "dom"... Did you miss that or is it not enough?
|
The gist requires PDF-related java files that I don't have on my system, On Wed, Feb 17, 2016 at 3:02 AM, Patrik Ragnarsson <notifications@github.com
|
@flavorjones all the files needed to create I created it with these versions: $ java -version
java version "1.8.0_74"
Java(TM) SE Runtime Environment (build 1.8.0_74-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)
$ ruby -v
jruby 9.0.5.0 (2.2.3) 2016-01-26 7bee00d Java HotSpot(TM) 64-Bit Server
VM 25.74-b02 on 1.8.0_74-b02 +jit [darwin-x86_64] I don't think I still have the "original I also added the $ bundle exec ruby modify_dom.rb
RuntimeError: java.lang.NullPointerException
add_child_node at nokogiri/XmlNode.java:1677
add_child_node_and_reparent_attrs at /Users/dentarg/.gem/jruby/2.2.3/gems/nokogiri-1.6.7.2-java/lib/nokogiri/xml/node.rb:830
add_child at /Users/dentarg/.gem/jruby/2.2.3/gems/nokogiri-1.6.7.2-java/lib/nokogiri/xml/node.rb:141
<top> at modify_dom.rb:7 I guess one should also test all this with a newer iText version, but as it was some years ago I created this issue, I'm no longer working on the project where I discovered this, so I don't have incentive to do so. |
This code:
(here is the code that creates
dom
)produces this error:
But if I use (found in issue #781)
there's no error.
Seems like there is a bug in Nokogiri, or am I doing something wrong?
I'm using nokogiri (1.5.6-java) and JRuby 1.7.2 on OS X.
The text was updated successfully, but these errors were encountered: