Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to boot 1.18.2 PurPur #290

Open
TomLewis opened this issue May 25, 2023 · 4 comments
Open

Fails to boot 1.18.2 PurPur #290

TomLewis opened this issue May 25, 2023 · 4 comments

Comments

@TomLewis
Copy link

Testing Schematic Brush Reborn locally before I push to prod, not sure when this broke, but I put the latest version of Schematic Brush Reborn on my test server, and it threw errors to do with base_configuration.yml so I stopped the server and rebooted seeing that the files had been created, then on a fresh configs this now shows:

[19:18:42] [Server thread/INFO]: [TAB] Enabled in 94ms
[19:18:42] [Server thread/INFO]: [SchematicBrushReborn] Enabling SchematicBrushReborn v2.5.0
[19:18:42] [Server thread/INFO]: [SchematicBrushReborn] Locale plugins\SchematicBrushReborn\messages\messages_en_US.properties is up to date.
[19:18:42] [Server thread/INFO]: [SchematicBrushReborn] Registered entry of type storage with de.eldoria.schematicbrush.schematics.SchematicBrushCache at Schematic Registry
[19:18:42] [Server thread/ERROR]: [SchematicBrushReborn] Plugin failed to enable.
java.lang.NullPointerException: Cannot invoke "de.eldoria.schematicbrush.config.Configuration.schematicConfig()" because "this.configuration" is null
	at de.eldoria.schematicbrush.schematics.SchematicBrushCache.reload(SchematicBrushCache.java:70) ~[schematicbrushreborn-core-2.5.0.jar:?]
	at de.eldoria.schematicbrush.schematics.SchematicBrushCache.init(SchematicBrushCache.java:55) ~[schematicbrushreborn-core-2.5.0.jar:?]
	at de.eldoria.schematicbrush.schematics.SchematicRegistryImpl.register(SchematicRegistryImpl.java:22) ~[schematicbrushreborn-core-2.5.0.jar:?]
	at de.eldoria.schematicbrush.SchematicBrushRebornImpl.onPluginEnable(SchematicBrushRebornImpl.java:141) ~[schematicbrushreborn-core-2.5.0.jar:?]
	at de.eldoria.schematicbrush.libs.eldoutilities.plugin.EldoPlugin.onEnable(EldoPlugin.java:252) ~[schematicbrushreborn-core-2.5.0.jar:?]
	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[purpur-api-1.18.2-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[purpur-api-1.18.2-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:541) ~[purpur-api-1.18.2-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.craftbukkit.v1_18_R2.CraftServer.enablePlugin(CraftServer.java:560) ~[purpur-1.18.2.jar:git-Purpur-1628]
	at org.bukkit.craftbukkit.v1_18_R2.CraftServer.enablePlugins(CraftServer.java:474) ~[purpur-1.18.2.jar:git-Purpur-1628]
	at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:669) ~[purpur-1.18.2.jar:git-Purpur-1628]
	at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:436) ~[purpur-1.18.2.jar:git-Purpur-1628]
	at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:352) ~[purpur-1.18.2.jar:git-Purpur-1628]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1179) ~[purpur-1.18.2.jar:git-Purpur-1628]
	at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:320) ~[purpur-1.18.2.jar:git-Purpur-1628]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]

@rainbowdashlabs
Copy link
Member

Can you try 2.5.2. It should be fixed there. I uploaded it on spigot.

@TomLewis
Copy link
Author

Nope, still get errors, I deleted the folder so it would generate fresh configs to make sure too.

First boot gives this:

[18:50:32] [Server thread/INFO]: [SchematicBrushReborn] Enabling SchematicBrushReborn v2.5.2
[18:50:32] [Server thread/INFO]: [SchematicBrushReborn] Created default locale messages_en_US.properties
[18:50:32] [Server thread/INFO]: [SchematicBrushReborn] Updating plugins\SchematicBrushReborn\messages\messages_en_US.properties.
[18:50:32] [Server thread/INFO]: [SchematicBrushReborn] Added: error.endOfRoute=Please choose a subcommand. Available commands are:\n%COMMANDS%
[18:50:32] [Server thread/INFO]: [SchematicBrushReborn] Updated locale plugins\SchematicBrushReborn\messages\messages_en_US.properties. Please check your translation.
[18:50:32] [Server thread/INFO]: [SchematicBrushReborn] Registered entry of type storage with de.eldoria.schematicbrush.schematics.SchematicBrushCache at Schematic Registry
[18:50:32] [Server thread/ERROR]: [SchematicBrushReborn] Plugin failed to enable.
java.lang.NoSuchMethodError: 'void org.yaml.snakeyaml.parser.ParserImpl.<init>(org.yaml.snakeyaml.reader.StreamReader, org.yaml.snakeyaml.LoaderOptions)'
	at com.fasterxml.jackson.dataformat.yaml.YAMLParser.<init>(YAMLParser.java:193) ~[?:?]
	at com.fasterxml.jackson.dataformat.yaml.YAMLFactory._createParser(YAMLFactory.java:504) ~[?:?]
	at com.fasterxml.jackson.dataformat.yaml.YAMLFactory.createParser(YAMLFactory.java:392) ~[?:?]
	at com.fasterxml.jackson.dataformat.yaml.YAMLFactory.createParser(YAMLFactory.java:15) ~[?:?]
	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3542) ~[?:?]
	at de.eldoria.schematicbrush.libs.eldoutilities.config.JacksonConfig.read(JacksonConfig.java:404) ~[schematicbrushreborn-spigot-2.5.2.jar:?]
	at de.eldoria.schematicbrush.libs.eldoutilities.config.JacksonConfig.load(JacksonConfig.java:282) ~[schematicbrushreborn-spigot-2.5.2.jar:?]
	at de.eldoria.schematicbrush.libs.eldoutilities.config.JacksonConfig.createAndLoad(JacksonConfig.java:307) ~[schematicbrushreborn-spigot-2.5.2.jar:?]
	at de.eldoria.schematicbrush.libs.eldoutilities.config.JacksonConfig.lambda$secondary$2(JacksonConfig.java:109) ~[schematicbrushreborn-spigot-2.5.2.jar:?]
	at java.util.HashMap.computeIfAbsent(HashMap.java:1220) ~[?:?]
	at de.eldoria.schematicbrush.libs.eldoutilities.config.JacksonConfig.secondary(JacksonConfig.java:109) ~[schematicbrushreborn-spigot-2.5.2.jar:?]
	at de.eldoria.schematicbrush.libs.eldoutilities.config.JacksonConfig.main(JacksonConfig.java:85) ~[schematicbrushreborn-spigot-2.5.2.jar:?]
	at de.eldoria.schematicbrush.config.JacksonConfiguration.schematicConfig(JacksonConfiguration.java:50) ~[schematicbrushreborn-spigot-2.5.2.jar:?]
	at de.eldoria.schematicbrush.schematics.SchematicBrushCache.reload(SchematicBrushCache.java:70) ~[schematicbrushreborn-spigot-2.5.2.jar:?]
	at de.eldoria.schematicbrush.schematics.SchematicBrushCache.init(SchematicBrushCache.java:55) ~[schematicbrushreborn-spigot-2.5.2.jar:?]
	at de.eldoria.schematicbrush.schematics.SchematicRegistryImpl.register(SchematicRegistryImpl.java:22) ~[schematicbrushreborn-spigot-2.5.2.jar:?]
	at de.eldoria.schematicbrush.SchematicBrushRebornImpl.onPluginEnable(SchematicBrushRebornImpl.java:141) ~[schematicbrushreborn-spigot-2.5.2.jar:?]
	at de.eldoria.schematicbrush.libs.eldoutilities.plugin.EldoPlugin.onEnable(EldoPlugin.java:252) ~[schematicbrushreborn-spigot-2.5.2.jar:?]
	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[purpur-api-1.18.2-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[purpur-api-1.18.2-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:541) ~[purpur-api-1.18.2-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.craftbukkit.v1_18_R2.CraftServer.enablePlugin(CraftServer.java:560) ~[purpur-1.18.2.jar:git-Purpur-1628]
	at org.bukkit.craftbukkit.v1_18_R2.CraftServer.enablePlugins(CraftServer.java:474) ~[purpur-1.18.2.jar:git-Purpur-1628]
	at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:669) ~[purpur-1.18.2.jar:git-Purpur-1628]
	at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:436) ~[purpur-1.18.2.jar:git-Purpur-1628]
	at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:352) ~[purpur-1.18.2.jar:git-Purpur-1628]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1179) ~[purpur-1.18.2.jar:git-Purpur-1628]
	at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:320) ~[purpur-1.18.2.jar:git-Purpur-1628]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]
[18:50:32] [Server thread/ERROR]: [SchematicBrushReborn] Initializing failsave mode.

SEcond boot with the configs generated gives this:

