Skip to content

Loading Items in with a value of " ' " for lore stops the shop item load on startup. #8

@L-E-iT

Description

@L-E-iT

Error seen here:

 in 'string', line 9, column 7:
        - '
          ^
found unexpected end of stream
 in 'string', line 21, column 1:
    
    ^

[22:59:37] [Craft Scheduler Thread - 54/WARN]: 	at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55)
[22:59:37] [Craft Scheduler Thread - 54/WARN]: 	at max.hubbard.bettershops.Shops.Items.SQLShopItem.<init>(SQLShopItem.java:151)
[22:59:37] [Craft Scheduler Thread - 54/WARN]: 	at max.hubbard.bettershops.Shops.Items.SQLShopItem.loadShopItem(SQLShopItem.java:234)
[22:59:37] [Craft Scheduler Thread - 54/WARN]: 	at max.hubbard.bettershops.Shops.SQLShop.loadItems(SQLShop.java:327)
[22:59:37] [Craft Scheduler Thread - 54/WARN]: 	at max.hubbard.bettershops.Shops.SQLShop$1.run(SQLShop.java:88)
[22:59:37] [Craft Scheduler Thread - 54/WARN]: 	at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:71)
[22:59:37] [Craft Scheduler Thread - 54/WARN]: 	at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52)
[22:59:37] [Craft Scheduler Thread - 54/WARN]: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[22:59:37] [Craft Scheduler Thread - 54/WARN]: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[22:59:37] [Craft Scheduler Thread - 54/WARN]: 	at java.lang.Thread.run(Thread.java:748)
[22:59:37] [Craft Scheduler Thread - 54/WARN]: Caused by: while scanning a quoted scalar

I believe its caused by items in the bs_Items table in the Item column having a " ' " value in them, specifically in my case, within the 'Lore' section of the Item data.

Not exactly sure on what the fix is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions