mojira.dev
MC-183769

NPE in server initialization

Note

Please only use the comments section if you have valuable information to add to the ticket. Any comments that do not constructively contribute to the ticket will be removed. Comments like "I have this issue as well" are not needed – use the vote function for that instead.

When running server I get the following error:

[18:31:58] [main/ERROR]: Unable to bootstrap registry 'minecraft:entity_type'
[18:31:58] [main/ERROR]: Unable to bootstrap registry 'minecraft:feature'
Exception in thread "main" java.lang.ExceptionInInitializerError
        at gl.H(SourceFile:94)
        at gl.a(SourceFile:132)
        at java.util.LinkedHashMap$LinkedEntrySet.forEach(LinkedHashMap.java:671)
        at gl.<clinit>(SourceFile:131)
        at aoc.a(SourceFile:144)
        at aoc.<clinit>(SourceFile:150)
        at ckx.<clinit>(SourceFile:23)
        at cka.<clinit>(SourceFile:64)
        at cqg.<clinit>(SourceFile:77)
        at cif.<clinit>(SourceFile:64)
        at net.minecraft.server.MinecraftServer.<clinit>(SourceFile:179)
Caused by: java.lang.NullPointerException
        at bsh.<init>(SourceFile:44)
        at bqk.<clinit>(SourceFile:9)
        ... 11 more

Linked issues

MC-183756 NPE in server initialization Resolved MC-183772 Unable to bootstrap registry Resolved MC-183778 Minecraft server.jar in 20w20a fails to start Resolved MC-183779 NPE Bootstrap Exception 20w19a -> 20w20a Resolved MC-183785 Getting 2 errors when trying to start server Resolved

Attachments

Comments 27

I get this in the logs:

 

[09:18:46] [main/ERROR]: Unable to bootstrap registry 'minecraft:entity_type'
[09:18:46] [main/ERROR]: Unable to bootstrap registry 'minecraft:feature'

Full Log with Exception:

 

UglyLauncher-Version: 1.1.0.43
Using Java-Version: C:\Program Files\Java\jre1.8.0_241\bin\javaw (64bit)
Startparameter: -d64 -Xms512m -Xmx2048m -Xmn128m -server -jar "minecraft_server.20w20a.jar" nogui
[18:22:32] [main/ERROR]: Unable to bootstrap registry 'minecraft:entity_type'
[18:22:32] [main/ERROR]: Unable to bootstrap registry 'minecraft:feature'
Exception in thread "main" java.lang.ExceptionInInitializerError
	at gl.H(SourceFile:94)
	at gl.a(SourceFile:132)
	at java.util.LinkedHashMap$LinkedEntrySet.forEach(Unknown Source)
	at gl.<clinit>(SourceFile:131)
	at aoc.a(SourceFile:144)
	at aoc.<clinit>(SourceFile:150)
	at ckx.<clinit>(SourceFile:23)
	at cka.<clinit>(SourceFile:64)
	at cqg.<clinit>(SourceFile:77)
	at cif.<clinit>(SourceFile:64)
	at net.minecraft.server.MinecraftServer.<clinit>(SourceFile:179)
Caused by: java.lang.NullPointerException
	at bsh.<init>(SourceFile:44)
	at bqk.<clinit>(SourceFile:9)
	... 11 more

I'm having the exact same issue. My log looks the same too.

Full Log with Exception:

13.05 16:14:14 [Multicraft] Starting server!
13.05 16:14:14 [Multicraft] Loaded config for "Special: custom.jar"
13.05 16:14:15 [Multicraft] Updating eula.txt file
13.05 16:14:19 [Server] main/ERROR Unable to bootstrap registry 'minecraft:entity_type'
13.05 16:14:19 [Server] main/ERROR Unable to bootstrap registry 'minecraft:feature'
13.05 16:14:19 [Server] INFO Exception in thread "main" java.lang.ExceptionInInitializerError
13.05 16:14:19 [Server] INFO at gl.H(SourceFile:94)
13.05 16:14:19 [Server] INFO at gl.a(SourceFile:132)
13.05 16:14:19 [Server] INFO at java.util.LinkedHashMap$LinkedEntrySet.forEach(LinkedHashMap.java:671)
13.05 16:14:19 [Server] INFO at gl.<clinit>(SourceFile:131)
13.05 16:14:19 [Server] INFO at aoc.a(SourceFile:144)
13.05 16:14:19 [Server] INFO at aoc.<clinit>(SourceFile:150)
13.05 16:14:19 [Server] INFO at ckx.<clinit>(SourceFile:23)
13.05 16:14:19 [Server] INFO at cka.<clinit>(SourceFile:64)
13.05 16:14:19 [Server] INFO at cqg.<clinit>(SourceFile:77)
13.05 16:14:19 [Server] INFO at cif.<clinit>(SourceFile:64)
13.05 16:14:19 [Server] INFO at net.minecraft.server.MinecraftServer.<clinit>(SourceFile:179)
13.05 16:14:19 [Server] INFO Caused by: java.lang.NullPointerException
13.05 16:14:19 [Server] INFO at bsh.<init>(SourceFile:44)
13.05 16:14:19 [Server] INFO at bqk.<clinit>(SourceFile:9)
13.05 16:14:19 [Server] INFO ... 11 more
13.05 16:14:19 [Multicraft] Server shut down (starting)
13.05 16:14:19 [Multicraft] Maximum number of automatic restarts reached (3 within 600 seconds). Not restarting crashed server
13.05 16:14:19 [Multicraft] Looks like a crash, check the server console. Return value: 1
13.05 16:14:19 [Multicraft] Server stopped
17 more comments

[01:02:25] [main/INFO]: [FabricLoader] Loading 2 mods: [email protected], [email protected]+build.194
sounds like you forgot to add the mod, and twozerobee does not require fabric api

Says Fixed, but I just downloaded the server jar and it is not fixed, or the link has not been updated.

Thatd be because the new B version of the snapshot hasnt been released yet.

@Devan S. - Thanks - I derped. Put the mods in the wrong folder. 😞 Thanks for the clarification. I'm up and running now. 

To keep this bug report on topic, can I ask that issues related to Two-Zero-Bee GitHub please be placed in the Two-Zero-Bee bug tracker. This is a Mojang tracker and should be treated as such.

To that point, 20w20b is now released (under previous URL) and available for immediate download https://www.minecraft.net/en-us/article/minecraft-snapshot-20w20a.

Note the comment at the top...

Edit: We've now released 20w20b to fix a bug.

 

Winter_Grave

boq

Confirmed

Very Important

Crash

20w20a

20w20b

Retrieved