NotAnyChef 0 Share 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 Link to comment Share on other sites More sharing options...
NotAnyChef 0 Author Share 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? Link to comment Share on other sites More sharing options...
Phantomwire 2 Share Posted December 26, 2021 Are you adding the library .jar to the lib file for Dreambot? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.