java.lang.NullPointerExcetion

Hey there everyone,
Been trying to get a a server up here for the past hour or two (I’ve set up and maintained lots of servers in the past), but I keep getting this one error:

Exception in thread “main” java.lang.ExceptionInInitializerError
at org.apache.logging.log4j.util.PropertiesUtil.(PropertiesUtil.java:71)
at org.apache.logging.log4j.util.PropertiesUtil.(PropertiesUtil.java:31)
at org.apache.logging.log4j.status.StatusLogger.(StatusLogger.java:48)
at org.apache.logging.log4j.LogManager.(LogManager.java:44)
at net.minecraft.launchwrapper.LogWrapper.configureLogging(LogWrapper.java:14)
at net.minecraft.launchwrapper.LogWrapper.log(LogWrapper.java:28)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:94)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at org.spongepowered.server.launch.VanillaServerMain.main(VanillaServerMain.java:118)
at org.spongepowered.server.launch.VersionCheckingMain.main(VersionCheckingMain.java:38)
Caused by: java.lang.NullPointerException
at org.apache.logging.log4j.util.ProviderUtil.(ProviderUtil.java:70)
… 10 more

I’ve reinstalled java, and tried finding a solution online but the only Null Pointer exception errors I could find were ones pertaining to corrupted world files not a fresh server. I should note that I’m trying to set up a vanilla sponge server, so I did get the latest version of the vanilla sponger jar off the website and did use a correct launch.bat to get it started (as far as I’m aware).

Any help in resolving this issue would be greatly appreciated!

That’s weird. Try redownloading the sponge jar, and if that doesn’t work, post your launch.bat file.

I have tried re-downloading it. My launch command is as follows, but I’ve tried a variety of different launch codes to no avail:
java -Xms1G -Xmx2G -jar sponge.jar
pause

Note that my sponge jar is named sponge.jar

That’s really weird.

If this is a fresh server, delete all existing files and download the latest SpongeVanilla from the download site https://repo.spongepowered.org/maven/org/spongepowered/spongevanilla/ (Click the ‘main’ button)

If it still doesn’t work you could try setting up a SpongeForge server.

As stated before I already tried deleting the files and starting over.

I think I’ll just try to start a Sponge Forge server. Thanks!