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

I got an exception in SgmlPage class. #542

Closed
Kartofanych opened this issue Jan 7, 2023 · 7 comments
Closed

I got an exception in SgmlPage class. #542

Kartofanych opened this issue Jan 7, 2023 · 7 comments

Comments

@Kartofanych
Copy link

Kartofanych commented Jan 7, 2023

Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
class com.gargoylesoftware.htmlunit.SgmlPage, unresolved supertypes: org.w3c.dom.traversal.DocumentTraversal
How could i solve this problem? Actually I dont need this class, but I get error from it

@rbri
Copy link
Member

rbri commented Jan 7, 2023

you are on android?

@Kartofanych
Copy link
Author

you are on android?

yep

@rbri
Copy link
Member

rbri commented Jan 7, 2023

This is a know problem with HtmlUnit on android (i guess you are already using the android package - https://github.com/HtmlUnit/htmlunit-android.

In general some classes from the java platform are not available on android - this produces this kind of problems.
But i can't solve this for you case not without breaking the backward compatibility for others.

Because of this i plan to start working on something that will become HtmlUnit 3 later this year. So you have to be a bit patient here - i'm not really sure about a release date of a first snapshot version.

Do you have any deadlines?

@Kartofanych
Copy link
Author

Kartofanych commented Jan 7, 2023

Oh, nice.
No, I am just trying to learn something new) I will follow your research)

@rbri
Copy link
Member

rbri commented Jan 7, 2023

ok, you can follow htmlunit on twitter also (https://twitter.com/htmlunit)

@rbri
Copy link
Member

rbri commented Jan 14, 2023

@Kartofanych
Can you please try with htmlunit-android 3.0.0-SNAPSHOT and report your results here.

@rbri
Copy link
Member

rbri commented Jul 14, 2023

no feedback i guess this is fixed now

@rbri rbri closed this as completed Jul 14, 2023
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

2 participants