Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run NeoForge datagen task on yarn mappings #241

Open
ZigyTheBird opened this issue Oct 16, 2024 · 0 comments
Open

Can't run NeoForge datagen task on yarn mappings #241

ZigyTheBird opened this issue Oct 16, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@ZigyTheBird
Copy link

I followed https://docs.architectury.dev/loom/datagen in order to get datagen working on my NeoForge only Architectury Loom project.
But I get an error whenever I try to run the runData task.

Log here!
2:06:53 AM: Executing 'runData'...

Starting Gradle Daemon...
Gradle Daemon started in 2 s 258 ms

Configure project :
Architectury Loom: 1.7.413
This version of Architectury Loom is in beta! Please report any issues you encounter: https://github.com/architectury/architectury-loom/issues

Task :compileJava UP-TO-DATE
Task :processResources UP-TO-DATE
Task :classes UP-TO-DATE
Task :generateLog4jConfig UP-TO-DATE
Task :generateRemapClasspath UP-TO-DATE
Task :generateDLIConfig UP-TO-DATE
Task :configureLaunch UP-TO-DATE

Task :runData
[02:07:12] [main/INFO] (Launcher) ModLauncher running: args [--launchTarget, forgedatauserdev, --assetIndex, 1.21-17, --assetsDir, C:\Users\imany.gradle\caches\fabric-loom\assets, --gameDir, ., --fml.neoForgeVersion, 21.0.143, --fml.fmlVersion, 4.0.21, --fml.mcVersion, 1.21, --fml.neoFormVersion, 20240613.152323, --all, --mod, 1.0.0, --output, C:\Users\imany\Documents\MC-Mods\Other's Projects\jogoat-1.20.1\src\generated]
[02:07:12] [main/INFO] (Launcher) JVM identified as Oracle Corporation OpenJDK 64-Bit Server VM 21.0.2+13-58
[02:07:12] [main/INFO] (Launcher) ModLauncher 11.0.4+main.d2e20e43 starting: java version 21.0.2 by Oracle Corporation; OS Windows 11 arch amd64 version 10.0
[02:07:12] [main/INFO] (ImmediateWindowHandler) ImmediateWindowProvider not loading because launch target is forgedatauserdev
[02:07:12] [main/INFO] (mixin) SpongePowered MIXIN Subsystem Version=0.8.6 Source=union:/C:/Users/imany/.gradle/caches/modules-2/files-2.1/net.fabricmc/sponge-mixin/0.14.0+mixin.0.8.6/c265173c84346e9e5d42a2384b2b02bd39a4a899/sponge-mixin-0.14.0+mixin.0.8.6.jar%23119!/ Service=ModLauncher Env=CLIENT
[02:07:12] [main/INFO] (ModDiscoverer) Found mod file "neoforge-21.0.143-minecraft-merged-a15671e44e-1.21-loom.mappings.1_21.layered+hash.1064264051-v2-neoforge-21.0.143.jar" [locator: neoforge devenv provider ([C:\Users\imany\Documents\MC-Mods\Other's Projects\jogoat-1.20.1.gradle\loom-cache\minecraftMaven\net\minecraft\neoforge-21.0.143-minecraft-merged-a15671e44e\1.21-loom.mappings.1_21.layered+hash.1064264051-v2-neoforge-21.0.143\neoforge-21.0.143-minecraft-merged-a15671e44e-1.21-loom.mappings.1_21.layered+hash.1064264051-v2-neoforge-21.0.143.jar])]
[02:07:12] [main/INFO] (ModDiscoverer) Found mod file "neoforge-21.0.143-minecraft-merged-a15671e44e-1.21-loom.mappings.1_21.layered+hash.1064264051-v2-neoforge-21.0.143.jar" [locator: neoforge devenv provider ([C:\Users\imany\Documents\MC-Mods\Other's Projects\jogoat-1.20.1.gradle\loom-cache\minecraftMaven\net\minecraft\neoforge-21.0.143-minecraft-merged-a15671e44e\1.21-loom.mappings.1_21.layered+hash.1064264051-v2-neoforge-21.0.143\neoforge-21.0.143-minecraft-merged-a15671e44e-1.21-loom.mappings.1_21.layered+hash.1064264051-v2-neoforge-21.0.143.jar])]
[02:07:12] [main/INFO] (ModDiscoverer) Found mod file "main" [locator: userdev mods and services, reader: mod manifest]
[02:07:12] [main/INFO] (ModDiscoverer) Found mod file "neoforge-21.0.143-minecraft-merged-a15671e44e-1.21-loom.mappings.1_21.layered+hash.1064264051-v2-neoforge-21.0.143.jar" [locator: userdev mods and services, reader: mod manifest]
[02:07:12] [main/INFO] (ModDiscoverer) Found mod file "old_fabric_like_networking-neoforge-1.21-1.0.0.jar" [locator: userdev mods and services, reader: mod manifest]
[02:07:12] [main/INFO] (ModDiscoverer) Found mod file "playeranimatorapi-neoforge-1.21-2.2.0.jar" [locator: userdev mods and services, reader: mod manifest]
[02:07:12] [main/INFO] (ModDiscoverer) Found mod file "zigys-particles-neoforge-1.21-1.0.2.jar" [locator: userdev mods and services, reader: mod manifest]
[02:07:12] [main/INFO] (ModDiscoverer) Found mod file "geckolib-neoforge-1.21-4.5.8.jar" [locator: userdev mods and services, reader: mod manifest]
[02:07:12] [main/INFO] (ModDiscoverer) Found mod file "zigysmultiloaderutils-neoforge-1.21-1.3.0.jar" [locator: userdev mods and services, reader: mod manifest]
[02:07:12] [main/INFO] (ModDiscoverer) Found mod file "player-animation-lib-forge-2.0.0-alpha1+1.21.jar" [locator: userdev mods and services, reader: mod manifest]
[02:07:12] [main/INFO] (ModDiscoverer) Found gamelibrary file "mixinextras-neoforge-0.3.5.jar" [locator: userdev mods and services, reader: mod manifest]
[02:07:13] [main/WARN] (JarSelector) Attempted to select a dependency jar for JarJar which was passed in as source: mixinextras-neoforge-0.3.5.jar. Using Mod File: C:\Users\imany.gradle\caches\modules-2\files-2.1\io.github.llamalad7\mixinextras-neoforge\0.3.5\ef3ffcf309dae656517b2f120189b1c9b21737dd\mixinextras-neoforge-0.3.5.jar
[02:07:13] [main/INFO] (JarInJarDependencyLocator) No dependencies to load found. Skipping!
[02:07:13] [main/INFO] (FMLServiceProvider) Loading coremod script-engine for [neoforge]
[02:07:14] [main/INFO] (mixin) Compatibility level set to JAVA_17
[02:07:14] [main/INFO] (mixin) Compatibility level set to JAVA_21
[02:07:14] [main/INFO] (LaunchServiceHandler) Launching target 'forgedatauserdev' with arguments [--gameDir, ., --assetsDir, C:\Users\imany.gradle\caches\fabric-loom\assets, --assetIndex, 1.21-17, --all, --mod, 1.0.0, --output, C:\Users\imany\Documents\MC-Mods\Other's Projects\jogoat-1.20.1\src\generated]
[02:07:14] [main/INFO] (unprotect) Found 8262 Minecraft classes
[02:07:15] [main/WARN] (mixin) Reference map 'geckolib.refmap.json' for geckolib.mixins.json could not be read. If this is a development environment you can ignore this message
WARN StatusConsoleListener Error parsing URI C:\Users\imany\Documents\MC-Mods\Other's Projects\jogoat-1.20.1.gradle\loom-cache\log4j.xml
WARN StatusConsoleListener Advanced terminal features are not available in this environment
[02:07:16] [main/INFO] [MixinExtras|Service/]: Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.3.5).
[02:07:17] [main/INFO] [ne.ne.ne.da.lo.DatagenModLoader/]: Initializing Data Gatherer for mods [1.0.0]
[02:07:24] [modloading-worker-0/INFO] [ne.ne.ne.co.NeoForgeMod/NEOFORGE-MOD]: NeoForge mod loading, version 21.0.143, for MC 1.21
[02:07:24] [modloading-worker-0/INFO] [co.zi.zi.AAAParticles/]: Loading Effekseer native library at C:\Users\imany\Documents\MC-Mods\Other's Projects\jogoat-1.20.1\run\EffekseerNativeForJava.dll
[02:07:25] [main/WARN] [minecraft/DefaultResourcePackBuilder]: Assets URL 'union:/C:/Users/imany/Documents/MC-Mods/Other's%20Projects/jogoat-1.20.1/.gradle/loom-cache/minecraftMaven/net/minecraft/neoforge-21.0.143-minecraft-merged-a15671e44e/1.21-loom.mappings.1_21.layered+hash.1064264051-v2-neoforge-21.0.143/neoforge-21.0.143-minecraft-merged-a15671e44e-1.21-loom.mappings.1_21.layered+hash.1064264051-v2-neoforge-21.0.143.jar%23191!/assets/.mcassetsroot' uses unexpected schema
[02:07:25] [main/WARN] [minecraft/DefaultResourcePackBuilder]: Assets URL 'union:/C:/Users/imany/Documents/MC-Mods/Other's%20Projects/jogoat-1.20.1/.gradle/loom-cache/minecraftMaven/net/minecraft/neoforge-21.0.143-minecraft-merged-a15671e44e/1.21-loom.mappings.1_21.layered+hash.1064264051-v2-neoforge-21.0.143/neoforge-21.0.143-minecraft-merged-a15671e44e-1.21-loom.mappings.1_21.layered+hash.1064264051-v2-neoforge-21.0.143.jar%23191!/data/.mcassetsroot' uses unexpected schema
[02:07:25] [main/ERROR] [ne.ne.fm.ut.ObfuscationReflectionHelper/REFLECTION]: Unable to locate field WAX_SCRAPING_TOOLS (WAX_SCRAPING_TOOLS) on type net.minecraft.data.server.advancement.vanilla.VanillaHusbandryTabAdvancementGenerator
net.neoforged.fml.util.ObfuscationReflectionHelper$UnableToFindFieldException: java.lang.NoSuchFieldException: WAX_SCRAPING_TOOLS
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.util.ObfuscationReflectionHelper.findField(ObfuscationReflectionHelper.java:182) ~[loader-4.0.21.jar%23104!/:4.0] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.util.ObfuscationReflectionHelper.getPrivateValue(ObfuscationReflectionHelper.java:53) ~[loader-4.0.21.jar%23104!/:4.0] {}
at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.data.internal.NeoForgeAdvancementProvider.getPrivateValue(NeoForgeAdvancementProvider.java:228) ~[neoforge-21.0.143-minecraft-merged-a15671e44e-1.21-loom.mappings.1_21.layered+hash.1064264051-v2-neoforge-21.0.143.jar%23192!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.data.internal.NeoForgeAdvancementProvider.getVanillaAdvancementProviders(NeoForgeAdvancementProvider.java:65) ~[neoforge-21.0.143-minecraft-merged-a15671e44e-1.21-loom.mappings.1_21.layered+hash.1064264051-v2-neoforge-21.0.143.jar%23192!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.data.internal.NeoForgeAdvancementProvider.(NeoForgeAdvancementProvider.java:60) ~[neoforge-21.0.143-minecraft-merged-a15671e44e-1.21-loom.mappings.1_21.layered+hash.1064264051-v2-neoforge-21.0.143.jar%23192!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.NeoForgeMod.gatherData(NeoForgeMod.java:602) ~[neoforge-21.0.143-minecraft-merged-a15671e44e-1.21-loom.mappings.1_21.layered+hash.1064264051-v2-neoforge-21.0.143.jar%23192!/:?] {re:classloading}
at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.ConsumerEventHandler.invoke(ConsumerEventHandler.java:26) ~[bus-8.0.1.jar%23111!/:?] {}
at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.EventBus.post(EventBus.java:350) ~[bus-8.0.1.jar%23111!/:?] {}
at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.EventBus.post(EventBus.java:329) ~[bus-8.0.1.jar%23111!/:?] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModContainer.acceptEvent(ModContainer.java:177) ~[loader-4.0.21.jar%23104!/:4.0] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModLoader.runEventGenerator(ModLoader.java:347) ~[loader-4.0.21.jar%23104!/:4.0] {}
at TRANSFORMER/[email protected]/net.neoforged.neoforge.data.loading.DatagenModLoader.begin(DatagenModLoader.java:60) ~[neoforge-21.0.143-minecraft-merged-a15671e44e-1.21-loom.mappings.1_21.layered+hash.1064264051-v2-neoforge-21.0.143.jar%23192!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.data.Main.main(Main.java:101) ~[neoforge-21.0.143-minecraft-merged-a15671e44e-1.21-loom.mappings.1_21.layered+hash.1064264051-v2-neoforge-21.0.143.jar%23191!/:?] {re:classloading}
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.21.jar%23104!/:4.0] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.dataService(CommonLaunchHandler.java:132) ~[loader-4.0.21.jar%23104!/:4.0] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.NeoForgeDataUserdevLaunchHandler.runService(NeoForgeDataUserdevLaunchHandler.java:28) ~[loader-4.0.21.jar%23104!/:4.0] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.lambda$launchService$4(CommonLaunchHandler.java:118) ~[loader-4.0.21.jar%23104!/:4.0] {}
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) [modlauncher-11.0.4.jar%23106!/:?] {}
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-11.0.4.jar%23106!/:?] {}
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-11.0.4.jar%23106!/:?] {}
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.run(Launcher.java:103) [modlauncher-11.0.4.jar%23106!/:?] {}
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:74) [modlauncher-11.0.4.jar%23106!/:?] {}
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-11.0.4.jar%23106!/:?] {}
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-11.0.4.jar%23106!/:?] {}
at cpw.mods.bootstraplauncher.BootstrapLauncher.run(BootstrapLauncher.java:210) [bootstraplauncher-2.0.2.jar:?] {}
at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:69) [bootstraplauncher-2.0.2.jar:?] {}
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86) [dev-launch-injector-0.2.1+build.8.jar:?] {}
Caused by: java.lang.NoSuchFieldException: WAX_SCRAPING_TOOLS
at java.base/java.lang.Class.getDeclaredField(Class.java:2782) ~[?:?] {re:mixin}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.util.ObfuscationReflectionHelper.findField(ObfuscationReflectionHelper.java:178) ~[loader-4.0.21.jar%23104!/:4.0] {}
... 28 more
[02:07:25] [main/ERROR] [ne.ne.fm.ja.FMLModContainer/]: Exception caught during firing event: java.lang.NoSuchFieldException: WAX_SCRAPING_TOOLS
Index: 0
Listeners:
0: net.neoforged.neoforge.common.NeoForgeMod$$Lambda/0x000001a001c05fa8@1e1041ce
net.neoforged.fml.util.ObfuscationReflectionHelper$UnableToFindFieldException: java.lang.NoSuchFieldException: WAX_SCRAPING_TOOLS
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.util.ObfuscationReflectionHelper.findField(ObfuscationReflectionHelper.java:182)
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.util.ObfuscationReflectionHelper.getPrivateValue(ObfuscationReflectionHelper.java:53)
at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.data.internal.NeoForgeAdvancementProvider.getPrivateValue(NeoForgeAdvancementProvider.java:228)
at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.data.internal.NeoForgeAdvancementProvider.getVanillaAdvancementProviders(NeoForgeAdvancementProvider.java:65)
at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.data.internal.NeoForgeAdvancementProvider.(NeoForgeAdvancementProvider.java:60)
at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.NeoForgeMod.gatherData(NeoForgeMod.java:602)
at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.ConsumerEventHandler.invoke(ConsumerEventHandler.java:26)
at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.EventBus.post(EventBus.java:350)
at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.EventBus.post(EventBus.java:329)
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModContainer.acceptEvent(ModContainer.java:177)
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModLoader.runEventGenerator(ModLoader.java:347)
at TRANSFORMER/[email protected]/net.neoforged.neoforge.data.loading.DatagenModLoader.begin(DatagenModLoader.java:60)
at TRANSFORMER/[email protected]/net.minecraft.data.Main.main(Main.java:101)
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)
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.dataService(CommonLaunchHandler.java:132)
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.NeoForgeDataUserdevLaunchHandler.runService(NeoForgeDataUserdevLaunchHandler.java:28)
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.lambda$launchService$4(CommonLaunchHandler.java:118)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.run(Launcher.java:103)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:74)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23)
at cpw.mods.bootstraplauncher.BootstrapLauncher.run(BootstrapLauncher.java:210)
at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:69)
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
Caused by: java.lang.NoSuchFieldException: WAX_SCRAPING_TOOLS
at java.base/java.lang.Class.getDeclaredField(Class.java:2782)
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.util.ObfuscationReflectionHelper.findField(ObfuscationReflectionHelper.java:178)
... 28 more

[02:07:25] [main/ERROR] [ne.ne.fm.ModContainer/LOADING]: Caught exception during event net.neoforged.neoforge.data.event.GatherDataEvent@5259b18a dispatch for modid neoforge
net.neoforged.fml.util.ObfuscationReflectionHelper$UnableToFindFieldException: java.lang.NoSuchFieldException: WAX_SCRAPING_TOOLS
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.util.ObfuscationReflectionHelper.findField(ObfuscationReflectionHelper.java:182) ~[loader-4.0.21.jar%23104!/:4.0] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.util.ObfuscationReflectionHelper.getPrivateValue(ObfuscationReflectionHelper.java:53) ~[loader-4.0.21.jar%23104!/:4.0] {}
at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.data.internal.NeoForgeAdvancementProvider.getPrivateValue(NeoForgeAdvancementProvider.java:228) ~[neoforge-21.0.143-minecraft-merged-a15671e44e-1.21-loom.mappings.1_21.layered+hash.1064264051-v2-neoforge-21.0.143.jar%23192!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.data.internal.NeoForgeAdvancementProvider.getVanillaAdvancementProviders(NeoForgeAdvancementProvider.java:65) ~[neoforge-21.0.143-minecraft-merged-a15671e44e-1.21-loom.mappings.1_21.layered+hash.1064264051-v2-neoforge-21.0.143.jar%23192!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.data.internal.NeoForgeAdvancementProvider.(NeoForgeAdvancementProvider.java:60) ~[neoforge-21.0.143-minecraft-merged-a15671e44e-1.21-loom.mappings.1_21.layered+hash.1064264051-v2-neoforge-21.0.143.jar%23192!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.NeoForgeMod.gatherData(NeoForgeMod.java:602) ~[neoforge-21.0.143-minecraft-merged-a15671e44e-1.21-loom.mappings.1_21.layered+hash.1064264051-v2-neoforge-21.0.143.jar%23192!/:?] {re:classloading}
at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.ConsumerEventHandler.invoke(ConsumerEventHandler.java:26) ~[bus-8.0.1.jar%23111!/:?] {}
at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.EventBus.post(EventBus.java:350) ~[bus-8.0.1.jar%23111!/:?] {}
at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.EventBus.post(EventBus.java:329) ~[bus-8.0.1.jar%23111!/:?] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModContainer.acceptEvent(ModContainer.java:177) ~[loader-4.0.21.jar%23104!/:4.0] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModLoader.runEventGenerator(ModLoader.java:347) ~[loader-4.0.21.jar%23104!/:4.0] {}
at TRANSFORMER/[email protected]/net.neoforged.neoforge.data.loading.DatagenModLoader.begin(DatagenModLoader.java:60) ~[neoforge-21.0.143-minecraft-merged-a15671e44e-1.21-loom.mappings.1_21.layered+hash.1064264051-v2-neoforge-21.0.143.jar%23192!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.data.Main.main(Main.java:101) ~[neoforge-21.0.143-minecraft-merged-a15671e44e-1.21-loom.mappings.1_21.layered+hash.1064264051-v2-neoforge-21.0.143.jar%23191!/:?] {re:classloading}
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.21.jar%23104!/:4.0] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.dataService(CommonLaunchHandler.java:132) ~[loader-4.0.21.jar%23104!/:4.0] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.NeoForgeDataUserdevLaunchHandler.runService(NeoForgeDataUserdevLaunchHandler.java:28) ~[loader-4.0.21.jar%23104!/:4.0] {}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.lambda$launchService$4(CommonLaunchHandler.java:118) ~[loader-4.0.21.jar%23104!/:4.0] {}
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) [modlauncher-11.0.4.jar%23106!/:?] {}
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-11.0.4.jar%23106!/:?] {}
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-11.0.4.jar%23106!/:?] {}
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.run(Launcher.java:103) [modlauncher-11.0.4.jar%23106!/:?] {}
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:74) [modlauncher-11.0.4.jar%23106!/:?] {}
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-11.0.4.jar%23106!/:?] {}
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-11.0.4.jar%23106!/:?] {}
at cpw.mods.bootstraplauncher.BootstrapLauncher.run(BootstrapLauncher.java:210) [bootstraplauncher-2.0.2.jar:?] {}
at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:69) [bootstraplauncher-2.0.2.jar:?] {}
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86) [dev-launch-injector-0.2.1+build.8.jar:?] {}
Caused by: java.lang.NoSuchFieldException: WAX_SCRAPING_TOOLS
at java.base/java.lang.Class.getDeclaredField(Class.java:2782) ~[?:?] {re:mixin}
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.util.ObfuscationReflectionHelper.findField(ObfuscationReflectionHelper.java:178) ~[loader-4.0.21.jar%23104!/:4.0] {}
... 28 more
Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:32)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.run(Launcher.java:103)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:74)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23)
at cpw.mods.bootstraplauncher.BootstrapLauncher.run(BootstrapLauncher.java:210)
at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:69)
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
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)
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.dataService(CommonLaunchHandler.java:132)
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.NeoForgeDataUserdevLaunchHandler.runService(NeoForgeDataUserdevLaunchHandler.java:28)
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.loading.targets.CommonLaunchHandler.lambda$launchService$4(CommonLaunchHandler.java:118)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30)
... 9 more
Caused by: net.neoforged.fml.ModLoadingException: Loading errors encountered:
- NeoForge (neoforge) encountered an error while dispatching the net.neoforged.neoforge.data.event.GatherDataEvent event
net.neoforged.fml.util.ObfuscationReflectionHelper$UnableToFindFieldException: java.lang.NoSuchFieldException: WAX_SCRAPING_TOOLS

at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModContainer.acceptEvent(ModContainer.java:181)
at MC-BOOTSTRAP/[email protected]/net.neoforged.fml.ModLoader.runEventGenerator(ModLoader.java:347)
at TRANSFORMER/[email protected]/net.neoforged.neoforge.data.loading.DatagenModLoader.begin(DatagenModLoader.java:60)
at TRANSFORMER/[email protected]/net.minecraft.data.Main.main(Main.java:101)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
... 15 more

Task :runData FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':runData'.

Process 'command 'C:\Program Files\Java\jdk-21.0.2\bin\java.exe'' finished with non-zero exit value 1

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.

BUILD FAILED in 31s
6 actionable tasks: 1 executed, 5 up-to-date
2:07:25 AM: Execution finished 'runData'.

Log as pastebin: https://pastebin.com/mm8Y8MZr

And here are the versions of some important stuff in case that helps:

  • minecraft_version=1.21
  • yarn_mappings=1.21+build.9
  • yarn_mappings_patch_version=1.21+build.4
  • neoforge_version=21.0.143
@Juuxel Juuxel added the bug Something isn't working label Dec 6, 2024
@Juuxel Juuxel added this to the 1.9 milestone Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants