AdoptOpenJDK / AdoptOpenJDK/IcedTea-Web

Locale (Internalization) properties files throwing ClassNotFoundExceptions in Console

Đang mở
#852 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
268
Fork
96
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.