question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

id.yml / ro.yml causing exception error

See original GitHub issue

Expected behavior

regular startup and language file creation. not errors.

Observed/Actual behavior

[14:55:43 INFO]: [BentoBox] Enabling BentoBox v1.20.1-SNAPSHOT-b2229
[14:55:43 INFO]: [BentoBox] Loading Settings from config.yml...
[14:55:44 INFO]: [BentoBox] Loading addons...
[14:55:44 WARN]: [BentoBox] Likes addon depends on development version of BentoBox plugin. Some functions may be not implemented.
[14:55:44 ERROR]: [BentoBox] Error updating locale file 'locales/ro.yml': Cannot set to an empty path
[14:55:44 ERROR]: [BentoBox] java.lang.IllegalArgumentException: Cannot set to an empty path
        at org.apache.commons.lang.Validate.notEmpty(Validate.java:321)
        at org.bukkit.configuration.MemorySection.set(MemorySection.java:190)
        at org.bukkit.configuration.file.YamlConfiguration.fromNodeTree(YamlConfiguration.java:158)
        at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:115)
        at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:160)
        at BentoBox-1.20.1-SNAPSHOT-b2229.jar//world.bentobox.bentobox.api.addons.Addon.getYamlFromJar(Addon.java:316)
        at BentoBox-1.20.1-SNAPSHOT-b2229.jar//world.bentobox.bentobox.managers.LocalesManager.updateLocale(LocalesManager.java:171)
        at BentoBox-1.20.1-SNAPSHOT-b2229.jar//world.bentobox.bentobox.managers.LocalesManager.lambda$copyLocalesFromAddonJar$0(LocalesManager.java:159)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at BentoBox-1.20.1-SNAPSHOT-b2229.jar//world.bentobox.bentobox.managers.LocalesManager.copyLocalesFromAddonJar(LocalesManager.java:155)
        at BentoBox-1.20.1-SNAPSHOT-b2229.jar//world.bentobox.bentobox.managers.AddonsManager.initializeAddon(AddonsManager.java:205)
        at BentoBox-1.20.1-SNAPSHOT-b2229.jar//world.bentobox.bentobox.managers.AddonsManager.loadAddon(AddonsManager.java:199)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
        at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
        at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
        at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
        at BentoBox-1.20.1-SNAPSHOT-b2229.jar//world.bentobox.bentobox.managers.AddonsManager.loadAddons(AddonsManager.java:142)
        at BentoBox-1.20.1-SNAPSHOT-b2229.jar//world.bentobox.bentobox.BentoBox.onEnable(BentoBox.java:165)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:501)
        at org.bukkit.craftbukkit.v1_18_R1.CraftServer.enablePlugin(CraftServer.java:562)
        at org.bukkit.craftbukkit.v1_18_R1.CraftServer.enablePlugins(CraftServer.java:476)
        at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:286)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1211)
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317)
        at java.base/java.lang.Thread.run(Thread.java:833)

[14:55:44 ERROR]: [BentoBox] Error updating locale file 'locales/id.yml': Cannot set to an empty path
[14:55:44 ERROR]: [BentoBox] java.lang.IllegalArgumentException: Cannot set to an empty path
        at org.apache.commons.lang.Validate.notEmpty(Validate.java:321)
        at org.bukkit.configuration.MemorySection.set(MemorySection.java:190)
        at org.bukkit.configuration.file.YamlConfiguration.fromNodeTree(YamlConfiguration.java:158)
        at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:115)
        at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:160)
        at BentoBox-1.20.1-SNAPSHOT-b2229.jar//world.bentobox.bentobox.api.addons.Addon.getYamlFromJar(Addon.java:316)
        at BentoBox-1.20.1-SNAPSHOT-b2229.jar//world.bentobox.bentobox.managers.LocalesManager.updateLocale(LocalesManager.java:171)
        at BentoBox-1.20.1-SNAPSHOT-b2229.jar//world.bentobox.bentobox.managers.LocalesManager.lambda$copyLocalesFromAddonJar$0(LocalesManager.java:159)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at BentoBox-1.20.1-SNAPSHOT-b2229.jar//world.bentobox.bentobox.managers.LocalesManager.copyLocalesFromAddonJar(LocalesManager.java:155)
        at BentoBox-1.20.1-SNAPSHOT-b2229.jar//world.bentobox.bentobox.managers.AddonsManager.initializeAddon(AddonsManager.java:205)
        at BentoBox-1.20.1-SNAPSHOT-b2229.jar//world.bentobox.bentobox.managers.AddonsManager.loadAddon(AddonsManager.java:199)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
        at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
        at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
        at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
        at BentoBox-1.20.1-SNAPSHOT-b2229.jar//world.bentobox.bentobox.managers.AddonsManager.loadAddons(AddonsManager.java:142)
        at BentoBox-1.20.1-SNAPSHOT-b2229.jar//world.bentobox.bentobox.BentoBox.onEnable(BentoBox.java:165)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:501)
        at org.bukkit.craftbukkit.v1_18_R1.CraftServer.enablePlugin(CraftServer.java:562)
        at org.bukkit.craftbukkit.v1_18_R1.CraftServer.enablePlugins(CraftServer.java:476)
        at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:286)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1211)
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317)
        at java.base/java.lang.Thread.run(Thread.java:833)

