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

com.gargoylesoftware.htmlunit.ObjectInstantiationException: unable to create HTML parser (NativeException) #56

Open
w1150n opened this issue Sep 27, 2011 · 4 comments

Comments

@w1150n
Copy link

w1150n commented Sep 27, 2011

I've just installed the follow gem versions on JRuby 1.6.4:

capybara (1.0.1)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
selenium-webdriver (> 2.0)
xpath (
> 0.1.4)
capybara-celerity (0.0.1)
capybara (>= 0.4.1)
celerity (>= 0.7.9)
celerity (0.9.0)

and get the error: "com.gargoylesoftware.htmlunit.ObjectInstantiationException: unable to create HTML parser (NativeException)"

which seems to cause the following error for each case:

"java.lang.NullPointerException: No document element ("

Any ideas?

Cheers,
Matt

@w1150n
Copy link
Author

w1150n commented Sep 28, 2011

Hm, this seems to be a gem require problem caused by requiring capybara before celerity. The error above went away for me after changing my requires to:

require 'celerity'
require 'capybara'
require 'capybara/celerity'

@w1150n w1150n closed this as completed Sep 28, 2011
@w1150n w1150n reopened this Sep 28, 2011
@w1150n
Copy link
Author

w1150n commented Sep 28, 2011

Reopening this since it's still a bug.

@lukas2
Copy link

lukas2 commented Oct 5, 2011

I can confirm this issue. In my case I required the "mechanize" gem before celerity. If I require celerity first, it works.

@hexagile
Copy link

Yes, I can also confirm with JRuby 1.6.3 and both celerity 0.9.0 and 0.9.1. However, it's OK with Celerity 0.8.9 so I reverted to that.

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

No branches or pull requests

3 participants