You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a longer period of time the database connection times out. The plugin should try to reconnect.
What happens:
When the connection times out no database actions happen
What you expected to happen:
That the database connection gets reestablished
Steps to reproduce:
Start server with plugin
Wait a day
Login on server
Watch database requests fail
Affected Versions (Do not use "latest"):
Minecraft: 1.11.2
InvSync: 0.4.0-beta
Sponge: 1.11.2-6.0.0-BETA-243
Your most recent log or stack trace file where the issue was present:
[17:03:55 ERROR] [invsync]: Could not save invetory for player KennyTheKing (2a095566-a563-4207-a747-846f171dd779)
java.sql.SQLException: execute() is called on closed connection
at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.prolog(AbstractQueryProtocol.java:1239) ~[2017-04-11-18-38-13-spongevanilla-1.11.2-6.0.0-BETA-243.jar:1.11.2-6.0.0-BETA-243]
at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.prologProxy(AbstractQueryProtocol.java:1223) ~[2017-04-11-18-38-13-spongevanilla-1.11.2-6.0.0-BETA-243.jar:1.11.2-6.0.0-BETA-243]
at org.mariadb.jdbc.MariaDbServerPreparedStatement.executeQueryProlog(MariaDbServerPreparedStatement.java:332) ~[2017-04-11-18-38-13-spongevanilla-1.11.2-6.0.0-BETA-243.jar:1.11.2-6.0.0-BETA-243]
at org.mariadb.jdbc.MariaDbServerPreparedStatement.executeInternal(MariaDbServerPreparedStatement.java:390) ~[2017-04-11-18-38-13-spongevanilla-1.11.2-6.0.0-BETA-243.jar:1.11.2-6.0.0-BETA-243]
at org.mariadb.jdbc.MariaDbServerPreparedStatement.execute(MariaDbServerPreparedStatement.java:359) ~[2017-04-11-18-38-13-spongevanilla-1.11.2-6.0.0-BETA-243.jar:1.11.2-6.0.0-BETA-243]
at org.mariadb.jdbc.MariaDbServerPreparedStatement.executeUpdate(MariaDbServerPreparedStatement.java:348) ~[2017-04-11-18-38-13-spongevanilla-1.11.2-6.0.0-BETA-243.jar:1.11.2-6.0.0-BETA-243]
at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeUpdate(ProxyPreparedStatement.java:61) ~[2017-04-11-18-38-13-spongevanilla-1.11.2-6.0.0-BETA-243.jar:1.11.2-6.0.0-BETA-243]
at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeUpdate(HikariProxyPreparedStatement.java) ~[2017-04-11-18-38-13-spongevanilla-1.11.2-6.0.0-BETA-243.jar:1.11.2-6.0.0-BETA-243]
at world.jnc.invsync.DataSource.saveInventory(DataSource.java:94) [DataSource.class:?]
at world.jnc.invsync.PlayerEvents.savePlayer(PlayerEvents.java:114) [PlayerEvents.class:?]
at world.jnc.invsync.PlayerEvents.onPlayerLeave(PlayerEvents.java:53) [PlayerEvents.class:?]
at org.spongepowered.common.event.listener.DisconnectListener_PlayerEvents_onPlayerLeave34.handle(Unknown Source) [?:?]
at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:95) [RegisteredListener.class:1.11.2-6.0.0-BETA-243]
at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:305) [SpongeEventManager.class:1.11.2-6.0.0-BETA-243]
at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:319) [SpongeEventManager.class:1.11.2-6.0.0-BETA-243]
at org.spongepowered.common.SpongeImpl.postEvent(SpongeImpl.java:133) [SpongeImpl.class:1.11.2-6.0.0-BETA-243]
at net.minecraft.network.NetHandlerPlayServer.redirect$onDisconnectHandler$zgk000(SourceFile:2002) [mi.class:?]
at net.minecraft.network.NetHandlerPlayServer.func_147231_a(SourceFile:733) [mi.class:?]
at net.minecraft.network.NetworkManager.func_179293_l(SourceFile:382) [er.class:?]
at net.minecraft.network.NetworkSystem.func_151269_c(SourceFile:215) [mh.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(SourceFile:1603) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(SourceFile:335) [lh.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(SourceFile:562) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:466) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]
The text was updated successfully, but these errors were encountered:
Issue Description:
After a longer period of time the database connection times out. The plugin should try to reconnect.
What happens:
When the connection times out no database actions happen
What you expected to happen:
That the database connection gets reestablished
Steps to reproduce:
Affected Versions (Do not use "latest"):
Your most recent log or stack trace file where the issue was present:
The text was updated successfully, but these errors were encountered: