Tries to load client-side class on server
NoaHimesaka1873 opened this issue · 3 comments
I hate to say this, but this mod is very poorly written to the point where it tries to load client class in server, therefore crashing the server. Without this bad mod and supplementaries, the server works as expected.
Logs are here because you don't deserve short issue:
---- Minecraft Crash Report ----
// I'm sorry, Dave.
Time: 2022-10-14 13:50:00
Description: Mod loading error has occurred
java.lang.Exception: Mod Loading has failed
at net.minecraftforge.logging.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:55) ~[forge-1.19.2-43.1.1-universal.jar%23133!/:?] {re:classloading}
at net.minecraftforge.server.loading.ServerModLoader.load(ServerModLoader.java:39) ~[forge-1.19.2-43.1.1-universal.jar%23133!/:?] {re:classloading}
at net.minecraft.server.Main.main(Main.java:113) ~[server-1.19.2-20220805.130853-srg.jar%23128!/:?] {re:classloading}
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}
at net.minecraftforge.fml.loading.targets.CommonServerLaunchHandler.lambda$launchService$0(CommonServerLaunchHandler.java:29) ~[fmlloader-1.19.2-43.1.1.jar%2367!/:?] {}
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) [modlauncher-10.0.8.jar%2354!/:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-10.0.8.jar%2354!/:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-10.0.8.jar%2354!/:?] {}
at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-10.0.8.jar%2354!/:?] {}
at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-10.0.8.jar%2354!/:?] {}
at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-10.0.8.jar%2354!/:?] {}
at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-10.0.8.jar%2354!/:?] {}
at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) [bootstraplauncher-1.1.2.jar:?] {}
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: main
Stacktrace:
at net.minecraftforge.fml.loading.RuntimeDistCleaner.processClassWithFlags(RuntimeDistCleaner.java:57) ~[fmlloader-1.19.2-43.1.1.jar%2367!/:1.0] {}
-- MOD moonlight --
Details:
Caused by 0: java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] {}
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?] {}
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?] {}
at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?] {re:mixin}
at java.lang.reflect.Constructor.newInstance(Constructor.java:480) ~[?:?] {re:mixin}
at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:68) ~[javafmllanguage-1.19.2-43.1.1.jar%23130!/:?] {}
at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$10(ModContainer.java:121) ~[fmlcore-1.19.2-43.1.1.jar%23129!/:?] {}
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[?:?] {}
at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796) ~[?:?] {}
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?] {}
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?] {}
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?] {}
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?] {}
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?] {}
Mod File: (redacted)/mods/moonlight-1.19.2-2.0.35.jar
Failure message: Moonlight Library (moonlight) has failed to load correctly
java.lang.reflect.InvocationTargetException: null
Mod Version: 1.19.2-2.0.35
Mod Issue URL: https://github.com/MehVahdJukaar/Moonlight/issues
Exception message: java.lang.RuntimeException: Attempted to load class net/minecraft/client/renderer/texture/AbstractTexture for invalid dist DEDICATED_SERVER
Stacktrace:
at net.minecraftforge.fml.loading.RuntimeDistCleaner.processClassWithFlags(RuntimeDistCleaner.java:57) ~[fmlloader-1.19.2-43.1.1.jar%2367!/:1.0] {}
at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:88) ~[modlauncher-10.0.8.jar%2354!/:?] {}
at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) ~[modlauncher-10.0.8.jar%2354!/:?] {}
at cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:50) ~[modlauncher-10.0.8.jar%2354!/:?] {}
at cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:113) ~[securejarhandler-2.1.4.jar:?] {}
at cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219) ~[securejarhandler-2.1.4.jar:?] {}
at cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229) ~[securejarhandler-2.1.4.jar:?] {}
at cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219) ~[securejarhandler-2.1.4.jar:?] {}
at cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:135) ~[securejarhandler-2.1.4.jar:?] {}
at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?] {}
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?] {}
at java.lang.ClassLoader.defineClass(ClassLoader.java:1012) ~[?:?] {}
at cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:119) ~[securejarhandler-2.1.4.jar:?] {}
at cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219) ~[securejarhandler-2.1.4.jar:?] {}
at cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229) ~[securejarhandler-2.1.4.jar:?] {}
at cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219) ~[securejarhandler-2.1.4.jar:?] {}
at cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:135) ~[securejarhandler-2.1.4.jar:?] {}
at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?] {}
at net.mehvahdjukaar.moonlight.core.Moonlight.commonInit(Moonlight.java:53) ~[moonlight-1.19.2-2.0.35.jar%23112!/:?] {re:mixin,re:classloading}
at net.mehvahdjukaar.moonlight.forge.MoonlightForge.<init>(MoonlightForge.java:34) ~[moonlight-1.19.2-2.0.35.jar%23112!/:?] {re:classloading}
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] {}
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?] {}
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?] {}
at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?] {re:mixin}
at java.lang.reflect.Constructor.newInstance(Constructor.java:480) ~[?:?] {re:mixin}
at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:68) ~[javafmllanguage-1.19.2-43.1.1.jar%23130!/:?] {}
at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$10(ModContainer.java:121) ~[fmlcore-1.19.2-43.1.1.jar%23129!/:?] {}
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[?:?] {}
at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796) ~[?:?] {}
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?] {}
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?] {}
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?] {}
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?] {}
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?] {}
-- System Details --
Details:
Minecraft Version: 1.19.2
Minecraft Version ID: 1.19.2
Operating System: Linux (amd64) version 5.14.0-70.22.1.el9_0.x86_64
Java Version: 17.0.4, GraalVM Community
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), GraalVM Community
Memory: 9659742320 bytes (9212 MiB) / 10737418240 bytes (10240 MiB) up to 10737418240 bytes (10240 MiB)
CPUs: 16
Processor Vendor: AuthenticAMD
Processor Name: AMD Ryzen 7 3700X 8-Core Processor
Identifier: AuthenticAMD Family 23 Model 113 Stepping 0
Microarchitecture: Zen 2
Frequency (GHz): 4.63
Number of physical packages: 1
Number of physical CPUs: 8
Number of logical CPUs: 16
Graphics card #0 name: GK208B [GeForce GT 710]
Graphics card #0 vendor: NVIDIA Corporation (0x10de)
Graphics card #0 VRAM (MB): 160.00
Graphics card #0 deviceId: 0x128b
Graphics card #0 versionInfo: unknown
Virtual memory max (MB): 48399.77
Virtual memory used (MB): 19187.71
Swap memory total (MB): 16384.00
Swap memory used (MB): 1790.75
JVM Flags: 17 total; -XX:ThreadPriorityPolicy=1 -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCIProduct -XX:-UnlockExperimentalVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -Xmx10240M -Xms10240M -XX:ParallelGCThreads=12 -XX:ConcGCThreads=4 -XX:+ParallelRefProcEnabled -XX:G1NewSizePercent=20 -XX:G1HeapRegionSize=32M -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50
ModLauncher: 10.0.8+10.0.8+main.0ef7e830
ModLauncher launch target: forgeserver
ModLauncher naming: srg
ModLauncher services:
mixin-0.8.5.jar mixin PLUGINSERVICE
eventbus-6.0.3.jar eventbus PLUGINSERVICE
fmlloader-1.19.2-43.1.1.jar slf4jfixer PLUGINSERVICE
fmlloader-1.19.2-43.1.1.jar object_holder_definalize PLUGINSERVICE
fmlloader-1.19.2-43.1.1.jar runtime_enum_extender PLUGINSERVICE
fmlloader-1.19.2-43.1.1.jar capability_token_subclass PLUGINSERVICE
accesstransformers-8.0.4.jar accesstransformer PLUGINSERVICE
fmlloader-1.19.2-43.1.1.jar runtimedistcleaner PLUGINSERVICE
modlauncher-10.0.8.jar mixin TRANSFORMATIONSERVICE
modlauncher-10.0.8.jar fml TRANSFORMATIONSERVICE
FML Language Providers:
[email protected]
lowcodefml@null
javafml@null
Mod List:
server-1.19.2-20220805.130853-srg.jar |Minecraft |minecraft |1.19.2 |COMMON_SET|Manifest: NOSIGNATURE
radon-0.8.2.jar |Radon |radon |0.8.2 |COMMON_SET|Manifest: NOSIGNATURE
FarmersDelight-1.19-1.2.0.jar |Farmer's Delight |farmersdelight |1.19-1.2.0 |COMMON_SET|Manifest: NOSIGNATURE
saturn-mc1.19.2-0.0.1.jar |Saturn |saturn |0.0.1 |COMMON_SET|Manifest: NOSIGNATURE
moonlight-1.19.2-2.0.35.jar |Moonlight Library |moonlight |1.19.2-2.0.35 |ERROR |Manifest: NOSIGNATURE
MouseTweaks-forge-mc1.19-2.23.jar |Mouse Tweaks |mousetweaks |2.23 |COMMON_SET|Manifest: NOSIGNATURE
Fastload-Reforged-1.2.1+1.19.2.jar |Fastload |fastload |1.2.1+1.19.2 |COMMON_SET|Manifest: NOSIGNATURE
supermartijn642configlib-1.1.6b-forge-mc1.19.jar |SuperMartijn642's Config Libra|supermartijn642configlib |1.1.6b |COMMON_SET|Manifest: NOSIGNATURE
mc2discord-forge-1.19.x-3.2.11.jar |Mc2Discord |mc2discord |3.2.11 |COMMON_SET|Manifest: NOSIGNATURE
rechiseled-1.0.10c-forge-mc1.19.jar |Rechiseled |rechiseled |1.0.10c |COMMON_SET|Manifest: NOSIGNATURE
NoChatReports-FORGE-1.19.2-v1.4.0.jar |No Chat Reports |nochatreports |1.19.2-v1.4.0 |COMMON_SET|Manifest: NOSIGNATURE
supermartijn642corelib-1.0.19a-forge-mc1.19.jar |SuperMartijn642's Core Lib |supermartijn642corelib |1.0.19a |COMMON_SET|Manifest: NOSIGNATURE
domum_ornamentum-1.19-1.0.58-ALPHA-universal.jar |Domum Ornamentum |domum_ornamentum |1.19-1.0.58-ALPHA |COMMON_SET|Manifest: NOSIGNATURE
sophisticatedcore-1.19.2-0.5.13.134.jar |Sophisticated Core |sophisticatedcore |1.19.2-0.5.13.134 |COMMON_SET|Manifest: NOSIGNATURE
curios-forge-1.19.2-5.1.1.0.jar |Curios API |curios |1.19.2-5.1.1.0 |COMMON_SET|Manifest: NOSIGNATURE
flywheel-forge-1.19.2-0.6.7-8.jar |Flywheel |flywheel |0.6.7-8 |COMMON_SET|Manifest: NOSIGNATURE
create-1.19.2-0.5.0.f.jar |Create |create |0.5.0.f |COMMON_SET|Manifest: NOSIGNATURE
blockui-1.19-0.0.64-ALPHA.jar |UI Library Mod |blockui |1.19-0.0.64-ALPHA |COMMON_SET|Manifest: NOSIGNATURE
alternate-current-mc1.19-1.4.0.jar |Alternate Current |alternate_current |1.4.0 |COMMON_SET|Manifest: NOSIGNATURE
Decorative+Blocks-forge-1.19.2-3.0.0.jar |Decorative Blocks |decorative_blocks |3.0.0 |COMMON_SET|Manifest: NOSIGNATURE
canary-mc1.19.2-0.0.4.jar |Canary |canary |0.0.4 |COMMON_SET|Manifest: NOSIGNATURE
structurize-1.19.2-1.0.452-ALPHA.jar |Structurize |structurize |1.19.2-1.0.452-ALPHA|COMMON_SET|Manifest: NOSIGNATURE
multi-piston-1.19-1.2.14-ALPHA.jar |Multi-Piston |multipiston |1.19-1.2.14-ALPHA |COMMON_SET|Manifest: NOSIGNATURE
sophisticatedbackpacks-1.19.2-3.18.29.719.jar |Sophisticated Backpacks |sophisticatedbackpacks |1.19.2-3.18.29.719 |COMMON_SET|Manifest: NOSIGNATURE
pluto-mc1.19.2-0.0.1.jar |Pluto |pluto |0.0.1 |COMMON_SET|Manifest: NOSIGNATURE
minecolonies-1.19.2-1.0.1064-BETA.jar |MineColonies |minecolonies |1.19.2-1.0.1064-BETA|COMMON_SET|Manifest: NOSIGNATURE
starlight-1.1.1+forge.cf5b10b.jar |Starlight |starlight |1.1.1+forge.a3aea74 |COMMON_SET|Manifest: NOSIGNATURE
create_crystal_clear-0.1e-1.19.2.jar |Create: Crystal Clear |create_crystal_clear |0.1e |COMMON_SET|Manifest: NOSIGNATURE
Paraglider-1.19.2-1.7.0.1.jar |Paraglider |paraglider |1.7.0.1 |COMMON_SET|Manifest: NOSIGNATURE
forge-1.19.2-43.1.1-universal.jar |Forge |forge |43.1.1 |COMMON_SET|Manifest: 84:ce:76:e8:45:35:e4:0e:63:86:df:47:59:80:0f:67:6c:c1:5f:6e:5f:4d:b3:54:47:1a:9f:7f:ed:5e:f2:90
appleskin-forge-mc1.19-2.4.2.jar |AppleSkin |appleskin |2.4.2+mc1.19 |COMMON_SET|Manifest: NOSIGNATURE
corpse-1.19.2-1.0.0.jar |Corpse |corpse |1.19.2-1.0.0 |COMMON_SET|Manifest: NOSIGNATURE
Crash Report UUID: 9fee1cdb-c954-4f89-a38c-16febd08d7fe
FML: 43.1
Forge: net.minecraftforge:43.1.1[13:50:00] [main/ERROR] [minecraft/Main]: Failed to start the minecraft server
net.minecraftforge.fml.LoadingFailedException: Loading errors encountered: [
Moonlight Library (moonlight) has failed to load correctly
§7java.lang.reflect.InvocationTargetException: null
]
at net.minecraftforge.fml.ModLoader.waitForTransition(ModLoader.java:243) ~[fmlcore-1.19.2-43.1.1.jar%23129!/:?] {}
at net.minecraftforge.fml.ModLoader.lambda$dispatchAndHandleError$24(ModLoader.java:208) ~[fmlcore-1.19.2-43.1.1.jar%23129!/:?] {}
at java.util.Optional.ifPresent(Optional.java:178) ~[?:?] {re:mixin}
at net.minecraftforge.fml.ModLoader.dispatchAndHandleError(ModLoader.java:208) ~[fmlcore-1.19.2-43.1.1.jar%23129!/:?] {}
at net.minecraftforge.fml.ModLoader.lambda$gatherAndInitializeMods$14(ModLoader.java:185) ~[fmlcore-1.19.2-43.1.1.jar%23129!/:?] {}
at java.lang.Iterable.forEach(Iterable.java:75) ~[?:?] {re:mixin}
at net.minecraftforge.fml.ModLoader.gatherAndInitializeMods(ModLoader.java:185) ~[fmlcore-1.19.2-43.1.1.jar%23129!/:?] {}
at net.minecraftforge.server.loading.ServerModLoader.load(ServerModLoader.java:32) ~[forge-1.19.2-43.1.1-universal.jar%23133!/:?] {re:classloading}
at net.minecraft.server.Main.main(Main.java:113) ~[server-1.19.2-20220805.130853-srg.jar%23128!/:?] {re:classloading}
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}
at net.minecraftforge.fml.loading.targets.CommonServerLaunchHandler.lambda$launchService$0(CommonServerLaunchHandler.java:29) ~[fmlloader-1.19.2-43.1.1.jar%2367!/:?] {}
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) [modlauncher-10.0.8.jar%2354!/:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-10.0.8.jar%2354!/:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-10.0.8.jar%2354!/:?] {}
at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-10.0.8.jar%2354!/:?] {}
at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-10.0.8.jar%2354!/:?] {}
at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-10.0.8.jar%2354!/:?] {}
at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-10.0.8.jar%2354!/:?] {}
at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) [bootstraplauncher-1.1.2.jar:?] {}
Write your mod properly next time.
Same issue occurs with fabric, the issue is that DynamicDataPack references DynamicResourcePack, which really should only be used client-side