Jump to content

The game crashed whilst exception in server tick loop Error: java.lang.NoClassDefFoundError: org/apache/logging/log4j/util/Refle

Recommended Posts

I need help, when I load any world the game crashes and says the following:

---- Minecraft Crash Report ----
// My bad.

Time: 08/01/23 21:47
Description: Exception in server tick loop

java.lang.NoClassDefFoundError: org/apache/logging/log4j/util/ReflectionUtil
    at com.sk89q.worldedit-fabric.l4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:42) ~[?:?] {re:classloading}
    at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:47) ~[log4j-api-2.15.0.jar:2.15.0] {}
    at com.sk89q.worldedit-fabric.l4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:29) ~[?:?] {re:classloading}
    at com.sk89q.worldedit-fabric.slf4j.LoggerFactory.getLogger(LoggerFactory.java:363) ~[?:?] {re:classloading}
    at com.sk89q.worldedit-fabric.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388) ~[?:?] {re:classloading}
    at com.sk89q.worldedit.WorldEdit.<clinit>(WorldEdit.java:113) ~[?:?] {re:classloading}
    at com.sk89q.worldedit.extension.platform.AbstractPlatform.<init>(AbstractPlatform.java:41) ~[?:?] {re:classloading}
    at com.sk89q.worldedit.forge.ForgePlatform.<init>(ForgePlatform.java:69) ~[?:?] {re:classloading}
    at com.sk89q.worldedit.forge.ForgeWorldEdit.setupPlatform(ForgeWorldEdit.java:142) ~[?:?] {re:classloading}
    at com.sk89q.worldedit.forge.ForgeWorldEdit.serverStarted(ForgeWorldEdit.java:209) ~[?:?] {re:classloading}
    at net.minecraftforge.eventbus.ASMEventHandler_3_ForgeWorldEdit_serverStarted_FMLServerStartedEvent.invoke(.dynamic) ~[?:?] {}
    at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-4.0.0.jar:?] {}
    at net.minecraftforge.eventbus.EventBus$$Lambda$3226/1093828110.invoke(Unknown Source) ~[?:?] {}
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-4.0.0.jar:?] {}
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-4.0.0.jar:?] {}
    at net.minecraftforge.fml.server.ServerLifecycleHooks.handleServerStarted(ServerLifecycleHooks.java:106) ~[?:?] {re:classloading}
    at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:622) [?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServer.java:232) [?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer$$Lambda$6397/1353256473.run(Unknown Source) [?:?] {}
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51] {}
Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.util.ReflectionUtil
    at java.lang.ClassLoader.findClass(ClassLoader.java:530) ~[?:1.8.0_51] {}
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_51] {}
    at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:94) ~[modlauncher-8.1.3.jar:?] {re:classloading}
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_51] {}
    ... 20 more

A detailed walkthrough of the error, its code path and all known details is as follows:

-- System Details --
    Minecraft Version: 1.16.5
    Minecraft Version ID: 1.16.5
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_51, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 3061716608 bytes (2919 MB) / 4294967296 bytes (4096 MB) up to 4294967296 bytes (4096 MB)
    CPUs: 4
    JVM Flags: 10 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -XX:+IgnoreUnrecognizedVMOptions -Xmx4G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    ModLauncher: 8.1.3+8.1.3+main-8.1.x.c94d18ec
    ModLauncher launch target: fmlclient
    ModLauncher naming: srg
    ModLauncher services: 
        /mixin-0.8.4.jar mixin PLUGINSERVICE 
        /eventbus-4.0.0.jar eventbus PLUGINSERVICE 
        /forge-1.16.5-36.2.34.jar object_holder_definalize PLUGINSERVICE 
        /forge-1.16.5-36.2.34.jar runtime_enum_extender PLUGINSERVICE 
        /accesstransformers-3.0.1.jar accesstransformer PLUGINSERVICE 
        /forge-1.16.5-36.2.34.jar capability_inject_definalize PLUGINSERVICE 
        /forge-1.16.5-36.2.34.jar runtimedistcleaner PLUGINSERVICE 
        /mixin-0.8.4.jar mixin TRANSFORMATIONSERVICE 
        /optifine.jar.disabled.jar OptiFine TRANSFORMATIONSERVICE 
        /forge-1.16.5-36.2.34.jar fml TRANSFORMATIONSERVICE 
    FML: 36.2
    Forge: net.minecraftforge:36.2.34
    FML Language Providers: 
    Mod List: 
        forge-1.16.5-36.2.34-client.jar                   |Minecraft                     |minecraft                     |1.16.5              |DONE      |Manifest: NOSIGNATURE
        performant-1.16.2-5-3.98m.jar                     |Performant                    |performant                    |3.73m               |DONE      |Manifest: NOSIGNATURE
        TechnologyMod_2022_Beta_Versión.jar               |Technologymod                 |technologymod                 |1.0.0               |DONE      |Manifest: NOSIGNATURE
        obfuscate-0.6.1-1.16.3.jar                        |Obfuscate                     |obfuscate                     |0.6.1               |DONE      |Manifest: e1:59:1a:56:ec:97:b3:d0:b3:4b:25:06:1f:83:b0:f4:fd:0c:24:e3:6d:ea:94:b1:9f:22:b0:38:13:60:88:ea
        TechnologyMod_1-16-5.jar                          |Modsummer                     |modsummer                     |1.0.0               |DONE      |Manifest: NOSIGNATURE
        worldedit-mod-7.2.4.jar                           |WorldEdit                     |worldedit                     |7.2.4+5723-e3bfc64  |DONE      |Manifest: NOSIGNATURE
        cfm-7.0.0-pre21-mc1.16.3.jar                      |MrCrayfish's Furniture Mod    |cfm                           |7.0.0-pre21         |DONE      |Manifest: NOSIGNATURE
        additional_lights-1.16.4-2.1.3.jar                |Additional Lights             |additional_lights             |2.1.3               |DONE      |Manifest: NOSIGNATURE
        vehicle-mod-0.45.2-1.16.3.jar                     |MrCrayfish's Vehicle Mod      |vehicle                       |0.45.2              |DONE      |Manifest: NOSIGNATURE
        lightblock-forge-1.16.5-1.0+3.jar                 |lightblock                    |lightblock                    |1.16.5-1.0+3        |DONE      |Manifest: NOSIGNATURE
        Simply-Seasons-1.16.5-1.0.11.jar                  |Simply Seasons                |simplyseasons                 |1.16.5-1.0.11       |DONE      |Manifest: NOSIGNATURE
        simplylight-1.16.4-1.1.2.jar                      |Simply Light                  |simplylight                   |1.16.4-1.1.2        |DONE      |Manifest: NOSIGNATURE
        morecfm-1.2.1-1.16.3.jar                          |MrCrayfish's More Furniture Mo|morecfm                       |1.2.1               |DONE      |Manifest: NOSIGNATURE
        forge-1.16.5-36.2.34-universal.jar                |Forge                         |forge                         |36.2.34             |DONE      |Manifest: 22:af:21:d8:19:82:7f:93:94:fe:2b:ac:b7:e4:41:57:68:39:87:b1:a7:5c:c6:44:f9:25:74:21:14:f5:0d:90
        Xaeros_Minimap_21.4.4_Forge_1.16.5 (1).jar        |Xaero's Minimap               |xaerominimap                  |21.4.4              |DONE      |Manifest: NOSIGNATURE
        MorePlayerModels-              |More Player Models            |moreplayermodels              |     |DONE      |Manifest: NOSIGNATURE
        DynamicSurroundings-1.16.5-            |§3Dynamic Surroundings        |dsurround                     |             |DONE      |Manifest: NOSIGNATURE
        XaerosWorldMap_1.13.1_Forge_1.16.5.jar            |Xaero's World Map             |xaeroworldmap                 |1.13.1              |DONE      |Manifest: NOSIGNATURE
        modernlife-1.16.5-1.40.jar                        |Modern Life                   |modernlife                    |1.16.5-1.40         |DONE      |Manifest: NOSIGNATURE
        sit-1.16.2-v1.3.jar                               |Sit                           |sit                           |v1.3                |DONE      |Manifest: NOSIGNATURE
        Penguin-Lib-1.16.5-0.4.1.jar                      |Penguin Lib                   |penguinlib                    |1.16.5-0.4.1-35     |DONE      |Manifest: NOSIGNATURE
    Crash Report UUID: 604089f4-200c-44ec-842e-dc9ce0f5c50c
    Player Count: 0 / 8; []
    Data Packs: vanilla, mod:performant (incompatible), mod:technologymod, mod:obfuscate (incompatible), mod:modsummer, mod:worldedit (incompatible), mod:cfm (incompatible), mod:additional_lights, mod:vehicle (incompatible), mod:lightblock, mod:simplyseasons (incompatible), mod:simplylight, mod:morecfm, mod:forge, mod:xaerominimap, mod:moreplayermodels, mod:dsurround, mod:xaeroworldmap, mod:modernlife, mod:sit, mod:penguinlib (incompatible)
    Type: Integrated Server (map_client.txt)
    Is Modded: Definitely; Client brand changed to 'forge'
    OptiFine Version: OptiFine_1.16.5_HD_U_G8
    OptiFine Build: 20210515-161946
    Render Distance Chunks: 12
    Mipmaps: 4
    Anisotropic Filtering: 1
    Antialiasing: 0
    Multitexture: false
    Shaders: null
    OpenGlVersion: 4.6.0 Compatibility Profile Context
    OpenGlRenderer: Radeon RX550/550 Series
    OpenGlVendor: ATI Technologies Inc.
    CpuCount: 4

Link to comment
Share on other sites

The version you are using is no longer supported on this forum.

Please update to a modern version of Minecraft to receive support.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.


As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.


For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.


Logs (Most issues require logs to diagnose):


Please post logs using one of the following sites (Thank you Lumber Wizard for the list):

https://gist.github.com/100MB Requires member (Free)

https://pastebin.com/: 512KB as guest, 10MB as Pro ($$$)

https://hastebin.com/: 400KB

Do NOT use sites like Mediafire, Dropbox, OneDrive, Google Drive, or a site that has a countdown before offering downloads.


What to provide:

...for Crashes and Runtime issues:

Minecraft 1.14.4 and newer:

Post debug.log

Older versions:

Please update...


...for Installer Issues:

Post your installer log, found in the same place you ran the installer

This log will be called either installer.log or named the same as the installer but with .log on the end

Note for Windows users:

Windows hides file extensions by default so the installer may appear without the .jar extension then when the .log is added the log will appear with the .jar extension


Where to get it:

Mojang Launcher: When using the Mojang launcher debug.log is found in .minecraft\logs.


Curse/Overwolf: If you are using the Curse Launcher, their configurations break Forge's log settings, fortunately there is an easier workaround than I originally thought, this works even with Curse's installation of the Minecraft launcher as long as it is not launched THROUGH Twitch:

  1. Make sure you have the correct version of Forge installed (some packs are heavily dependent on one specific build of Forge)
  2. Make a launcher profile targeting this version of Forge.
  3. Set the launcher profile's GameDir property to the pack's instance folder (not the instances folder, the folder that has the pack's name on it).
  4. Now launch the pack through that profile and follow the "Mojang Launcher" instructions above.






or alternately, 


Fallback ("No logs are generated"):

If you don't see logs generated in the usual place, provide the launcher_log.txt from .minecraft


Server Not Starting:


If your server does not start or a command window appears and immediately goes away, run the jar manually and provide the output.


Reporting Illegal/Inappropriate Adfocus Ads:


Get a screenshot of the URL bar or copy/paste the whole URL into a thread on the General Discussion board with a description of the Ad.

Lex will need the Ad ID contained in that URL to report it to Adfocus' support team.


Posting your mod as a GitHub Repo:


When you have an issue with your mod the most helpful thing you can do when asking for help is to provide your code to those helping you. The most convenient way to do this is via GitHub or another source control hub.

When setting up a GitHub Repo it might seem easy to just upload everything, however this method has the potential for mistakes that could lead to trouble later on, it is recommended to use a Git client or to get comfortable with the Git command line. The following instructions will use the Git Command Line and as such they assume you already have it installed and that you have created a repository.


  1. Open a command prompt (CMD, Powershell, Terminal, etc).
  2. Navigate to the folder you extracted Forge’s MDK to (the one that had all the licenses in).
  3. Run the following commands:
    1. git init
    2. git remote add origin [Your Repository's URL]
      • In the case of GitHub it should look like: https://GitHub.com/[Your Username]/[Repo Name].git
    3. git fetch
    4. git checkout --track origin/master
    5. git stage *
    6. git commit -m "[Your commit message]"
    7. git push
  4. Navigate to GitHub and you should now see most of the files.
    • note that it is intentional that some are not synced with GitHub and this is done with the (hidden) .gitignore file that Forge’s MDK has provided (hence the strictness on which folder git init is run from)
  5. Now you can share your GitHub link with those who you are asking for help.

[Workaround line, please ignore]


Link to comment
Share on other sites

This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hi, i want to add an item to player's inventory when specific event is fired, but i don't know how to do that
    • Try searching for the Shapeless Recipe in your workspace program's external libraries, which should have been downloaded along with the assets when you set up gradle for Forge. Looking at that file will show you how Minecraft sets it up and you can tinker with it in a custom file of your own from there. Additionally, take a look at how the crafting table handles the matching up of ingredients for shapeless recipes. You can also look at my two-slot fuel free furnace type that uses shapeless recipes. I did exactly as described above to design my custom recipe class and then built my entity class. https://github.com/toadie-odie/TodeCoins/blob/1.3.2/src/main/java/net/warrentode/todecoins/recipe/CoinPressRecipe.java https://github.com/toadie-odie/TodeCoins/blob/1.3.2/src/main/java/net/warrentode/todecoins/block/entity/CoinPressBlockEntity.java An alternative recipe check method can be looked at here:  https://github.com/toadie-odie/TodeVillagers/blob/master_03/src/main/java/net/warrentode/todevillagers/blocks/entity/GlassKilnBlockEntity.java I think maybe that the Glass Kiln one would be easier for you starting out, it was for me. In your case the points of interest are at lines 164 and 215.
    • I copied the Totem of Undying event for my coin charm, and as you can see in line 113 it has the method removeAllEffects in there, so if you're building a similar event, simply don't add the method to prevent it from removing effects. https://github.com/toadie-odie/TodeCoins/blob/1.3.2/src/main/java/net/warrentode/todecoins/event/ModEvents.java
    • Okay I got on the discord server and followed there steps and got it to start working, however the log is constantly being filled with this error code. It is creating additional copies of the config file, up to 5 copies.
    • I would like to force the pose of a living entity to a standing position (i.e. Pose.STANDING) when it is riding a certain vehicle. I have tried to call Entity#setPose every tick via LivingTickEvent, but the living entity remains in a sitting position. Here is my code: // I made it a low-priority event because I was wondering if the code should be executed at the end of each tick. @SubscribeEvent(priority = EventPriority.LOWEST) public static void livingTickEvent(LivingEvent.LivingTickEvent event) { LivingEntity livingEntity = event.getEntity(); if (!livingEntity.level.isClientSide && livingEntity.getVehicle() instanceof TheVehicle) { livingEntity.setPose(Pose.STANDING); } }   By the way, I am aware there is a setForcedPose method, but it's only for the Player class.
  • Topics

  • Who's Online (See full list)

    • There are no registered users currently online
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.