ME1312 / VanillaCord

VanillaCord – IP Forwarding support for Vanilla Minecraft Servers
Mozilla Public License 2.0
77 stars 11 forks source link

sun.reflect.Reflection.getCallerClass is not supported. This will impact performance. #16

Closed g2nnyS closed 2 years ago

g2nnyS commented 2 years ago

WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance. Exception in thread "main" java.lang.ExceptionInInitializerError

Caused by: java.lang.UnsupportedOperationException: No class provided, and an appropriate one cannot be found. at org.apache.logging.log4j.LogManager.callerClass(LogManager.java:573) at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:598) at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:585) at net.minecraft.server.Main.(SourceFile:60)

My Version:1.17.1

g2nnyS commented 2 years ago

i sorry i pull many issue Because of my bad network

g2nnyS commented 2 years ago

i can use 1.16 but can't use 1.17

ME1312 commented 2 years ago

This one was a bit of a head-scratcher since, as you've rightly pointed out, it only occurs in 1.17. It doesn't even show itself in the 1.18 snapshots. Stranger still, I distinctly remember that we had been able to patch 1.17 versions successfully upon their release.

That was my clue. The problem? To support 1.18, an extra step was added to the patch process in which we have to clean the manifest file while making sure to keep the important properties as they are. The problem is that in doing so —

Manifest-Version: 1.0
Main-Class: net.minecraft.server.Main
Multi-Release: true  <--  we accidentally remove this rather insignificant-looking property (that only existed in 1.17)

This has been fixed as of the above commit. Give this latest build of VanillaCord a shot.

g2nnyS commented 2 years ago

Thank you In addition, the new version 1.18 will be release on Nov30 :) Hope VanillaCord can update soon