Shopkeepers

Shopkeepers

2M Downloads

Problem with saves en reload

blablubbabcDEV opened this issue · 4 comments

commented

Migrated from: https://dev.bukkit.org/projects/shopkeepers/issues/336

Originally posted by BacSpartan (Aug 7, 2015):

What steps will reproduce the problem?

  1. After installing citizens, saves of shopkeepers bug and any new shopkeeper stops working (is not saved and lost reload)
  2. Restore command bug ("an internal error occurred while attenmpting to perform this command") and the save's file loses all its dataWhat is the expected output? What do you see instead?What version of the product are you using? The last versionDo you have an error log of what happened?Yes :    16 more
    [Erreur Java]    org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    com.nisovin.shopkeepers.CommandManager.onCommand(CommandManager.java:90) ~[?:?]
    [Erreur Java]    com.nisovin.shopkeepers.ShopkeepersPlugin.reload(ShopkeepersPlugin.java:359) ~[?:?]
    [Erreur Java]    com.nisovin.shopkeepers.ShopkeepersPlugin.onDisable(ShopkeepersPlugin.java:324) ~[?:?]
    [Erreur Java]    com.nisovin.shopkeepers.ShopkeepersPlugin.saveReal(ShopkeepersPlugin.java:1229) ~[?:?]
    [Erreur Java]    com.nisovin.shopkeepers.ShopkeepersPlugin.saveDataToFile(ShopkeepersPlugin.java:1328) ~[?:?]
    [Erreur Java]    org.bukkit.configuration.file.YamlConfiguration.saveToString(YamlConfiguration.java:40) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.yaml.snakeyaml.Yaml.dump(Yaml.java:181) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.yaml.snakeyaml.Yaml.dumpAll(Yaml.java:206) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.yaml.snakeyaml.Yaml.dumpAll(Yaml.java:242) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.yaml.snakeyaml.representer.BaseRepresenter.represent(BaseRepresenter.java:64) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.yaml.snakeyaml.representer.BaseRepresenter.representData(BaseRepresenter.java:94) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.yaml.snakeyaml.representer.SafeRepresenter$RepresentMap.representData(SafeRepresenter.java:304) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.yaml.snakeyaml.representer.BaseRepresenter.representMapping(BaseRepresenter.java:156) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.yaml.snakeyaml.representer.BaseRepresenter.representData(BaseRepresenter.java:94) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.bukkit.configuration.file.YamlRepresenter$RepresentConfigurationSection.representData(YamlRepresenter.java:23) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.yaml.snakeyaml.representer.SafeRepresenter$RepresentMap.representData(SafeRepresenter.java:304) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.yaml.snakeyaml.representer.BaseRepresenter.representMapping(BaseRepresenter.java:156) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.yaml.snakeyaml.representer.BaseRepresenter.representData(BaseRepresenter.java:94) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.bukkit.configuration.file.YamlRepresenter$RepresentConfigurationSection.representData(YamlRepresenter.java:23) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.yaml.snakeyaml.representer.SafeRepresenter$RepresentMap.representData(SafeRepresenter.java:304) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.yaml.snakeyaml.representer.BaseRepresenter.representMapping(BaseRepresenter.java:156) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.yaml.snakeyaml.representer.BaseRepresenter.representData(BaseRepresenter.java:94) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.bukkit.configuration.file.YamlRepresenter$RepresentConfigurationSection.representData(YamlRepresenter.java:23) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.yaml.snakeyaml.representer.SafeRepresenter$RepresentMap.representData(SafeRepresenter.java:304) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.yaml.snakeyaml.representer.BaseRepresenter.representMapping(BaseRepresenter.java:156) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.yaml.snakeyaml.representer.BaseRepresenter.representData(BaseRepresenter.java:94) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.bukkit.configuration.file.YamlRepresenter$RepresentConfigurationSerializable.representData(YamlRepresenter.java:35) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.yaml.snakeyaml.representer.SafeRepresenter$RepresentMap.representData(SafeRepresenter.java:304) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.yaml.snakeyaml.representer.BaseRepresenter.representMapping(BaseRepresenter.java:156) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.yaml.snakeyaml.representer.BaseRepresenter.representData(BaseRepresenter.java:94) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.bukkit.configuration.file.YamlRepresenter$RepresentConfigurationSerializable.representData(YamlRepresenter.java:33) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.bukkit.craftbukkit.v1_8_R3.inventory.CraftMetaItem.serialize(CraftMetaItem.java:850) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.bukkit.craftbukkit.v1_8_R3.inventory.CraftMetaSkull.serialize(CraftMetaSkull.java:173) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    com.google.common.collect.ImmutableMap$Builder.put(ImmutableMap.java:206) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    com.google.common.collect.ImmutableMap.entryOf(ImmutableMap.java:135) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    com.google.common.collect.CollectPreconditions.checkEntryNotNull(CollectPreconditions.java:33) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    Caused    by: java.lang.NullPointerException: null value in entry: skull-owner=null
    [Erreur Java]    java.lang.Thread.run(Thread.java:722) [?:1.7.0]
    [Erreur Java]    net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:560) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:657) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:367) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:718) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    net.minecraft.server.v1_8_R3.SystemUtils.a(SystemUtils.java:19) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    java.util.concurrent.FutureTask.run(FutureTask.java:166) [?:1.7.0]
    [Erreur Java]    java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [?:1.7.0]
    [Erreur Java]    java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0]
    [Erreur Java]    net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:970) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1135) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:642) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    [Erreur Java]    org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa]
    org.bukkit.command.CommandException:    Unhandled exception executing command 'shopkeepers' in plugin Shopkeepers v1.61
    [01:58:46]    [Server thread/ERROR] : null
    [01:58:46]    [Server thread/INFO] : Bac_Spartan issued server command: /shopkeepers reloadPlease provide any additional information below.I am available for any further information
commented

Originally commented by BacSpartan (Aug 7, 2015):

Thanks!

commented

Originally closed by blablubbabc (Aug 7, 2015)

commented

Originally commented by BacSpartan (Aug 7, 2015):

If it helps, shopkeepers that don't work sell players heads

commented

Originally commented by blablubbabc (Aug 7, 2015):

This is a spigot/bukkit bug, with their item serialization: it doesn't support player heads with custom textures (no skull owner) currently. See my ticket about this issue here: https://hub.spigotmc.org/jira/browse/SPIGOT-1066
Duplicate of this closed ticket.

        Edited Aug 7, 2015