Log4j Appender Async Error: java.lang.ThreadDeath in Minecraft Server
The error log indicates an exception occurred while processing Appender Async, caused by 'java.lang.ThreadDeath'. This exception usually arises from calling the deprecated 'Thread.stop()' method, which is discouraged. The log points to the use of 'Thread.stop()' in 'net.minecraft.server.MinecraftServer' and 'net.minecraft.server.dedicated.DedicatedServer' classes.
To resolve this issue, it's essential to pinpoint the code lines responsible for the 'ThreadDeath' exception and replace them with safer alternatives. Avoid terminating threads using 'Thread.stop()' and opt for other methods that ensure proper thread closure.
Investigate the code within the 'io.papermc.paper.plugin.manager.PaperPluginInstanceManager' and 'io.papermc.paper.plugin.manager.PaperPluginManagerImpl' classes to check for any instances of 'Thread.stop()' calls. If found, replace them with appropriate thread termination methods.
Furthermore, consider updating the plugins or frameworks you are using to benefit from possible fixes in newer versions.
By addressing this deprecated method usage and implementing proper thread termination techniques, you can eliminate the 'java.lang.ThreadDeath' exception and ensure a stable Minecraft Server environment.
原文地址: https://www.cveoy.top/t/topic/qxNU 著作权归作者所有。请勿转载和采集!