HypixelSkyblockRecode icon indicating copy to clipboard operation
HypixelSkyblockRecode copied to clipboard

Error while starting server with the release jar file

Open Considerated opened this issue 3 years ago • 6 comments

java.lang.IllegalArgumentException: The connection string is invalid. Connection strings must start with either 'mongodb://' or 'mongodb+srv://
        at com.mongodb.ConnectionString.<init>(ConnectionString.java:293) ~[?:?]
        at com.mongodb.client.MongoClients.create(MongoClients.java:61) ~[?:?]
        at net.atlas.SkyblockSandbox.database.mongo.MongoCoins.connect(MongoCoins.java:43) ~[?:?]
        at net.atlas.SkyblockSandbox.SBX.onEnable(SBX.java:130) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[patched_1.8.8.jar:git-PaperSpigot-445]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:332) [patched_1.8.8.jar:git-PaperSpigot-445]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:407) [patched_1.8.8.jar:git-PaperSpigot-445]
        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:359) [patched_1.8.8.jar:git-PaperSpigot-445]
        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:318) [patched_1.8.8.jar:git-PaperSpigot-445]
        at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:408) [patched_1.8.8.jar:git-PaperSpigot-445]
        at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:372) [patched_1.8.8.jar:git-PaperSpigot-445]
        at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:327) [patched_1.8.8.jar:git-PaperSpigot-445]
        at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:267) [patched_1.8.8.jar:git-PaperSpigot-445]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:563) [patched_1.8.8.jar:git-PaperSpigot-445]
        at java.lang.Thread.run(Thread.java:833) [?:?]
[17:01:00 INFO]: [SkyblockSandboxBase] Disabling SkyblockSandboxBase v0.1
[17:01:00 ERROR]: Error occurred while disabling SkyblockSandboxBase v0.1 (Is it up to date?)
java.lang.NullPointerException: Cannot invoke "java.util.List.iterator()" because "this.spawners" is null
        at net.atlas.SkyblockSandbox.SBX.onDisable(SBX.java:192) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:323) ~[patched_1.8.8.jar:git-PaperSpigot-445]
        at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:360) [patched_1.8.8.jar:git-PaperSpigot-445]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336) [patched_1.8.8.jar:git-PaperSpigot-445]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:407) [patched_1.8.8.jar:git-PaperSpigot-445]
        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:359) [patched_1.8.8.jar:git-PaperSpigot-445]
        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:318) [patched_1.8.8.jar:git-PaperSpigot-445]
        at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:408) [patched_1.8.8.jar:git-PaperSpigot-445]
        at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:372) [patched_1.8.8.jar:git-PaperSpigot-445]
        at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:327) [patched_1.8.8.jar:git-PaperSpigot-445]
        at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:267) [patched_1.8.8.jar:git-PaperSpigot-445]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:563) [patched_1.8.8.jar:git-PaperSpigot-445]
        at java.lang.Thread.run(Thread.java:833) [?:?]```

I'm getting this error while launching the server
Minecraft Server Version: Paper 1.8.8

Considerated avatar Oct 03 '22 11:10 Considerated

You need to add a MongoDB database URI into your config file, also I do not suggest trying to set this up if you do not have coding experience

Maploop avatar Oct 03 '22 11:10 Maploop

may i know where the config file is? i don't seem to find in the repo, nor in the plugins folder where i've downloaded the release in

Considerated avatar Oct 09 '22 08:10 Considerated

found it in dbinfo.yml, but the error still persists

Considerated avatar Oct 09 '22 08:10 Considerated

image

But, I still get this error: image

I believe this is a problem with the connection string being invalid, but I still get the same error. For info, I'm using the release file found in this repository and I haven't compiled this myself

Considerated avatar Oct 09 '22 08:10 Considerated

You also need to Change the URI in the Code, Like in the Mongo Files. Also you need to Just leave the URI in the config as it was

ole1011 avatar Oct 13 '22 13:10 ole1011

ok. will update

Considerated avatar Oct 14 '22 13:10 Considerated