[18:52:21] [Server thread/INFO]: [SchematicBrushReborn] Loading SchematicBrushReborn v2.5.2
[18:52:21] [Server thread/ERROR]: [SchematicBrushReborn] Plugin failed to load.
java.lang.NoSuchMethodError: 'void org.yaml.snakeyaml.parser.ParserImpl.<init>(org.yaml.snakeyaml.reader.StreamReader, org.yaml.snakeyaml.LoaderOptions)'
	at com.fasterxml.jackson.dataformat.yaml.YAMLParser.<init>(YAMLParser.java:193) ~[?:?]
	at com.fasterxml.jackson.dataformat.yaml.YAMLFactory._createParser(YAMLFactory.java:504) ~[?:?]
	at com.fasterxml.jackson.dataformat.yaml.YAMLFactory.createParser(YAMLFactory.java:392) ~[?:?]
	at com.fasterxml.jackson.dataformat.yaml.YAMLFactory.createParser(YAMLFactory.java:15) ~[?:?]
	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3542) ~[?:?]
	at de.eldoria.schematicbrush.libs.eldoutilities.config.JacksonConfig.read(JacksonConfig.java:404) ~[schematicbrushreborn-spigot-2.5.2.jar:?]
	at de.eldoria.schematicbrush.libs.eldoutilities.config.JacksonConfig.load(JacksonConfig.java:282) ~[schematicbrushreborn-spigot-2.5.2.jar:?]
	at de.eldoria.schematicbrush.libs.eldoutilities.config.JacksonConfig.createAndLoad(JacksonConfig.java:307) ~[schematicbrushreborn-spigot-2.5.2.jar:?]
	at de.eldoria.schematicbrush.libs.eldoutilities.config.JacksonConfig.lambda$secondary$2(JacksonConfig.java:109) ~[schematicbrushreborn-spigot-2.5.2.jar:?]
	at java.util.HashMap.computeIfAbsent(HashMap.java:1220) ~[?:?]
	at de.eldoria.schematicbrush.libs.eldoutilities.config.JacksonConfig.secondary(JacksonConfig.java:109) ~[schematicbrushreborn-spigot-2.5.2.jar:?]
	at de.eldoria.schematicbrush.SchematicBrushRebornImpl.onPluginLoad(SchematicBrushRebornImpl.java:118) ~[schematicbrushreborn-spigot-2.5.2.jar:?]
	at de.eldoria.schematicbrush.libs.eldoutilities.plugin.EldoPlugin.onLoad(EldoPlugin.java:214) ~[schematicbrushreborn-spigot-2.5.2.jar:?]
	at org.bukkit.craftbukkit.v1_18_R2.CraftServer.loadPlugins(CraftServer.java:424) ~[purpur-1.18.2.jar:git-Purpur-1628]
	at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:323) ~[purpur-1.18.2.jar:git-Purpur-1628]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1179) ~[purpur-1.18.2.jar:git-Purpur-1628]
	at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:320) ~[purpur-1.18.2.jar:git-Purpur-1628]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]
[18:52:21] [Server thread/ERROR]: [SchematicBrushReborn] Initializing failsave mode.
[18:52:21] [Server thread/WARN]: [SchematicBrushReborn] Command schematicbrush not found!
[18:52:21] [Server thread/WARN]: [SchematicBrushReborn] Command schematicbrushadmin not found!
[18:52:21] [Server thread/WARN]: [SchematicBrushReborn] Command schematicbrushbrushpreset not found!
[18:52:21] [Server thread/WARN]: [SchematicBrushReborn] Command schematicbrushmodify not found!
[18:52:21] [Server thread/WARN]: [SchematicBrushReborn] Command schematicbrushpreset not found!
[18:52:21] [Server thread/WARN]: [SchematicBrushReborn] Command schematicbrushsettings not found!

@rainbowdashlabs
Copy link
Member

Ah yes. Thats a problem with the older versions of spigot/paper. Although declaring it in the library loader I can override libraries already present in paper with it. In that case snake yaml. Thats why I provide legacy builds which shade stuff like a newer snake yaml version on my discord. Sadly spigot only allows me to publish one jar and the shaded jar is too large for spigot. So if you want you can come on my discord and download it there after registering your license code, which I send you on spigot.

@TomLewis
Copy link
Author

TomLewis commented Jun 1, 2023

That sounds like a great meet halfway for staying on 1.18.2 until I can get all pluings updated to 1.20 when that drops, thatll take months to wait for developers to catch up, so it would be nice to get SchematicBrushReborn up and working in the meantime!

I signed up today with the DM you send on spigot with a key, im "GodsDead" on Discord.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants