Error: `Unexpected error loading config value for exampleEnumList, falling back to default java.lang.ClassCastException: class net.blay09.mods.balm.config.ExampleConfigData$ExampleEnum cannot be cast to class java.lang.String`
Lolothepro opened this issue ยท 0 comments
Minecraft Version
1.21
Mod Loader
NeoForge
Mod Loader Version
21.0.76-beta
Mod Version
21.0.12
Balm Version
21.0.12
Describe the Issue
Unexpected error loading config value for exampleEnumList, falling back to default
java.lang.ClassCastException: class net.blay09.mods.balm.config.ExampleConfigData$ExampleEnum cannot be cast to class java.lang.String (net.blay09.mods.balm.config.ExampleConfigData$ExampleEnum is in module [email protected] of loader 'TRANSFORMER' @2e17a321; java.lang.String is in module java.base of loader 'bootstrap')
at TRANSFORMER/[email protected]/net.blay09.mods.balm.neoforge.config.NeoForgeBalmConfig.lambda$readConfigValues$8(NeoForgeBalmConfig.java:146) ~[balm-neoforge-1.21-21.0.12-all.jar%23171!/:21.0.12] {re:classloading}
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?] {}
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708) ~[?:?] {}
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?] {}
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?] {}
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?] {}
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?] {}
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?] {}
at TRANSFORMER/[email protected]/net.blay09.mods.balm.neoforge.config.NeoForgeBalmConfig.readConfigValues(NeoForgeBalmConfig.java:150) ~[balm-neoforge-1.21-21.0.12-all.jar%23171!/:21.0.12] {re:classloading}
at TRANSFORMER/[email protected]/net.blay09.mods.balm.neoforge.config.NeoForgeBalmConfig.readConfigValues(NeoForgeBalmConfig.java:100) ~[balm-neoforge-1.21-21.0.12-all.jar%23171!/:21.0.12] {re:classloading}
at TRANSFORMER/[email protected]/net.blay09.mods.balm.neoforge.config.NeoForgeBalmConfig.lambda$initializeBackingConfig$9(NeoForgeBalmConfig.java:226) ~[balm-neoforge-1.21-21.0.12-all.jar%23171!/:21.0.12] {re:classloading}
at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.ConsumerEventHandler.invoke(ConsumerEventHandler.java:26) ~[bus-8.0.1.jar%23163!/:?] {}
at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.EventBus.post(EventBus.java:350) ~[bus-8.0.1.jar%23163!/:?] {}
at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.EventBus.post(EventBus.java:315) ~[bus-8.0.1.jar%23163!/:?] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModContainer.acceptEvent(ModContainer.java:169) ~[loader-4.0.15.jar%23164!/:4.0] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.config.ModConfig.postConfigEvent(ModConfig.java:83) ~[loader-4.0.15.jar%23164!/:4.0] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.config.ConfigTracker.openConfig(ConfigTracker.java:87) ~[loader-4.0.15.jar%23164!/:4.0] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.config.ConfigTracker.lambda$loadConfigs$1(ConfigTracker.java:63) ~[loader-4.0.15.jar%23164!/:4.0] {}
at java.base/java.lang.Iterable.forEach(Iterable.java:75) ~[?:?] {re:computing_frames}
at java.base/java.util.Collections$SynchronizedCollection.forEach(Collections.java:2351) ~[?:?] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.config.ConfigTracker.loadConfigs(ConfigTracker.java:63) ~[loader-4.0.15.jar%23164!/:4.0] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.config.ConfigTracker.loadConfigs(ConfigTracker.java:58) ~[loader-4.0.15.jar%23164!/:4.0] {}
at TRANSFORMER/[email protected]/net.neoforged.neoforge.internal.CommonModLoader.lambda$load$2(CommonModLoader.java:65) ~[neoforge-21.0.76-beta-universal.jar%23170!/:?] {re:classloading}
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[?:?] {}
at TRANSFORMER/[email protected]/net.minecraft.server.packs.resources.SimpleReloadInstance.lambda$new$3(SimpleReloadInstance.java:69) ~[client-1.21-20240613.152323-srg.jar%23169!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:148) ~[client-1.21-20240613.152323-srg.jar%23169!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
at TRANSFORMER/[email protected]/net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:23) ~[client-1.21-20240613.152323-srg.jar%23169!/:?] {re:mixin,re:computing_frames,re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:122) ~[client-1.21-20240613.152323-srg.jar%23169!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
at TRANSFORMER/[email protected]/net.minecraft.util.thread.BlockableEventLoop.runAllTasks(BlockableEventLoop.java:111) ~[client-1.21-20240613.152323-srg.jar%23169!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
at TRANSFORMER/[email protected]/net.minecraft.client.Minecraft.runTick(Minecraft.java:1158) ~[client-1.21-20240613.152323-srg.jar%23169!/:?] {re:mixin,pl:runtimedistcleaner:A,re:classloading,pl:mixin:A,pl:runtimedistcleaner:A}
at TRANSFORMER/[email protected]/net.minecraft.client.Minecraft.run(Minecraft.java:810) ~[client-1.21-20240613.152323-srg.jar%23169!/:?] {re:mixin,pl:runtimedistcleaner:A,re:classloading,pl:mixin:A,pl:runtimedistcleaner:A}
at TRANSFORMER/[email protected]/net.minecraft.client.main.Main.main(Main.java:230) ~[client-1.21-20240613.152323-srg.jar%23169!/:?] {re:classloading,pl:runtimedistcleaner:A}
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?] {}
at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[?:?] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:136) ~[loader-4.0.15.jar%23164!/:4.0] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.clientService(CommonLaunchHandler.java:124) ~[loader-4.0.15.jar%23164!/:4.0] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonClientLaunchHandler.runService(CommonClientLaunchHandler.java:32) ~[loader-4.0.15.jar%23164!/:4.0] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.lambda$launchService$4(CommonLaunchHandler.java:118) ~[loader-4.0.15.jar%23164!/:4.0] {}
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) [modlauncher-11.0.4.jar%23150!/:?] {}
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-11.0.4.jar%23150!/:?] {}
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-11.0.4.jar%23150!/:?] {}
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.run(Launcher.java:103) [modlauncher-11.0.4.jar%23150!/:?] {}
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:74) [modlauncher-11.0.4.jar%23150!/:?] {}
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-11.0.4.jar%23150!/:?] {}
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-11.0.4.jar%23150!/:?] {}
at [email protected]/cpw.mods.bootstraplauncher.BootstrapLauncher.run(BootstrapLauncher.java:210) [bootstraplauncher-2.0.2.jar:?] {}
at [email protected]/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:69) [bootstraplauncher-2.0.2.jar:?] {}
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?] {}
at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[?:?] {}
at io.github.zekerzhayard.forgewrapper.installer.Main.main(Main.java:67) [ForgeWrapper-prism-2024-02-29.jar:prism-2024-02-29] {}
at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:100) [NewLaunch.jar:?] {}
at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129) [NewLaunch.jar:?] {}
at org.prismlauncher.EntryPoint.main(EntryPoint.java:70) [NewLaunch.jar:?] {}
[20:37:08] [Thread-4/ERROR] [ne.bl.mo.ba.ne.co.NeoForgeBalmConfig/]: Unexpected error loading config value for exampleEnumList, falling back to default
java.lang.ClassCastException: class net.blay09.mods.balm.config.ExampleConfigData$ExampleEnum cannot be cast to class java.lang.String (net.blay09.mods.balm.config.ExampleConfigData$ExampleEnum is in module [email protected] of loader 'TRANSFORMER' @2e17a321; java.lang.String is in module java.base of loader 'bootstrap')
at TRANSFORMER/[email protected]/net.blay09.mods.balm.neoforge.config.NeoForgeBalmConfig.lambda$readConfigValues$8(NeoForgeBalmConfig.java:146) ~[balm-neoforge-1.21-21.0.12-all.jar%23171!/:21.0.12] {re:classloading}
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?] {}
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708) ~[?:?] {}
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?] {}
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?] {}
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?] {}
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?] {}
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?] {}
at TRANSFORMER/[email protected]/net.blay09.mods.balm.neoforge.config.NeoForgeBalmConfig.readConfigValues(NeoForgeBalmConfig.java:150) ~[balm-neoforge-1.21-21.0.12-all.jar%23171!/:21.0.12] {re:classloading}
at TRANSFORMER/[email protected]/net.blay09.mods.balm.neoforge.config.NeoForgeBalmConfig.readConfigValues(NeoForgeBalmConfig.java:100) ~[balm-neoforge-1.21-21.0.12-all.jar%23171!/:21.0.12] {re:classloading}
at TRANSFORMER/[email protected]/net.blay09.mods.balm.neoforge.config.NeoForgeBalmConfig.lambda$initializeBackingConfig$10(NeoForgeBalmConfig.java:234) ~[balm-neoforge-1.21-21.0.12-all.jar%23171!/:21.0.12] {re:classloading}
at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.ConsumerEventHandler.invoke(ConsumerEventHandler.java:26) [bus-8.0.1.jar%23163!/:?] {}
at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.EventBus.post(EventBus.java:350) [bus-8.0.1.jar%23163!/:?] {}
at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.EventBus.post(EventBus.java:315) [bus-8.0.1.jar%23163!/:?] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModContainer.acceptEvent(ModContainer.java:169) [loader-4.0.15.jar%23164!/:4.0] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.config.ModConfig.postConfigEvent(ModConfig.java:83) [loader-4.0.15.jar%23164!/:4.0] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.config.ConfigFileTypeHandler$ConfigWatcher.run(ConfigFileTypeHandler.java:152) [loader-4.0.15.jar%23164!/:4.0] {}
at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.core.file.FileWatcher$WatcherThread.run(FileWatcher.java:181) [core-3.6.4.jar%23149!/:?] {}
Balm causes this error, is it possible to fix it?
Logs
Do you use any performance-enhancing mods (e.g. OptiFine) or custom server distributions (e.g. SpongeForge)?
No