Resolved getTextLength error in Launcher

Discussion in 'Launcher' started by Tokeli, Feb 9, 2016.

  1. Tokeli

    Tokeli New Member

    Hi! For the life of me, I cannot figure out what's wrong with the launcher that I've compiled. Upon launching, I get two popups of this.

    at java.util.regex.Matcher.getTextLength(Unknown Source)
    at java.util.regex.Matcher.reset(Unknown Source)
    at java.util.regex.Matcher.<init>(Unknown Source)
    at java.util.regex.Pattern.matcher(Unknown Source)
    at java.util.Formatter.parse(Unknown Source)
    at java.util.Formatter.format(Unknown Source)
    at java.util.Formatter.format(Unknown Source)
    at java.lang.String.format(Unknown Source)
    at com.skcraft.launcher.Launcher.getPackagesURL(
    at com.skcraft.launcher.InstanceList$
    at com.skcraft.launcher.InstanceList$
    at Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$ Source)
    at Source)

    Clicking the "Check for Updates" button causes the same issue. The error makes me think there's something wrong with my JSON files, but I can't see any issues seeing as they're so SIMPLE.

    I'm running JDK/JRE v8.0_74

    And here's a link to my launcher and the package files. Am I just missing something blatantly obvious?
  2. sk89q

    sk89q Administrator Developer

    You need to put %s somewhere in your packagesListUrl in I think, to represent the current launcher version.

    Code (Text):
  3. Tokeli

    Tokeli New Member

    Lord, it was an even simpler issue than that. Somehow an S got in there, it's actually "packageListUrl". Thank you so much for the quick reply, though, and thank you for the amazing launcher in the first place! <3