SUN JRE 1.3.1 Can not Find Properties File, 1.3.0 Can.
Aug 1, 2001
PROBLEM:
Upon manual installation of the Sun 1.3.1 JAVA Plug In on
a client, our applet will load but can no longer "find" the
properties file and throws a MissingResourceException. Other
class files from our single jar are found OK. No other changes
were made on this machine - only the JRE 1.3.1 install.
This was done by uninstalling the old 1.3.0 JRE, rebooting
the client, then manually (not via the auto HTML download)
installing the new 1.3.1 JRE. At this point our web page
launching our applet was accessed and the failure occurred.
We are assuming that old HTML files expecting version 1.3
plugins "should" function fine on previously installed
1.3.1 JRE plugins on client machines.
(BTW-converting our HTML to 1.3.1 made things even worse)
The unacceptable way to get 1.3.1 to function is to enter
IE->Internet OPtions->Connections->Lan Settings->Proxy server
and then UNCHECK the "Use a proxy server" checkbox.
The resource file will then be found on the next try.
QUESTIONS:
1. What are the differences between JRE 1.3.0 and 1.3.1
with regard to ResourceBundles?
2. What needs to be reconfigured on the client side to accomodate 1.3.1?
3. Does the "trustProxy" issue have something to do with the probelm?
ENVIRONMENT:
OS: WinNT4.0 SP6
Browser:IE 5.5 SP1 version 5.50.4522.1800
JRE:Sun 1.3.0 and 1.3.1
Compiler:IBMJDK 1.3
SOURCE CODE:
The line of code that throws the exception on 1.3.1 (only)
java.util.PropertyResourceBundle rb = (java.util.PropertyResourceBundle)java.util.PropertyResourceBundle.getBundle("properties.ClientProperties");
CONSOLE DUMPS:
Console start info:
Java(TM) Plug-in: Version 1.3.1
Using JRE version 1.3.1 Java HotSpot(TM) Client VM
User home directory = C:\WINNT\Profiles\admin
Proxy Configuration: Manual Configuration
Proxy: socks=socks.myCity.myCompany.com:1080
Proxy Overrides: ,localhost,49213,127.0.0.1,203.3.7.222,<local>
Console dump after startup:
Opening http://myserver/webapp/TestApp/properties/TestAppProperties.class
Connecting http://myserver/webapp/TestApp/properties/TestAppProperties.class with no proxy
Opening http://myserver/webapp/TestApp/properties/TestAppProperties.properties
Connecting http://myserver/webapp/TestApp/properties/TestAppProperties.properties with no proxy
Opening http://myserver/webapp/TestApp/properties/TestAppProperties_en.class
Connecting http://myserver/webapp/TestApp/properties/TestAppProperties_en.class with no proxy
Opening http://myserver/webapp/TestApp/properties/TestAppProperties_en.properties
Connecting http://myserver/webapp/TestApp/properties/TestAppProperties_en.properties with no proxy
Opening http://myserver/webapp/TestApp/properties/TestAppProperties_en_US.class
Connecting http://myserver/webapp/TestApp/properties/TestAppProperties_en_US.class with no proxy
Opening http://myserver/webapp/TestApp/properties/TestAppProperties_en_US.properties
Connecting http://myserver/webapp/TestApp/properties/TestAppProperties_en_US.properties with no proxy
java.util.MissingResourceException:Can't find bundle for base name properties.TestAppProperties, locale en_US

