-
Bug
-
Resolution: Fixed
-
P2
-
1.1.6, 1.2.0
-
1.1.6
-
generic
-
generic
-
Verified
The getAvailableLocales() methods don't work in an Applet.
% /usr/local/java/jdk1.1.6/solaris/bin/appletviewer AvailLocaleTestApplet.html
Collecting locales...
java.lang.ExceptionInInitializerError
at AvailLocaleTestApplet.init(AvailLocaleTestApplet.java:14)
at sun.applet.AppletPanel.run(AppletPanel.java:287)
at java.lang.Thread.run(Thread.java)
"Restart" here
Collecting locales...
java.lang.NoClassDefFoundError: java/text/resources/LocaleData
at
at AvailLocaleTestApplet.init(AvailLocaleTestApplet.java:14)
at sun.applet.AppletPanel.run(AppletPanel.java:287)
at java.lang.Thread.run(Thread.java)
The same applet works OK on JDK1.1.5.
On JDK1.2beta3, using hjb1.1.2,
% env JDK_HOME=/usr/local/java/jdk1.2/solaris /usr/local/java/hjb1.1.2/solaris/bin/hotjava -log /dev/tty
HOTJAVA_HOME is set to /net/javasoft/export/java/bin/hjb1.1.2/solaris
[Starting HotJava]
[Initializing globals]
[Creating frame]
[Loaded DTD html32 in 92ms]
[Loading: /home/okutsu/.hotjava/urlpool]
Warning:
Name: HorScrollBar
Class: XmScrollBar
The scrollbar page increment is less than 1.
Collecting locales...
sunw.hotjava.applet.AppletSecurityException
at sunw.hotjava.security.CommonSecurity.checkRead(CommonSecurity.java:360)
at java.io.File.exists(File.java:503)
at java.text.resources.LocaleData.getClassList(LocaleData.java:164)
at java.text.resources.LocaleData.<clinit>(LocaleData.java:121)
at
at AvailLocaleTestApplet.init(AvailLocaleTestApplet.java:14)
at sunw.hotjava.applet.AppletPanel.processEvent(AppletPanel.java:324)
at sunw.hotjava.applet.AppletPanel.run(AppletPanel.java:297)
at java.lang.Thread.run(Thread.java:490)
sunw.hotjava.applet.AppletSecurityException
at sunw.hotjava.security.CommonSecurity.checkRead(CommonSecurity.java:360)
at java.io.File.exists(File.java:503)
at java.text.resources.LocaleData.getClassList(LocaleData.java:164)
at java.text.resources.LocaleData.<clinit>(LocaleData.java:121)
at
at AvailLocaleTestApplet.init(AvailLocaleTestApplet.java:14)
at sunw.hotjava.applet.AppletPanel.processEvent(AppletPanel.java:324)
at sunw.hotjava.applet.AppletPanel.run(AppletPanel.java:297)
at java.lang.Thread.run(Thread.java:490)
null:
java.lang.ExceptionInInitializerError
at
at AvailLocaleTestApplet.init(AvailLocaleTestApplet.java:14)
at sunw.hotjava.applet.AppletPanel.processEvent(AppletPanel.java:324)
at sunw.hotjava.applet.AppletPanel.run(AppletPanel.java:297)
at java.lang.Thread.run(Thread.java:490)
% /usr/local/java/jdk1.1.6/solaris/bin/appletviewer AvailLocaleTestApplet.html
Collecting locales...
java.lang.ExceptionInInitializerError
at AvailLocaleTestApplet.init(AvailLocaleTestApplet.java:14)
at sun.applet.AppletPanel.run(AppletPanel.java:287)
at java.lang.Thread.run(Thread.java)
"Restart" here
Collecting locales...
java.lang.NoClassDefFoundError: java/text/resources/LocaleData
at
at AvailLocaleTestApplet.init(AvailLocaleTestApplet.java:14)
at sun.applet.AppletPanel.run(AppletPanel.java:287)
at java.lang.Thread.run(Thread.java)
The same applet works OK on JDK1.1.5.
On JDK1.2beta3, using hjb1.1.2,
% env JDK_HOME=/usr/local/java/jdk1.2/solaris /usr/local/java/hjb1.1.2/solaris/bin/hotjava -log /dev/tty
HOTJAVA_HOME is set to /net/javasoft/export/java/bin/hjb1.1.2/solaris
[Starting HotJava]
[Initializing globals]
[Creating frame]
[Loaded DTD html32 in 92ms]
[Loading: /home/okutsu/.hotjava/urlpool]
Warning:
Name: HorScrollBar
Class: XmScrollBar
The scrollbar page increment is less than 1.
Collecting locales...
sunw.hotjava.applet.AppletSecurityException
at sunw.hotjava.security.CommonSecurity.checkRead(CommonSecurity.java:360)
at java.io.File.exists(File.java:503)
at java.text.resources.LocaleData.getClassList(LocaleData.java:164)
at java.text.resources.LocaleData.<clinit>(LocaleData.java:121)
at
at AvailLocaleTestApplet.init(AvailLocaleTestApplet.java:14)
at sunw.hotjava.applet.AppletPanel.processEvent(AppletPanel.java:324)
at sunw.hotjava.applet.AppletPanel.run(AppletPanel.java:297)
at java.lang.Thread.run(Thread.java:490)
sunw.hotjava.applet.AppletSecurityException
at sunw.hotjava.security.CommonSecurity.checkRead(CommonSecurity.java:360)
at java.io.File.exists(File.java:503)
at java.text.resources.LocaleData.getClassList(LocaleData.java:164)
at java.text.resources.LocaleData.<clinit>(LocaleData.java:121)
at
at AvailLocaleTestApplet.init(AvailLocaleTestApplet.java:14)
at sunw.hotjava.applet.AppletPanel.processEvent(AppletPanel.java:324)
at sunw.hotjava.applet.AppletPanel.run(AppletPanel.java:297)
at java.lang.Thread.run(Thread.java:490)
null:
java.lang.ExceptionInInitializerError
at
at AvailLocaleTestApplet.init(AvailLocaleTestApplet.java:14)
at sunw.hotjava.applet.AppletPanel.processEvent(AppletPanel.java:324)
at sunw.hotjava.applet.AppletPanel.run(AppletPanel.java:297)
at java.lang.Thread.run(Thread.java:490)
- relates to
-
JDK-4122700 Locales no longer settable with JDK 1.1.6 and JDK1.2beta3
- Closed