Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-244995

Could not initialize class org.apache.logging.log4j.util.PrivateSecurityManagerStackTraceUtil

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.18
    • Win 10 20H2
      Java(TM) SE Runtime Environment (build 16.0.1+9-24)
    • Confirmed
    • (Unassigned)

      Create a Superflat world from preset:

      1*minecraft:redstone_wire;162;village(size=50 distance=64),mineshaft(chance=1),stronghold(chance=32 count=32 spread=32),biome_1(distance=16),dungeon,decoration,lake,lava_lake 

      Search for the nearest village. When it starts loading the server will crash but the client will stay open with black background. 

      It looks like this is causing the similar error to MC-231185, but also since 1.18 there is also an exception related to `log4j`:

      Encountered an unexpected exception
      java.lang.NoClassDefFoundError: Could not initialize class org.apache.logging.log4j.util.PrivateSecurityManagerStackTraceUtil
      	at org.apache.logging.log4j.util.StackLocator.getCurrentStackTrace(StackLocator.java:65)
      	at org.apache.logging.log4j.util.StackLocatorUtil.getCurrentStackTrace(StackLocatorUtil.java:72)
      	at org.apache.logging.log4j.core.impl.ThrowableProxy.<init>(ThrowableProxy.java:109)
      	at org.apache.logging.log4j.core.impl.ThrowableProxy.<init>(ThrowableProxy.java:94)
      	at org.apache.logging.log4j.core.impl.MutableLogEvent.getThrownProxy(MutableLogEvent.java:347)
      	at org.apache.logging.log4j.core.pattern.ExtendedThrowablePatternConverter.format(ExtendedThrowablePatternConverter.java:63)
      	at org.apache.logging.log4j.core.pattern.PatternFormatter.format(PatternFormatter.java:38)
      	at org.apache.logging.log4j.core.layout.PatternLayout$PatternSerializer.toSerializable(PatternLayout.java:344)
      	at org.apache.logging.log4j.core.layout.PatternLayout.toText(PatternLayout.java:244)
      	at org.apache.logging.log4j.core.layout.PatternLayout.encode(PatternLayout.java:229)
      	at org.apache.logging.log4j.core.layout.PatternLayout.encode(PatternLayout.java:59)
      	at org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.directEncodeEvent(AbstractOutputStreamAppender.java:197)
      	at org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.tryAppend(AbstractOutputStreamAppender.java:190)
      	at org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.append(AbstractOutputStreamAppender.java:181)
      	at org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender.append(RollingRandomAccessFileAppender.java:251)
      	at org.apache.logging.log4j.core.config.AppenderControl.tryCallAppender(AppenderControl.java:156)
      	at org.apache.logging.log4j.core.config.AppenderControl.callAppender0(AppenderControl.java:129)
      	at org.apache.logging.log4j.core.config.AppenderControl.callAppenderPreventRecursion(AppenderControl.java:120)
      	at org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:84)
      	at org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(LoggerConfig.java:540)
      	at org.apache.logging.log4j.core.config.LoggerConfig.processLogEvent(LoggerConfig.java:498)
      	at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:481)
      	at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:456)
      	at org.apache.logging.log4j.core.config.AwaitCompletionReliabilityStrategy.log(AwaitCompletionReliabilityStrategy.java:82)
      	at org.apache.logging.log4j.core.Logger.log(Logger.java:161)
      	at org.apache.logging.log4j.spi.AbstractLogger.tryLogMessage(AbstractLogger.java:2205)
      	at org.apache.logging.log4j.spi.AbstractLogger.logMessageTrackRecursion(AbstractLogger.java:2159)
      	at org.apache.logging.log4j.spi.AbstractLogger.logMessageSafely(AbstractLogger.java:2142)
      	at org.apache.logging.log4j.spi.AbstractLogger.logMessage(AbstractLogger.java:2040)
      	at org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(AbstractLogger.java:1907)
      	at org.apache.logging.log4j.spi.AbstractLogger.fatal(AbstractLogger.java:1182)
      	at auh.c(SourceFile:153)
      	at aul.c(SourceFile:23)
      	at net.minecraft.server.MinecraftServer.b(SourceFile:780)
      	at net.minecraft.server.MinecraftServer.c(SourceFile:162)
      	at auh.y(SourceFile:125)
      	at net.minecraft.server.MinecraftServer.bf(SourceFile:762)
      	at net.minecraft.server.MinecraftServer.y(SourceFile:756)
      	at auh.c(SourceFile:134)
      	at net.minecraft.server.MinecraftServer.x(SourceFile:741)
      	at net.minecraft.server.MinecraftServer.w(SourceFile:688)
      	at net.minecraft.server.MinecraftServer.a(SourceFile:270)
      	at java.base/java.lang.Thread.run(Thread.java:833) 

            Unassigned Unassigned
            SimekOne Simek
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: