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.

BentoBox Error on Server Startup: Error updating locale file 'locales/ro.yml'.

See original GitHub issue

Expected behavior

I would expect there to be no error.

Observed/Actual behavior

I actually received an error on startup. I tried to remove the locales file in order to prevent it, but it did not solve the problem. I also tried to only remove the ro.yml file, as I don’t need it, but this also did not solve the problem. It keeps regenerating.

Steps/models to reproduce

Start up the server with Bentobox installed.

BentoBox version

[13:28:37 INFO]: Running PAPER 1.18.1. [13:28:37 INFO]: BentoBox version: 1.20.0-SNAPSHOT-b2221 [13:28:37 INFO]: Database: JSON [13:28:37 INFO]: Loaded Game Worlds: [13:28:37 INFO]: bskyblock_world (BSkyBlock): Overworld, Nether, The End [13:28:37 INFO]: Loaded Addons: [13:28:37 INFO]: Biomes 1.14.1-SNAPSHOT-b214 (ENABLED) [13:28:37 INFO]: BSkyBlock 1.15.2-SNAPSHOT-b717 (ENABLED)

Plugin list

[13:28:57 INFO]: Plugins (48): BentoBox, BroadcasterSVG, BuycraftX, ChatControl, Citizens, CombatLogX, CommandHook, CoreProtect, dynmap, EchoPet, Essentials, EssentialsAntiBuild, EssentialsChat, EssentialsProtect, EssentialsSpawn, EventSVG, floodgate, Geyser-Spigot, HideAndSeek, HungerGames, LaunchpadsSVG, LibsDisguises, LumiaSVG, MapsCompletedSVG, MobHunting, Multiverse-Core, Multiverse-Inventories, Multiverse-NetherPortals, Multiverse-Portals, NameColorSVG, ParkourProSVG, PermissionsEx*, PetShopSVG, PlotSquared, ProtocolLib, SirBlobmanCore (SirBlobmanAPI, XSeries), SpawnDropSVG, SpawnSelectorSVG, SvestiGames, TNTRun_reloaded, TutorialSVG, Vault, VipFlySVG, VIPHeadsSVG, VoteListenerSVG, Votifier, WorldEdit, WorldGuard

Other

The error output that I receive is the following:

[13:22:35 INFO]: [BentoBox] Loading addons...
[13:22:35 ERROR]: [BentoBox] Error updating locale file 'locales/ro.yml': Cannot set to an empty path
[13:22:35 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.0-SNAPSHOT-b2221.jar//world.bentobox.bentobox.api.addons.Addon.getYamlFromJar(Addon.java:316)
at BentoBox-1.20.0-SNAPSHOT-b2221.jar//world.bentobox.bentobox.managers.LocalesManager.updateLocale(LocalesManager.java:171)
at BentoBox-1.20.0-SNAPSHOT-b2221.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.0-SNAPSHOT-b2221.jar//world.bentobox.bentobox.managers.LocalesManager.copyLocalesFromAddonJar(LocalesManager.java:155)
at BentoBox-1.20.0-SNAPSHOT-b2221.jar//world.bentobox.bentobox.managers.AddonsManager.initializeAddon(AddonsManager.java:205)
at BentoBox-1.20.0-SNAPSHOT-b2221.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.0-SNAPSHOT-b2221.jar//world.bentobox.bentobox.managers.AddonsManager.loadAddons(AddonsManager.java:142)
at BentoBox-1.20.0-SNAPSHOT-b2221.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:500)
at org.bukkit.craftbukkit.v1_18_R1.CraftServer.enablePlugin(CraftServer.java:564)
at org.bukkit.craftbukkit.v1_18_R1.CraftServer.enablePlugins(CraftServer.java:478)
at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:286)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1202)
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317)
at java.base/java.lang.Thread.run(Thread.java:833)
[13:22:35 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.

Thank you in advance for resolving this issue 😃

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
tastybentocommented, Jan 25, 2022

Weird.

As a work around, try setting the ro.yml file to just a blank file. i.e., it should exist, but put nothing in it.

I have not seen this error, so I’m not sure why it is occurring. I’ll need to study this.

0reactions
Waterman1001commented, Jan 25, 2022

Hmm, indeed that is very strange 🤔 Also a little annoying, as it makes my story seem like it does not happen while i’m not lying of course haha.

Actually, I am running the latest version of paper:

[23:50:09 INFO]: This server is running Paper version git-Paper-175 (MC: 1.18.1) (Implementing API version 1.18.1-R0.1-SNAPSHOT) (Git: 9490475)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: error updating locale - Cisco Community
The 'error loading locale' is normal as long as you are in the U.S. because it is looking for a tone file that...
Read more >
BentoBox Error on Server Startup: Error updating locale file 'locales ...
BentoBox Error on Server Startup : Error updating locale file 'locales/ro.yml'. BentoBoxWorld/BentoBox. Issue. Expected behavior.
Read more >
BentoBox - bytemeta
BentoBox repo issues. ... BentoBox Error on Server Startup: Error updating locale file 'locales/ro.yml'. ... command:on-join in config file doesn't work.
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