Database isnt saved. V3 #172

Open
opened 2024-02-08 06:01:18 +00:00 by JuliGame · 5 comments

Database is not being saved on server stop, see video.
https://youtu.be/6PYbmeq_JFY

Database is not being saved on server stop, see video. https://youtu.be/6PYbmeq_JFY
JuliGame added the
Bug
label 2024-02-08 06:01:18 +00:00
Author

Same happens event if I delete data.db and create a garage with an empty db.
https://www.youtube.com/watch?v=7TXzagSnwek

Same error using mysql.

Same happens event if I delete data.db and create a garage with an empty db. https://www.youtube.com/watch?v=7TXzagSnwek Same error using mysql.
JuliGame changed title from Garage config isnt saved. to Garage config isnt saved. V3 2024-02-08 06:06:55 +00:00
JuliGame changed title from Garage config isnt saved. V3 to Config isnt saved. V3 2024-02-08 06:13:50 +00:00
JuliGame changed title from Config isnt saved. V3 to Database isnt saved. V3 2024-02-08 06:14:36 +00:00
Member

can you maybe send the database file after stopping the first time?

can you maybe send the database file after stopping the first time?
Author

can you maybe send the database file after stopping the first time?

Its empty, here I show it to you in a video.
In last try the vehicle is saved in the db, but the garages don't, and the vehicle didn't spawn.
https://youtu.be/JdwTBQTO6G8

> can you maybe send the database file after stopping the first time? Its empty, here I show it to you in a video. In last try the vehicle is saved in the db, but the garages don't, and the vehicle didn't spawn. https://youtu.be/JdwTBQTO6G8
Owner

Please provide the error as text.

Please provide the error as text.
SBDeveloper added the
v3
label 2024-02-08 17:57:52 +00:00
Author

[13:52:20] [Server thread/INFO]: [VehiclesPlus] Enabling VehiclesPlus v3.0.0-SNAPSHOT
[13:52:20] [Server thread/INFO]: [VehiclesPlus] -------------------------------
[13:52:20] [Server thread/INFO]: [VehiclesPlus] VehiclesPlus v3.0.0-SNAPSHOT
[13:52:20] [Server thread/INFO]: [VehiclesPlus] Made by SBDeveloper
[13:52:20] [Server thread/INFO]: [VehiclesPlus]
[13:52:20] [Server thread/INFO]: [VehiclesPlus] This copy is bought on SpigotMC (2302).
[13:52:20] [Server thread/INFO]: [VehiclesPlus] Loading config...
[13:52:20] [Server thread/INFO]: [VehiclesPlus] Loading API and settings...
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Connecting to data storage...
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Connecting to the MySQL database 'VehiclesPlus'...
[13:52:21] [Server thread/INFO]: [nl.sbdeveloper.vehiclesplus.libs.hikari.HikariDataSource] HikariPool-1 - Starting...
[13:52:21] [Server thread/INFO]: [nl.sbdeveloper.vehiclesplus.libs.hikari.pool.HikariPool] HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@6f0b9181
[13:52:21] [Server thread/INFO]: [nl.sbdeveloper.vehiclesplus.libs.hikari.HikariDataSource] HikariPool-1 - Start completed.
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Loading vehicle storage...
[13:52:21] [Server thread/ERROR]: [VehiclesPlus] Couldn't load a vehicle
nl.sbdeveloper.vehiclesplus.libs.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "garage" (class nl.sbdeveloper.vehiclesplus.api.vehicles.impl.StorageVehicle), not marked as ignorable (7 known properties: "parts", "statics", "actionBarMessage", "uuid", "trunkItems", "displayName", "vehicleModel"])
at [Source: REDACTED (StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION disabled); line: 1, column: 10832] (through reference chain: nl.sbdeveloper.vehiclesplus.api.vehicles.impl.StorageVehicle["garage"])
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:61) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.DeserializationContext.handleUnknownProperty(DeserializationContext.java:1153) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:2224) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1793) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.BeanDeserializerBase.handleUnknownVanilla(BeanDeserializerBase.java:1771) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:279) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:464) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1493) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:348) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:185) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:342) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4899) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3846) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3814) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.utils.jackson.JacksonHelper.fromJSON(JacksonHelper.java:67) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.storage.db.MySQLDB.lambda$loadVehicles$1(MySQLDB.java:70) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.storage.db.DataStorageHCP.execute(DataStorageHCP.java:19) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.storage.db.MySQLDB.loadVehicles(MySQLDB.java:60) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at nl.sbdeveloper.vehiclesplus.VehiclesPlus.onEnable(VehiclesPlus.java:106) ~[VehiclesPlus-3.0.0-PRE5.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:281) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:190) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugin(CraftServer.java:651) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugins(CraftServer.java:562) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:678) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:438) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:345) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1148) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:326) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"]
at java.lang.Thread.run(Thread.java:840) ~[?:?]
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Loading garage storage...
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Loading tasks...
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Registering commands...
[13:52:21] [Server thread/INFO]: [VehiclesPlus] [ACF] Enabled Asynchronous Tab Completion Support!
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Loading the language file lang_en.yml...
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Set the locale 'en' as default.
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Registering events...
[13:52:21] [Server thread/WARN]: [VehiclesPlus] Enabled legacy EntityDismountEvent listener, which is required for older versions (below 1.20.4 for Spigot or 1.20 for PaperSpigot).
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Loading GUIs...
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Detected WorldGuard (v7.x)! Loading custom flags...
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Loading SmoothCoastersAPI...
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Loading metrics (can be disabled in the config of bStats)...
[13:52:21] [Server thread/INFO]: [VehiclesPlus] Plugin enabled!
[13:52:21] [Server thread/INFO]: [VehiclesPlus] -------------------------------

