Résolu Attempted to load class for invalid dist DEDICATED_SERVER
-
Bonjour, je fais un mod en 1.16.5, et j’utilise Intellij Idea.
J’ai mit en dépendance SophisticatedBackpacks afin t’utiliser leur système de sac dans mon propre inventaire, en solo tout marche parfaitement mais Côté serveur j’ai l’impression que le mods sophisticatedBackpack essai charger des class client.Du coup j’ai testé de faire un mod à côté juste avec mes dépendances sans aucun code de mon côté(juste le main) et toujours le même problème.
Ma question est : est un problème dans mon IDE ou un problème du mods ?
[22:07:51] [main/FATAL] [ne.mi.fm.lo.RuntimeDistCleaner/DISTXFORM]: Attempted to load class net/minecraft/client/renderer/entity/EntityRenderer for invalid dist DEDICATED_SERVER [22:07:51] [main/ERROR] [ne.mi.fm.ja.FMLModContainer/LOADING]: Failed to load class net.p3pp3rf1y.sophisticatedbackpacks.SophisticatedBackpacks java.lang.BootstrapMethodError: java.lang.RuntimeException: Attempted to load class net/minecraft/client/renderer/entity/EntityRenderer for invalid dist DEDICATED_SERVER at net.p3pp3rf1y.sophisticatedbackpacks.SophisticatedBackpacks.lambda$static$0(SophisticatedBackpacks.java:34) ~[sophisticatedbackpacks-422301-4167327_mapped_official_1.16.5.jar:1.16.5-3.15.20.755] {re:classloading} at net.minecraftforge.fml.DistExecutor.validateSafeReferent(DistExecutor.java:252) ~[forge-1.16.5-36.2.9_mapped_official_1.16.5-recomp.jar:?] {re:classloading} at net.minecraftforge.fml.DistExecutor.safeRunForDist(DistExecutor.java:196) ~[forge-1.16.5-36.2.9_mapped_official_1.16.5-recomp.jar:?] {re:classloading} at net.p3pp3rf1y.sophisticatedbackpacks.SophisticatedBackpacks.<clinit>(SophisticatedBackpacks.java:34) ~[sophisticatedbackpacks-422301-4167327_mapped_official_1.16.5.jar:1.16.5-3.15.20.755] {re:classloading} at java.lang.Class.forName0(Native Method) ~[?:?] {} at java.lang.Class.forName(Class.java:466) ~[?:?] {} at net.minecraftforge.fml.javafmlmod.FMLModContainer.<init>(FMLModContainer.java:61) ~[forge-1.16.5-36.2.9_mapped_official_1.16.5-recomp.jar:36.2] {re:classloading} at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] {} at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:78) ~[?:?] {} at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?] {} at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?] {} at java.lang.reflect.Constructor.newInstance(Constructor.java:480) ~[?:?] {} at net.minecraftforge.fml.javafmlmod.FMLJavaModLanguageProvider$FMLModTarget.loadMod(FMLJavaModLanguageProvider.java:76) ~[forge-1.16.5-36.2.9_mapped_official_1.16.5-recomp.jar:36.2] {} at net.minecraftforge.fml.ModLoader.buildModContainerFromTOML(ModLoader.java:302) ~[forge-1.16.5-36.2.9_mapped_official_1.16.5-recomp.jar:?] {re:classloading} at net.minecraftforge.fml.ModLoader.lambda$buildMods$29(ModLoader.java:281) ~[forge-1.16.5-36.2.9_mapped_official_1.16.5-recomp.jar:?] {re:classloading} at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?] {} at java.util.HashMap$EntrySpliterator.forEachRemaining(HashMap.java:1837) ~[?:?] {} at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?] {} at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?] {} at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?] {} at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?] {} at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?] {} at net.minecraftforge.fml.ModLoader.buildMods(ModLoader.java:283) ~[forge-1.16.5-36.2.9_mapped_official_1.16.5-recomp.jar:?] {re:classloading} at net.minecraftforge.fml.ModLoader.lambda$gatherAndInitializeMods$11(ModLoader.java:183) ~[forge-1.16.5-36.2.9_mapped_official_1.16.5-recomp.jar:?] {re:classloading} at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?] {} at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?] {} at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[?:?] {} at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?] {} at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?] {} at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?] {} at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?] {} at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?] {} at net.minecraftforge.fml.ModLoader.gatherAndInitializeMods(ModLoader.java:185) ~[forge-1.16.5-36.2.9_mapped_official_1.16.5-recomp.jar:?] {re:classloading} at net.minecraftforge.fml.server.ServerModLoader.load(ServerModLoader.java:44) ~[forge-1.16.5-36.2.9_mapped_official_1.16.5-recomp.jar:?] {re:classloading} at net.minecraft.server.Main.main(Main.java:95) ~[forge-1.16.5-36.2.9_mapped_official_1.16.5-recomp.jar:?] {re:classloading} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) ~[?:?] {} at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {} at java.lang.reflect.Method.invoke(Method.java:567) ~[?:?] {} at net.minecraftforge.userdev.FMLUserdevServerLaunchProvider.lambda$launchService$0(FMLUserdevServerLaunchProvider.java:54) ~[forge-1.16.5-36.2.9_mapped_official_1.16.5-recomp.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?] {} at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:108) [forge-1.16.5-36.2.9_mapped_official_1.16.5-recomp.jar:?] {}
voici toutes mes dépendances :
repositories { maven { url "https://cursemaven.com" content { includeGroup "curse.maven" } } maven { url "https://cursemaven.com" } maven { url 'https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/' } } dependencies { minecraft 'net.minecraftforge:forge:1.16.5-36.2.9' implementation fg.deobf('software.bernie.geckolib:geckolib-forge-1.16.5:3.0.87') implementation fg.deobf("curse.maven:sophisticatedbackpacks-422301:4167327") implementation fg.deobf("curse.maven:epicfightmods-405076:4029362") }
Merci d’avance
-
Bonjour,
Le problème vient très clairement du mod SophisticatedBackpacks
-
@robin4002 Oui c’était sur, mais du coup je suis passé à java 8 et maintenant ça marche correctement ???
-
Alors là je ne n’explique pas…
-
@robin4002 Moi non plus je ne sais pas
-
-