NotAnyChef 0 Posted December 24, 2021 Hi I'm trying to use htmlunit within my script to pull data from a webpage 12:54:29: [ERROR] The script had a problem starting: java.lang.NoSuchMethodError: 'java.lang.String org.apache.commons.lang3.StringUtils.substringBefore(java.lang.String, java.lang.String)' at com.gargoylesoftware.htmlunit.util.UrlUtils.toUrlUnsafe(UrlUtils.java:238) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:528) at OsrsPriceScraper.scrapeData(OsrsPriceScraper.java:32) at FlipMain.onStart(FlipMain.java:17) at org.dreambot.api.script.AbstractScript.run(AbstractScript.java) at java.base/java.lang.Thread.run(Thread.java:833) However I get this error I've used the library before in a different project, compiled the project to a jar and executed the jar and its worked fine so i'm confused why it's not working I've done some googling and tried adding the .jar's to my lib folder, updated htmlunit to a later version and everything else i could think of Any ideas? Thankyou
NotAnyChef 0 Author Posted December 24, 2021 After some more digging it seems both htmlunit and the client use apache.commons.lang3-3 (or some version of it) is there a way to priorities one?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.