Help with "dump-items.bat" errors on v179.4

Results 1 to 3 of 3
  1. #1
    Novice 000f is offline
    MemberRank
    Aug 2018 Join Date
    1Posts

    Help with "dump-items.bat" errors on v179.4

    I got a v179.4 server up somehow and this is my first time doing this, how do I fix this error I am getting when I run the dump-items.bat? I checked the path inside and everything seems to be correct. This is what I am getting

    Code:
    java.lang.IllegalArgumentException: Can't create data provider!
    at lib.data.MapleDataProviderFactory.getWZ(MapleDataProviderFactory.java:45)
    at lib.data.MapleDataProviderFactory.getDataProvider(MapleDataProviderFactory.java:31)
    at tools.wztosql.DumpItems.<init>(DumpItems.java:45)
    at tools.wztosql.DumpItems.main(DumpItems.java:482)
    0 quest.
    Finished with errors in 0 minutes 0 seconds
    Press any key to continue . . .
    And this is the contents of MapleDataProviderFactory.java

    import java.io.File;
    import lib.xml.XMLWZFile;

    public class MapleDataProviderFactory {

    public static MapleDataProvider getDataProvider(String file) {
    return getWZ(new File("wz", file), false);
    }

    private static MapleDataProvider getWZ(Object in, boolean provideImages) {
    if(in instanceof File) {
    File file = ((File) in);
    if (file.isDirectory()) {
    try {
    return new XMLWZFile((File) in);
    } catch(NullPointerException npe) {
    throw new IllegalArgumentException("The file '"+in+"' was not found!");
    }
    }
    }
    throw new IllegalArgumentException("Can't create data provider!");
    }

    }
    Thanks a lot.


  2. #2
    Valued Member Umbreon is offline
    MemberRank
    Apr 2012 Join Date
    100Posts

    Re: Help with "dump-items.bat" errors on v179.4

    Use swordie

  3. #3
    Novice SenseiVI is offline
    MemberRank
    Jan 2020 Join Date
    4Posts

    Re: Help with "dump-items.bat" errors on v179.4

    had the same issue, googled and found this thread, no help, I fixed it by adding the line; sql_endpoint=127.0.0.1 to the config.properties file. for anyone else who runs into this issue. My issue was MYSQL wasn't being connected to.

    **EDIT**
    My fix didn't work after all. Still having same issue :) I couldn't get the server to start but I did after, still having issue with batchfiles.



Advertisement