Skip to content

Listing OptionalDependencies in manifest.json causes a Java.lang.IllegalArgumentException #16

@mixels

Description

@mixels

I recently updated my project that uses this template to use LuckPerms as an optional dependency. So I added LuckPerms to my dependencies via build.gradle, updated manifest.json, and updated my project to use it if it's available. Then I copied LuckPerms.jar to the Hytale UserData\mods folder, updated gradle.properties to set load_uder_mods=true, and hit the Debug button. The below exception appears on startup.

manifest.json

    "OptionalDependencies": {
        "LuckPerms:LuckPerms": "*"
    },

This appears to be a problem with the way that template task to run the server is configured. But I don't fully understand the run server task, so I'm a bit out of my depth here. Any ideas?

java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:74)
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:483)
	at com.hypixel.hytale.server.core.plugin.pending.PendingLoadJavaPlugin.load(PendingLoadJavaPlugin.java:48)
	at com.hypixel.hytale.server.core.plugin.pending.PendingLoadJavaPlugin.load(PendingLoadJavaPlugin.java:15)
	at com.hypixel.hytale.server.core.plugin.PluginManager.setup(PluginManager.java:215)
	at com.hypixel.hytale.server.core.HytaleServer.boot(HytaleServer.java:345)
	at com.hypixel.hytale.server.core.HytaleServer.<init>(HytaleServer.java:303)
	at com.hypixel.hytale.LateMain.lateMain(LateMain.java:54)
	at com.hypixel.hytale.Main.main(Main.java:43)
Caused by: java.lang.IllegalArgumentException: String does not match <group>:<name>
	at com.hypixel.hytale.common.plugin.PluginIdentifier.fromString(PluginIdentifier.java:97)
	at com.the7legions.hytale.plugins.WorkbenchRepairPlugin.<init>(WorkbenchRepairPlugin.java:23)
	at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
	... 9 more```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions