SpongePowered / SpongeVanilla

The SpongeAPI implementation for Vanilla Minecraft.
http://www.spongepowered.org/
MIT License
253 stars 78 forks source link

Crash on fresh start #387

Closed mosemister closed 6 years ago

mosemister commented 6 years ago

Just created a new SpongeVanilla using version 59 (latest recommended) and it loaded fine, I put 1 plugin in and from there it can not start, get this error (does not show the error on version 116 which I initially tried)

`java.lang.IllegalArgumentException: null
at org.objectweb.asm.ClassReader.<init>(Unknown Source) ~[sponge.jar:1.12.2-7.1.0-BETA-59]
at org.objectweb.asm.ClassReader.<init>(Unknown Source) ~[sponge.jar:1.12.2-7.1.0-BETA-59]
at org.objectweb.asm.ClassReader.<init>(Unknown Source) ~[sponge.jar:1.12.2-7.1.0-BETA-59]
at org.spongepowered.server.launch.plugin.PluginScanner.scanClassFile(PluginScanner.java:341) ~[sponge.jar:1.12.2-7.1.0-BETA-59]
at org.spongepowered.server.launch.plugin.PluginScanner.scanJar(PluginScanner.java:245) ~[sponge.jar:1.12.2-7.1.0-BETA-59]
at org.spongepowered.server.launch.plugin.PluginScanner.scanDirectory(PluginScanner.java:173) ~[sponge.jar:1.12.2-7.1.0-BETA-59]
at org.spongepowered.server.launch.plugin.VanillaLaunchPluginManager.findPlugins(VanillaLaunchPluginManager.java:66) ~[sponge.jar:1.12.2-7.1.0-BETA-59]
at org.spongepowered.server.launch.VanillaServerTweaker.searchPlugins(VanillaServerTweaker.java:171) ~[sponge.jar:1.12.2-7.1.0-BETA-59]
at org.spongepowered.server.launch.VanillaServerTweaker.injectIntoClassLoader(VanillaServerTweaker.java:94) ~[sponge.jar:1.12.2-7.1.0-BETA-59]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
at org.spongepowered.server.launch.VanillaServerMain.main(VanillaServerMain.java:117) [sponge.jar:1.12.2-7.1.0-BETA-59]
at org.spongepowered.server.launch.VersionCheckingMain.main(VersionCheckingMain.java:38) [sponge.jar:1.12.2-7.1.0-BETA-59]`

any help would be appreciated.

Edit: oh forgot to mention, the plugin I put in is one that I am making so if its my plugin then please state and I will show you the launch code

ImMorpheus commented 6 years ago

@mosemister What version of Java are you using ?

(Also, post the entire stacktrace please.)

mosemister commented 6 years ago

Java 8 Update 181

here is full stacktrace: https://gist.github.com/mosemister/8bdd44af13b9343cf9d6a99b3f7ec84c

Just installed Java 8 update 171 and that also didnt work

stephan-gh commented 6 years ago

It looks like something is weird with your plugin. Could you upload the plugin JAR somewhere?

mosemister commented 6 years ago

@Minecrell https://github.com/mosemister/MinigameLaucher/blob/interface1/src/main/java/org/minigame/plugin/MinigamePlugin.java

stephan-gh commented 6 years ago

@mosemister Since you don't seem to use a build system, could you share the actual built JAR file? I doubt it is specific to something in your code, it seems like something is weird with the actual compiled classes.

mosemister commented 6 years ago

I am using gradle just didnt upload the gradle files, just the code to the repository. Ill share the file anyway. https://drive.google.com/open?id=1bepcgxfjwuCM8r_vX7dn72crnkJ6BA_f

mosemister commented 6 years ago

just decompiled the jar, its saying null. Ill take a look at whats happening with the building of the jar. Thanks everyone