"this.database" is null
Minion9113 opened this issue ยท 11 comments
Description
[Server] [ERROR] [LuckPerms] Exception occurred whilst loading data for edbdb57a-35bd-4ef1-86ce-833ee6ce576c - Minionbob0808
02.01 01:06:25 [Server] [INFO] java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "me.lucko.luckperms.lib.mongodb.client.MongoDatabase.getCollection(String)" because "this.database" is null
02.01 01:06:25 [Server] [INFO] at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?]
02.01 01:06:25 [Server] [INFO] at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?]
02.01 01:06:25 [Server] [INFO] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770) ~[?:?]
02.01 01:06:25 [Server] [INFO] at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
02.01 01:06:25 [Server] [INFO] at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
02.01 01:06:25 [Server] [INFO] at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1176) ~[?:?]
02.01 01:06:25 [Server] [INFO] at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1647) ~[?:?]
02.01 01:06:25 [Server] [INFO] at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1614) ~[?:?]
02.01 01:06:25 [Server] [INFO] at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
02.01 01:06:25 [Server] [INFO] Caused by: java.lang.NullPointerException: Cannot invoke "me.lucko.luckperms.lib.mongodb.client.MongoDatabase.getCollection(String)" because "this.database" is null
02.01 01:06:25 [Server] [INFO] at me.lucko.luckperms.common.storage.implementation.mongodb.MongoStorage.savePlayerData(MongoStorage.java:548) ~[?:?]
02.01 01:06:25 [Server] [INFO] at me.lucko.luckperms.common.storage.Storage.lambda$savePlayerData$21(Storage.java:269) ~[?:?]
02.01 01:06:25 [Server] [INFO] at me.lucko.luckperms.common.storage.Storage.lambda$future$0(Storage.java:88) ~[?:?]
02.01 01:06:25 [Server] [INFO] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
02.01 01:06:25 [Server] [INFO] ... 6 more
Reproduction Steps
i added all things for mongodb and then it said this error
Expected Behaviour
that it works?
Server Details
paper 1.19.3
LuckPerms Version
5.4.57
Logs and Configs
No response
Extra Details
No response
@LeotomasMC https://mcpaste.io/0cf28ad76720243a
you should upload a full log to a paste service such as github gist or pastes.dev
that is not a full log. copy the contents of the latest.log file onto the a paste service
java.lang.NumberFormatException: For input string: "//DragonFruitSMP"
wherever this is in your config, is preventing luckperms from reading the connection string