-
-
Notifications
You must be signed in to change notification settings - Fork 903
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
RuntimeError when calling to_s with jruby #1281
Comments
Hi, Thanks for reporting this. Unfortunately, without more information we cannot reproduce and thus won't be able to help. Can you please provide whatever you can to help us reproduce? The XML document in question would be a great help, as would any ruby code running on the script that might crash. We would additionally need information about your system, which you can get by running |
Hello this is the output of nokogiri -v
Ill apped any more information about the xml in question when I have it. |
Hi @binaryplease, is this issue reproducible on windows only ? I googled for this error and it looks like JRuby encoding issue that only on windows platforms. |
Closing, pending more information from the original poster. |
Hi have a similiar problem, that can be reproduced whit this snippet:
using
i obtain this error:
|
I've reproduced this issue, as reported on IRC by @jtarchie, using the docker image
|
I looked at this issue briefly. Looks like the RuntimeException root cause is UnmappableCharacterException being thrown on this line. Looks like for some reason we're getting back invalid characters. note I verified this behavior on both jdk 7 and 8. The following patch ignores the invalid characters, but I'm still not sure why we're suddenly getting back invalid characters. Finally, the failure in
|
I'd like to run those tests outside the docker image, but unfortunately i'm having trouble getting jruby 9.1 to install on the host machine. i'll report back once i get it installed and run the test suite |
Fixed in master, will be in v1.7.1. |
Hello
using Jruby with some html tags (Nokogiri xml elements) I get this error which crashes the program
the error doesnt always occur, so it is hard to provide a sample code, but it looks like
I think it might have to do with invalid encodings, but it's just a guess.
Is there a woraround for this?
The text was updated successfully, but these errors were encountered: