LuckPerms

LuckPerms

41.4k Downloads

IllegalArgumentException loading locale files

SlimeDog opened this issue ยท 3 comments

commented

Description

Reference: #3165

Translation files generate errors. Interestingly, most of the translation files were updated (see below).

Reproduction steps

Occasional, not every restart.

Expected behaviour

The solution proposed in #3165 (closed) was for the server operator to delete the files and regenerate them. I can add that to my start-up scripting, but most operators do not use a sophisticated scripting system. Several questions:

  • Why is the burden placed on the server operator?
  • When this error is encountered, why does LuckPerms not regenerate new translations?
  • I am running in English. Why does LuckPerms bother loading the translations for other languages?

Environment details

>version
[09:27:01] [Server thread/INFO]: This server is running CraftBukkit version 3242-Spigot-6c1c1b2-d3cc412 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT)
[09:27:01] [Server thread/INFO]: You are running the latest version
>version LuckPerms
[09:27:29] [Server thread/INFO]: LuckPerms version 5.3.68
[09:06:36] [ForkJoinPool-3-worker-2/WARN]: [LuckPerms] Error loading locale file: he_IL.properties - java.lang.IllegalArgumentException: Invalid key (and 329 more)
[09:06:36] [ForkJoinPool-3-worker-2/WARN]: [LuckPerms] Error loading locale file: id_ID.properties - java.lang.IllegalArgumentException: Invalid key (and 377 more)
-rw-r-----. 1 ram ram  2621 Jan 29  2021 ka_GE.properties
-rw-r-----. 1 ram ram   786 Jan 29  2021 pt_PT.properties
-rw-r-----. 1 ram ram   868 Jan 29  2021 fil_PH.properties
-rw-r-----. 1 ram ram 26800 Sep 14 06:38 iw_IL.properties
-rw-r-----. 1 ram ram 29036 Sep 14 06:38 in_ID.properties
-rw-r-----. 1 ram ram 22217 Sep 21 09:06 ro_RO.properties
-rw-r-----. 1 ram ram 54931 Sep 21 09:06 fr_FR.properties
-rw-r-----. 1 ram ram 53095 Sep 21 09:06 es_ES.properties
-rw-r-----. 1 ram ram 49669 Sep 21 09:06 ar_SA.properties
-rw-r-----. 1 ram ram 28659 Sep 21 09:06 bg_BG.properties
-rw-r-----. 1 ram ram 51438 Sep 21 09:06 cs_CZ.properties
-rw-r-----. 1 ram ram 51243 Sep 21 09:06 da_DK.properties
-rw-r-----. 1 ram ram 54904 Sep 21 09:06 de_DE.properties
-rw-r-----. 1 ram ram 73454 Sep 21 09:06 el_GR.properties
-rw-r-----. 1 ram ram 23340 Sep 21 09:06 fi_FI.properties
-rw-r-----. 1 ram ram 31041 Sep 21 09:06 he_IL.properties
-rw-r-----. 1 ram ram 54104 Sep 21 09:06 hu_HU.properties
-rw-r-----. 1 ram ram 52788 Sep 21 09:06 it_IT.properties
-rw-r-----. 1 ram ram 58468 Sep 21 09:06 ja_JP.properties
-rw-r-----. 1 ram ram 56879 Sep 21 09:06 ko_KR.properties
-rw-r-----. 1 ram ram 53277 Sep 21 09:06 nl_NL.properties
-rw-r-----. 1 ram ram 50437 Sep 21 09:06 no_NO.properties
-rw-r-----. 1 ram ram 51260 Sep 21 09:06 pl_PL.properties
-rw-r-----. 1 ram ram 71996 Sep 21 09:06 ru_RU.properties
-rw-r-----. 1 ram ram 26144 Sep 21 09:06 sv_SE.properties
-rw-r-----. 1 ram ram 51462 Sep 21 09:06 tr_TR.properties
-rw-r-----. 1 ram ram 47452 Sep 21 09:06 zh_CN.properties
-rw-r-----. 1 ram ram 47888 Sep 21 09:06 zh_TW.properties
-rw-r-----. 1 ram ram 57342 Sep 21 09:06 vi_VN.properties
-rw-r-----. 1 ram ram 52283 Sep 21 09:06 pt_BR.properties
-rw-r-----. 1 ram ram 29036 Sep 21 09:06 id_ID.properties
-rw-r-----. 1 ram ram  3905 Sep 21 09:06 fa_IR.properties
-rw-r-----. 1 ram ram 52527 Sep 21 09:06 en_PT.properties
-rw-r-----. 1 ram ram 36661 Sep 21 09:06 sr_CS.properties
-rw-r-----. 1 ram ram    34 Sep 21 09:06 repository.json
commented

Does the error occur on every startup, even after deleting the folder?

(Please could you zip the translations folder and send it to me before deleting though)

I actually wasn't able to reproduce on the last issue.

commented

It did not recur after deleting the translations/ subdirectory. Per the above, there were several files that were not replaced at 2021-09-21 09:06. Two of those where the problematic ones. They were not included in the replacement files.

commented

Same error here, it also occurred when I was running v5.3.55, but I have since updated to .68 and it still occurs. I made no changes except for updating to Java 17 and restarting, and downgrading Java did not fix the problem. Zip of plugins/LuckPerms/translations before deleting: out.zip. Deleting the folder fixed the problem.