Applied Energistics 2

Applied Energistics 2

156M Downloads

IllegalAccessException during mod loading process

ledfwil opened this issue ยท 8 comments

commented

Describe the bug

I don't know how to describe it, but IllegalAccessExcetpion
Log provided:
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:108)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:78)
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 [email protected]/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:111)
at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.targets.CommonLaunchHandler.clientService(CommonLaunchHandler.java:99)
at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$makeService$0(CommonClientLaunchHandler.java:25)
at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30)
... 7 more
Caused by: java.lang.RuntimeException: java.lang.IllegalAccessError: class appeng.block.misc.MysteriousCubeBlock tried to access private method 'boolean net.minecraft.world.level.block.Blocks.m_50805_(net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.BlockGetter, net.minecraft.core.BlockPos)' (appeng.block.misc.MysteriousCubeBlock is in module [email protected] of loader 'TRANSFORMER' @834e986; net.minecraft.world.level.block.Blocks is in module [email protected] of loader 'TRANSFORMER' @834e986)
at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.BackgroundWaiter.runAndTick(BackgroundWaiter.java:32)
at TRANSFORMER/[email protected]/net.minecraft.client.main.Main.main(Main.java:151)
... 15 more
Caused by: java.lang.IllegalAccessError: class appeng.block.misc.MysteriousCubeBlock tried to access private method 'boolean net.minecraft.world.level.block.Blocks.m_50805_(net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.BlockGetter, net.minecraft.core.BlockPos)' (appeng.block.misc.MysteriousCubeBlock is in module [email protected] of loader 'TRANSFORMER' @834e986; net.minecraft.world.level.block.Blocks is in module [email protected] of loader 'TRANSFORMER' @834e986)
at TRANSFORMER/[email protected]/appeng.block.misc.MysteriousCubeBlock.(MysteriousCubeBlock.java:24)
at TRANSFORMER/[email protected]/appeng.core.definitions.AEBlocks.block(AEBlocks.java:273)
at TRANSFORMER/[email protected]/appeng.core.definitions.AEBlocks.block(AEBlocks.java:263)
at TRANSFORMER/[email protected]/appeng.core.definitions.AEBlocks.(AEBlocks.java:157)
at TRANSFORMER/[email protected]/appeng.core.AppEngBootstrap.runEarlyStartup(AppEngBootstrap.java:73)
at TRANSFORMER/[email protected]/net.minecraft.server.Bootstrap.handler$zzd000$initRegistries(Bootstrap.java:541)
at TRANSFORMER/[email protected]/net.minecraft.server.Bootstrap.m_135870_(Bootstrap.java:57)
at TRANSFORMER/[email protected]/net.minecraft.client.main.Main.lambda$main$0(Main.java:151)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)

How to reproduce the bug

Grab the latest forge release and attempt to launch the game

Expected behavior

Game launches with no errors

Additional details

Did not occur on mod version 15.0.5-beta for Forge

Which minecraft version are you using?

1.20

On which mod loaders does it happen?

Forge

Crash log

https://pastebin.com/srUWuPyy

commented

Hello,

i have the same issue for a while now, on any version of AE2 or Forge, so i'm pretty sure it's a conflict with another mod.

i have no crashlog, they aren't generated for this issue.
my latest.log is nearby empty because it's crashing too quickly in the loading process. i provide it, but it's IMO useless : https://gist.github.com/Bass2style/ec39632d53aa894322345049f07849ce
here is my console output in GDL : https://gist.github.com/Bass2style/21a709ac1141829600e14f044446fedb
and here is my modlist : https://gist.github.com/Bass2style/5fb9496b90d95e5af019d7a0ace45d52

hope this can help.

commented

So from what I gather: Something crashes too early, Forge stops applying what's called "access transformers" for all mods and will try to still get to the early error screen. That will fail since basic classes will now fail to load (due to the missing acess transformer).

neoforged/NeoForge#43

Here's a thing: appliedenergistics2-forge-15.0.6-beta.jar declares a dependency on forge >= 47.1.54 (which is a NeoForge version). Since you are using this on LexForge 47.1.43, it seems like it's not even getting to the dependency error screen and just crashes?

Try opening the jar-file and edit the mods.toml file to allow your version of forge and see if that fixes it. If it does, the IllegalAccessError is a Forge bug.

commented

If I'd have to bet... Optifine :-D

And yeah, @mindforger thanks for pointing out the instance name. Surprisingly that is an actual modpack on Curseforge ๐Ÿ‘€

commented

incomplete crashlog .. At least include a modlist, but regarding the name of your pack i personally would not support you in any way further and i highly suspect some hacky mod causing this

commented

Not to mention. AE2 15.0.6-beta currently has a minimum version of NeoForge higher than 47.1.3, which means you had to edit the jar file to make this run at all, right?

commented

Ah, tech reminded me of what the actual problem might be. Some mod already errored out during startup and our AT is not applied.
@ledfwil Can you please provide a full logfille?

commented

https://pastebin.com/srUWuPyy

We need a full log, not whatever that is.