AuthMe / AuthMeReloaded

The best authentication plugin for the Bukkit/Spigot API!
https://www.spigotmc.org/resources/authmereloaded.6269/
GNU General Public License v3.0
628 stars 516 forks source link

Authme not working #2253

Open AaronmolaGames opened 3 years ago

AaronmolaGames commented 3 years ago

What behaviour is observed: it used to stop my server so i edited it to not stopping it, it worked but the server goes as if it doesnt have authme so it is unprotected

Environment description: idk, paper 1.16.4

Error Log:

[15:14:19 WARN]: Plugin AuthMe v5.4.0-b1877 generated an exception while executing task 479 java.lang.NullPointerException: null at fr.xephi.authme.ConsoleLogger.writeLog(ConsoleLogger.java:240) ~[?:?] at fr.xephi.authme.ConsoleLogger.warning(ConsoleLogger.java:93) ~[?:?] at fr.xephi.authme.ConsoleLogger.logException(ConsoleLogger.java:104) ~[?:?] at fr.xephi.authme.datasource.SqlDataSourceUtils.logSqlException(SqlDataSourceUtils.java:23) ~[?:?] at fr.xephi.authme.datasource.SQLite.getAccountsRegistered(SQLite.java:577) ~[?:?] at fr.xephi.authme.datasource.CacheDataSource.getAccountsRegistered(CacheDataSource.java:234) ~[?:?] at fr.xephi.authme.initialization.DataSourceProvider.lambda$checkDataSourceSize$0(DataSourceProvider.java:94) ~[?:?] at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:99) ~[patched_1.16.4.jar:git-Paper-351] at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) ~[patched_1.16.4.jar:git-Paper-351] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.16.4.jar:git-Paper-351] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] at java.lang.Thread.run(Thread.java:834) [?:?]

Configuration:

krusic22 commented 3 years ago

You should at least use the latest AuthMe version before reporting issues.

AaronmolaGames commented 3 years ago

i did and the error still appears

ljacqu commented 3 years ago

Too lazy to open AuthMe in my IDE right now but could genuinely be a bug, looking at the stacktrace. Though interesting to note that your database has some issue:

at fr.xephi.authme.datasource.SqlDataSourceUtils.logSqlException(SqlDataSourceUtils.java:23) ~[?:?] at fr.xephi.authme.datasource.SQLite.getAccountsRegistered(SQLite.java:577) ~[?:?]

We don't know what since it then causes a logging issue but something goes wrong when it reads your DB