Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

[MySQL] java.lang.NullPointerException #120

Closed
Stixil opened this issue Sep 26, 2021 · 4 comments
Closed

[MySQL] java.lang.NullPointerException #120

Stixil opened this issue Sep 26, 2021 · 4 comments
Labels
🚨 bug Something isn't working ✔ fixed This issue has been fixed in the latest build

Comments

@Stixil
Copy link

Stixil commented Sep 26, 2021

[02:53:06 INFO]: This server is running Waterfall version git:Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:306121c:449 by md_5

Startup Error:
[03:00:32 WARN]: Exception encountered when loading plugin: EpicGuard
java.lang.NullPointerException: Cannot invoke "me.xneox.epicguard.core.EpicGuard.logger()" because the return value of "me.xneox.epicguard.core.EpicGuardAPI.instance()" is null
at me.xneox.epicguard.core.util.ExceptionUtils.report(ExceptionUtils.java:9) ~[?:?]
at me.xneox.epicguard.core.storage.StorageManager.(StorageManager.java:47) ~[?:?]
at me.xneox.epicguard.core.EpicGuard.startup(EpicGuard.java:65) ~[?:?]
at me.xneox.epicguard.core.EpicGuard.(EpicGuard.java:55) ~[?:?]
at me.xneox.epicguard.waterfall.EpicGuardWaterfall.onEnable(EpicGuardWaterfall.java:48) ~[?:?]
at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:315) ~[server.jar:git:Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:306121c:449]
at net.md_5.bungee.BungeeCord.start(BungeeCord.java:290) ~[server.jar:git:Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:306121c:449]
at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:67) ~[server.jar:git:Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:306121c:449]
at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15) ~[server.jar:git:Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:306121c:449]

Shutdown Error:
[02:52:28 ERROR]: Exception disabling plugin EpicGuard
java.lang.NullPointerException: Cannot invoke "me.xneox.epicguard.core.EpicGuard.shutdown()" because "this.epicGuard" is null
at me.xneox.epicguard.waterfall.EpicGuardWaterfall.onDisable(EpicGuardWaterfall.java:65) ~[?:?]
at net.md_5.bungee.BungeeCord.independentThreadStop(BungeeCord.java:474) ~[server.jar:git:Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:306121c:449]
at net.md_5.bungee.BungeeCord.access$000(BungeeCord.java:100) ~[server.jar:git:Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:306121c:449]
at net.md_5.bungee.BungeeCord$5.run(BungeeCord.java:414) ~[server.jar:git:Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:306121c:449]

@Stixil Stixil changed the title Exception disabling plugin EpicGuard java.lang.NullPointerException [MySQL] Exception disabling plugin EpicGuard java.lang.NullPointerException Sep 26, 2021
@Stixil Stixil changed the title [MySQL] Exception disabling plugin EpicGuard java.lang.NullPointerException [MySQL] java.lang.NullPointerException Sep 26, 2021
@awumii awumii added the 🚨 bug Something isn't working label Sep 26, 2021
@awumii
Copy link
Owner

awumii commented Sep 26, 2021

Download this build: https://github.com/xxneox/EpicGuard/suites/3871122794/artifacts/96305870
It should show you a more detailed error about why it can't connect to the database

@Stixil
Copy link
Author

Stixil commented Sep 26, 2021

Thanks! I have tried the new version and here is the new error on DB connection:

[21:16:06 INFO] [EpicGuard]: Running on: Waterfall-git:Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:306121c:449
[21:16:06 INFO] [EpicGuard]: Loading configuration...
[21:16:06 INFO] [EpicGuard]: Initializing managers...
[21:16:06 INFO] [EpicGuard]: This product includes GeoLite2 data created by MaxMind, available from https://www.maxmind.com
[21:16:06 INFO] [DB]: Connecting to Database: mysql://172.18.1.1:3306/epicguard
[21:16:06 INFO] [me.xneox.epicguard.libs.hikari.HikariDataSource]: DB - Starting...
[21:16:06 INFO] [me.xneox.epicguard.libs.hikari.pool.HikariPool]: DB - Added connection com.mysql.jdbc.JDBC4Connection@3da12ba4
[21:16:06 INFO] [me.xneox.epicguard.libs.hikari.HikariDataSource]: DB - Start completed.
[21:16:06 ERROR] [EpicGuard]: An error occurred in EpicGuard!
[21:16:06 ERROR] [EpicGuard]: > Details: Could not load data from SQL database
[21:16:06 ERROR] [EpicGuard]: > Platform: Waterfall-git:Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:306121c:449
[21:16:06 ERROR] [EpicGuard]: > Stacktrace:
[21:16:06 ERROR] [EpicGuard]:
java.lang.ClassCastException: class java.lang.Boolean cannot be cast to class java.lang.Number (java.lang.Boolean and java.lang.Number are in module java.base of loader 'bootstrap')
at me.xneox.epicguard.libs.idb.DbRow.getInt(DbRow.java:73) ~[?:?]
at me.xneox.epicguard.core.storage.SQLDatabase.loadData(SQLDatabase.java:73) ~[?:?]
at me.xneox.epicguard.core.storage.StorageManager.(StorageManager.java:46) ~[?:?]
at me.xneox.epicguard.core.EpicGuard.startup(EpicGuard.java:70) ~[?:?]
at me.xneox.epicguard.core.EpicGuard.(EpicGuard.java:58) ~[?:?]
at me.xneox.epicguard.waterfall.EpicGuardWaterfall.onEnable(EpicGuardWaterfall.java:48) ~[?:?]
at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:315) ~[server.jar:git:Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:306121c:449]
at net.md_5.bungee.BungeeCord.start(BungeeCord.java:290) ~[server.jar:git:Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:306121c:449]
at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:67) ~[server.jar:git:Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:306121c:449]
at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15) ~[server.jar:git:Waterfall-Bootstrap:1.17-R0.1-SNAPSHOT:306121c:449]
[21:16:06 INFO] [EpicGuard]: Initializing LogFilter...
[21:16:06 INFO] [EpicGuard]: Scheduling tasks...
[21:16:06 INFO] [EpicGuard]: Startup completed successfully. Welcome to EpicGuard v7.1.0
[21:16:06 INFO] [EpicGuard]: Order of the detection pipeline: LockdownCheck, BlacklistCheck, NicknameCheck, GeographicalCheck, ServerListCheck, ReconnectCheck, AccountLimitCheck, NameSimilarityCheck, ProxyCheck
[21:16:06 INFO]: Enabled plugin EpicGuard version 7.1.0 by neox

There is no error on shutdown.

@awumii
Copy link
Owner

awumii commented Sep 26, 2021

Try this jar:
EpicGuardWaterfall-7.1.0-UNPACK.zip

@awumii awumii added the ✔ fixed This issue has been fixed in the latest build label Sep 28, 2021
@awumii
Copy link
Owner

awumii commented Sep 28, 2021

Fixed in the latest build

@awumii awumii closed this as completed Sep 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🚨 bug Something isn't working ✔ fixed This issue has been fixed in the latest build
Projects
None yet
Development

No branches or pull requests

2 participants