[13:52:20] [Server thread/INFO]: [VehiclesPlus] Enabling VehiclesPlus v3.0.0-SNAPSHOT [13:52:20] [Server thread/INFO]: [VehiclesPlus] ------------------------------- [13:52:20] [Server thread/INFO]: [VehiclesPlus] VehiclesPlus v3.0.0-SNAPSHOT [13:52:20] [Server thread/INFO]: [VehiclesPlus] Made by SBDeveloper [13:52:20] [Server thread/INFO]: [VehiclesPlus] [13:52:20] [Server thread/INFO]: [VehiclesPlus] This copy is bought on SpigotMC (2302). [13:52:20] [Server thread/INFO]: [VehiclesPlus] Loading config... [13:52:20] [Server thread/INFO]: [VehiclesPlus] Loading API and settings... [13:52:21] [Server thread/INFO]: [VehiclesPlus] Connecting to data storage... [13:52:21] [Server thread/INFO]: [VehiclesPlus] Connecting to the MySQL database 'VehiclesPlus'... [13:52:21] [Server thread/INFO]: [nl.sbdeveloper.vehiclesplus.libs.hikari.HikariDataSource] HikariPool-1 - Starting... [13:52:21] [Server thread/INFO]: [nl.sbdeveloper.vehiclesplus.libs.hikari.pool.HikariPool] HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@6f0b9181 [13:52:21] [Server thread/INFO]: [nl.sbdeveloper.vehiclesplus.libs.hikari.HikariDataSource] HikariPool-1 - Start completed. [13:52:21] [Server thread/INFO]: [VehiclesPlus] Loading vehicle storage... [13:52:21] [Server thread/ERROR]: [VehiclesPlus] Couldn't load a vehicle nl.sbdeveloper.vehiclesplus.libs.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "garage" (class nl.sbdeveloper.vehiclesplus.api.vehicles.impl.StorageVehicle), not marked as ignorable (7 known properties: "parts", "statics", "actionBarMessage", "uuid", "trunkItems", "displayName", "vehicleModel"]) at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 10832] (through reference chain: nl.sbdeveloper.vehiclesplus.api.vehicles.impl.StorageVehicle["garage"]) at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:61) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.DeserializationContext.handleUnknownProperty(DeserializationContext.java:1153) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:2224) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1793) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.BeanDeserializerBase.handleUnknownVanilla(BeanDeserializerBase.java:1771) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:279) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:464) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1493) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:348) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:185) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:342) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4899) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3846) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.libs.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3814) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.utils.jackson.JacksonHelper.fromJSON(JacksonHelper.java:67) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.storage.db.MySQLDB.lambda$loadVehicles$1(MySQLDB.java:70) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.storage.db.DataStorageHCP.execute(DataStorageHCP.java:19) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.storage.db.MySQLDB.loadVehicles(MySQLDB.java:60) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at nl.sbdeveloper.vehiclesplus.VehiclesPlus.onEnable(VehiclesPlus.java:106) ~[VehiclesPlus-3.0.0-PRE5.jar:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:281) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:190) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugin(CraftServer.java:651) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"] at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugins(CraftServer.java:562) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"] at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:678) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"] at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:438) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:345) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1148) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:326) ~[purpur-1.20.4.jar:git-Purpur-"544a2b6"] at java.lang.Thread.run(Thread.java:840) ~[?:?] [13:52:21] [Server thread/INFO]: [VehiclesPlus] Loading garage storage... [13:52:21] [Server thread/INFO]: [VehiclesPlus] Loading tasks... [13:52:21] [Server thread/INFO]: [VehiclesPlus] Registering commands... [13:52:21] [Server thread/INFO]: [VehiclesPlus] [ACF] Enabled Asynchronous Tab Completion Support! [13:52:21] [Server thread/INFO]: [VehiclesPlus] Loading the language file lang_en.yml... [13:52:21] [Server thread/INFO]: [VehiclesPlus] Set the locale 'en' as default. [13:52:21] [Server thread/INFO]: [VehiclesPlus] Registering events... [13:52:21] [Server thread/WARN]: [VehiclesPlus] Enabled legacy EntityDismountEvent listener, which is required for older versions (below 1.20.4 for Spigot or 1.20 for PaperSpigot). [13:52:21] [Server thread/INFO]: [VehiclesPlus] Loading GUIs... [13:52:21] [Server thread/INFO]: [VehiclesPlus] Detected WorldGuard (v7.x)! Loading custom flags... [13:52:21] [Server thread/INFO]: [VehiclesPlus] Loading SmoothCoastersAPI... [13:52:21] [Server thread/INFO]: [VehiclesPlus] Loading metrics (can be disabled in the config of bStats)... [13:52:21] [Server thread/INFO]: [VehiclesPlus] Plugin enabled! [13:52:21] [Server thread/INFO]: [VehiclesPlus] -------------------------------
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: SBDevelopment/VehiclesPlus#172
No description provided.