[14:55:44 ERROR]: [BentoBox] Could not load 'id.yml' : Cannot set to an empty path with the following cause 'null'. The file has likely an invalid YML format or has been made unreadable during the process.
[14:55:44 ERROR]: [BentoBox] Could not load 'ro.yml' : Cannot set to an empty path with the following cause 'null'. The file has likely an invalid YML format or has been made unreadable during the process.
[14:55:45 INFO]: [BentoBox] [SkyGrid] Loaded 102 block types for SkyGrid over world
[14:55:45 INFO]: [BentoBox] [SkyGrid] Loaded 13 block types for SkyGrid nether
[14:55:45 INFO]: [BentoBox] [SkyGrid] Loaded 8 block types for SkyGrid end world

Steps/models to reproduce

/stop
remove existing plugins/bentobox.jar and addons/*.jars (1.19.x)
remove /plugins/bentobox/locale/ directory

go to jenkins, download latest *.jars as er bbox ver output later in this report (or in other words: get latest jars)

start server, watch latest.log

BentoBox version

> bbox version
[14:59:02 INFO]: Running PAPER 1.18.1.
[14:59:02 INFO]: BentoBox version: 1.20.1-SNAPSHOT-b2229
[14:59:02 INFO]: Database: JSON
[14:59:02 INFO]: Loaded Game Worlds:
[14:59:02 INFO]: acid (acid): Overworld
[14:59:02 INFO]: cave (cave): Overworld
[14:59:02 INFO]: oneblock (oneblock): Overworld
[14:59:02 INFO]: skyblock (skyblock): Overworld
[14:59:02 INFO]: skygrid (skygrid): Overworld
[14:59:02 INFO]: Loaded Addons:
[14:59:02 INFO]: AcidIsland 1.15.2-SNAPSHOT-b959 (ENABLED)
[14:59:02 INFO]: AOneBlock 1.9.0-SNAPSHOT-b246 (ENABLED)
[14:59:02 INFO]: Biomes 2.0.0-SNAPSHOT-b220 (ENABLED)
[14:59:02 INFO]: Border 3.3.0-SNAPSHOT-b136 (ENABLED)
[14:59:02 INFO]: BSkyBlock 1.15.2-SNAPSHOT-b718 (ENABLED)
[14:59:02 INFO]: CauldronWitchery 2.0.0-SNAPSHOT-#32 (ENABLED)
[14:59:02 INFO]: CaveBlock 1.15.0 (ENABLED)
[14:59:02 INFO]: Challenges 1.0.0-SNAPSHOT-b476 (ENABLED)
[14:59:02 INFO]: ExtraMobs 1.12 (ENABLED)
[14:59:02 INFO]: Greenhouses 1.7.0-SNAPSHOT-b319 (ENABLED)
[14:59:02 INFO]: Level 2.9.1-SNAPSHOT-b497 (ENABLED)
[14:59:02 INFO]: Likes 2.2.0-SNAPSHOT-b80 (ENABLED)
[14:59:02 INFO]: Limits 1.19.1-SNAPSHOT-b291 (ENABLED)
[14:59:02 INFO]: MagicCobblestoneGenerator 2.3.0 (ENABLED)
[14:59:02 INFO]: SkyGrid 1.18.0-SNAPSHOT-b395 (ENABLED)
[14:59:02 INFO]: TwerkingForTrees 1.4.4-SNAPSHOT-b57 (ENABLED)
[14:59:02 INFO]: Warps 1.11.2-SNAPSHOT-b320 (ENABLED)
>

Plugin list

n/a

Other

ver [14:59:19 INFO]: Checking version, please wait… [14:59:19 INFO]: This server is running Paper version git-Paper-214 (MC: 1.18.1) (Implementing API version 1.18.1-R0.1-SNAPSHOT) (Git: bfa50ad) You are running the latest version Previous version: git-Paper-207 (MC: 1.18.1)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mrfloriscommented, Feb 25, 2022

I had removed the whole /locales/ directory after /stop and before starting it up again. But will try again.

1reaction
tastybentocommented, Feb 24, 2022

Okay, done. BentoBox will also now report the add-on that has the issue rather than just a generic error, so that should help in the future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Errors in YAML (.YML) Config Files - Knowledgebase
To fix errors in . yml files, you will need to use a YAML Parser. Paste your . yml configuration file into the...
Read more >
configuration files - Is it .yaml or .yml? - Stack Overflow
The suggestion, that this preference (in real life usage) was caused by a 8.3 character DOS-ish limitation, IMO is a red herring (erroneous...
Read more >
Exceptions from errors in services.yml files should tell you ...
When a services. yml file is badly-formed, doing a container rebuild just gives you an error with a snippet of the problem: >...
Read more >
YAML syntax error in elasticsearch.yml causes silent failure
A YAML syntax error in elasticsearch.yml causes Elasticsearch to fail without logging. Leaving out the space between the colon and the value ...
Read more >
Error about configuration.yml validness should mention file path
The rake task should not raise an error even if these lines are present. This error means that your configuration.yml is not a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found