Open dshetyo opened 2 years ago
Yes have seen this already - two points
Failed resolution of: Ljava/awt/datatransfer/ClipboardOwner This is one of the remaining problems because not all classes of the standard jdk are available on Android. Good news, i have already fixed that. Please use the latest snapshot build of htmlunit-android 2.59.0-SNAPSHOT. This build no longer requires this class.
ReferenceError: "WebAssembly" is not defined. This is (more or less) expected. HtmlUnit has not support for WebAssembly so far. But usually this in no real problem, the only thing you have to do is to set the WebClientOption setThrowExceptionOnScriptError() to false (if not already done). The exception will still be visible in the log but the js is processed.
I am using 2.58.0-SNAPSHOT version and trying to load google.com and am getting error.
My code
@rocess: com.mindedges.whatsapptracker, PID: 15821 java.lang.NoClassDefFoundError: Failed resolution of: Ljava/awt/datatransfer/ClipboardOwner; at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.handleCharacters(HtmlUnitNekoDOMBuilder.java:593) at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.endElement(HtmlUnitNekoDOMBuilder.java:521) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source:35) at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.endElement(HtmlUnitNekoDOMBuilder.java:511) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1247) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1172) at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.endElement(DefaultFilter.java:219) at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.endElement(NamespaceBinder.java:312) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:3314) at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:937) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:443) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:394) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source:5) at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.parse(HtmlUnitNekoDOMBuilder.java:758) at com.gargoylesoftware.htmlunit.html.parser.neko.HtmlUnitNekoHtmlParser.parse(HtmlUnitNekoHtmlParser.java:204) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:298) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:218) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:686) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:588) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:506) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:413) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:551) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:533) at java.lang.Thread.run(Thread.java:923) Caused by: java.lang.ClassNotFoundException: Didn't find class "java.awt.datatransfer.ClipboardOwner" on path: DexPathList
Tried some other website and agin getting error.