I am using Voldeloom with Gradle 8.5-8.6. That works perfect, when I am using build and runClient, but runServer doesn't work.
The problem is with 1.5.2 and 1.6.4 only, because runServer in 1.3.2 and 1.4.7 works well.
Also I should say, that I have three simple mods, and every contains the same crash log. These mods exist on 1.4.7, 1.5.2 and so on, and their code on these versions is almost equal (and, as I said, everything is ok with 1.4.7, so I don't think the problem is in the code).
Crash log:
2024-02-21 23:11:39 [INFO] [STDERR] java.lang.reflect.InvocationTargetException
2024-02-21 23:11:39 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2024-02-21 23:11:39 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2024-02-21 23:11:39 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2024-02-21 23:11:39 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:498)
2024-02-21 23:11:39 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher.relaunchServer(FMLRelauncher.java:152)
2024-02-21 23:11:39 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher.handleServerRelaunch(FMLRelauncher.java:45)
2024-02-21 23:11:39 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1367)
2024-02-21 23:11:39 [INFO] [STDERR] Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/AnvilConverterException
2024-02-21 23:11:39 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.(MinecraftServer.java:173)
2024-02-21 23:11:39 [INFO] [STDERR] at net.minecraft.server.dedicated.DedicatedServer.(DedicatedServer.java:49)
2024-02-21 23:11:39 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.fmlReentry(MinecraftServer.java:1443)
2024-02-21 23:11:39 [INFO] [STDERR] ... 7 more
2024-02-21 23:11:39 [INFO] [STDERR] Caused by: java.lang.ClassNotFoundException: net.minecraft.client.AnvilConverterException
2024-02-21 23:11:39 [INFO] [STDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:238)
2024-02-21 23:11:39 [INFO] [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
2024-02-21 23:11:39 [INFO] [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
2024-02-21 23:11:39 [INFO] [STDERR] ... 10 more
2024-02-21 23:11:39 [INFO] [STDERR] Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/AnvilConverterException for invalid side SERVER
2024-02-21 23:11:39 [INFO] [STDERR] at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:50)
2024-02-21 23:11:39 [INFO] [STDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:352)
2024-02-21 23:11:39 [INFO] [STDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:225)
2024-02-21 23:11:39 [INFO] [STDERR] ... 12 more
23:11:39: Execution finished 'runServer'.
I am using Voldeloom with Gradle 8.5-8.6. That works perfect, when I am using build and runClient, but runServer doesn't work.
The problem is with 1.5.2 and 1.6.4 only, because runServer in 1.3.2 and 1.4.7 works well.
Also I should say, that I have three simple mods, and every contains the same crash log. These mods exist on 1.4.7, 1.5.2 and so on, and their code on these versions is almost equal (and, as I said, everything is ok with 1.4.7, so I don't think the problem is in the code).
Crash log:
2024-02-21 23:11:39 [INFO] [STDERR] java.lang.reflect.InvocationTargetException 2024-02-21 23:11:39 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2024-02-21 23:11:39 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 2024-02-21 23:11:39 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2024-02-21 23:11:39 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:498) 2024-02-21 23:11:39 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher.relaunchServer(FMLRelauncher.java:152) 2024-02-21 23:11:39 [INFO] [STDERR] at cpw.mods.fml.relauncher.FMLRelauncher.handleServerRelaunch(FMLRelauncher.java:45) 2024-02-21 23:11:39 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1367) 2024-02-21 23:11:39 [INFO] [STDERR] Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/AnvilConverterException 2024-02-21 23:11:39 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.(MinecraftServer.java:173)
2024-02-21 23:11:39 [INFO] [STDERR] at net.minecraft.server.dedicated.DedicatedServer.(DedicatedServer.java:49)
2024-02-21 23:11:39 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.fmlReentry(MinecraftServer.java:1443)
2024-02-21 23:11:39 [INFO] [STDERR] ... 7 more
2024-02-21 23:11:39 [INFO] [STDERR] Caused by: java.lang.ClassNotFoundException: net.minecraft.client.AnvilConverterException
2024-02-21 23:11:39 [INFO] [STDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:238)
2024-02-21 23:11:39 [INFO] [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
2024-02-21 23:11:39 [INFO] [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
2024-02-21 23:11:39 [INFO] [STDERR] ... 10 more
2024-02-21 23:11:39 [INFO] [STDERR] Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/AnvilConverterException for invalid side SERVER
2024-02-21 23:11:39 [INFO] [STDERR] at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:50)
2024-02-21 23:11:39 [INFO] [STDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:352)
2024-02-21 23:11:39 [INFO] [STDERR] at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:225)
2024-02-21 23:11:39 [INFO] [STDERR] ... 12 more
23:11:39: Execution finished 'runServer'.