AdoptOpenJDK / AdoptOpenJDK/IcedTea-Web

Locale (Internalization) properties files throwing ClassNotFoundExceptions in Console

オープン
#852 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
268
フォーク
96
PR マージ指標
30日以内にマージされた PR はありません

説明

I have a base properties file(basefile. properties) in the com.x.y.z.properties package, which have a lot of entries in that like
com.x.y.z.properties.**filename1**
com.x.y.z.properties.**filename2**
com.x.y.z.properties.**filename3**
com.x.y.z.properties.**filename4**
.....
....
in the same location, for example, **filename1 has 3 sets of properties like filename1_en.properties, filename1_de.properties, and filename1.properties**, the similar way we have filename2, and so on. Based on Locale it picks up the file and processes it.

The issue is here when I run the JNLP file using IcedTeaWeb the application is working as expected(all the locale files are loaded properly), but the below errors are coming in the console.

[user-1][ITW-JAVAWS][ERROR_DEBUG][TIME][net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClass(JNLPClassLoader.java:1601)] NETX Thread# 565d9092, name XXXXXXX
java.lang.ClassNotFoundException: com.x.y.z.properties.filename1
at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClassExt(JNLPClassLoader.java:1798)
at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClass(JNLPClassLoader.java:1598)
at java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:2657)
at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1518)
at java.util.ResourceBundle.findBundle(ResourceBundle.java:1482)
at java.util.ResourceBundle.findBundle(ResourceBundle.java:1436)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1370)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:782)

java.lang.ClassNotFoundException: com.x.y.z.properties.filename1_en
at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClassExt(JNLPClassLoader.java:1798)
at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClass(JNLPClassLoader.java:1598)
at java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:2657)
at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1518)
at java.util.ResourceBundle.findBundle(ResourceBundle.java:1482)
at java.util.ResourceBundle.findBundle(ResourceBundle.java:1436)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1370)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:782)
................
................ and so on

My questions are

1) Since the application is working as expected, why these are errors simply thrown in the log? somehow these errors create confusion for users.
2) is there any way we can remove these errors?
3) why it's treating as a class for properties file?
3) is this a bug in IcedTeaWeb while loading Locale specific properties file?

Thanks

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。