[SPIGOT-5531] ClassCastException on startup 1.15.2 Created: 21/Jan/20  Updated: 21/Jan/20  Resolved: 21/Jan/20

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: SlimeDog Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Environment:

CentOS Linux release 7.7.1908

java version "11.0.6" 2020-01-14 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.6+8-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.6+8-LTS, mixed mode)

Spigot 1.15.2 (Jenkins 2580 and previous)


Version: spigot-1.15.2.jar-2020-01-21-1444:git-Spigot-800b93f-8160e29
Guidelines Read: Yes

 Description   

[14:57:26] [main/FATAL]: Failed to start the minecraft server
java.lang.ClassCastException: class java.io.File cannot be cast to class java.lang.String (java.io.File and java.lang.String are in module java.base of loader 'bootstrap')
at net.minecraft.server.v1_15_R1.MinecraftServer.main(MinecraftServer.java:1190) [spigot-1.15.2.jar-2020-01-21-1444:git-Spigot-800b93f-8160e29]
at org.bukkit.craftbukkit.Main.main(Main.java:203) [spigot-1.15.2.jar-2020-01-21-1444:git-Spigot-800b93f-8160e29]



 Comments   
Comment by SlimeDog [ 21/Jan/20 ]

What is the resolution, please? --universe is still a documented startup parameter.

UPDATE: I see: build 2581. Thanks.

Comment by SlimeDog [ 21/Jan/20 ]

Yes.
java -Xms1M -Xmx4G -XX:+UseG1GC -Dfile-encoding=UTF-8 -jar spigot.jar nogui --universe ./UNIVERSE

Comment by md_5 [ 21/Jan/20 ]

Please post your command line arguments. Are you using --universe ?

Generated at Fri Mar 28 13:36:03 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.