Bug: loading preferences
Sebestyén Gábor
gabor.sebestyen at freemail.hu
Tue Jan 27 13:27:59 PST 2004
Hi,
There is a problem reading xml based preferences. I use the built-in
java.util.prefs Preferences classes and it works well on Windows, Mac,
etc. This problem occurs only on FreeBSD 4.8
The error message is:
WARNING: Invalid preferences format in
/home/cajos/.java/.userPrefs/com/meditech/EasyABPM/intervalDefaults/
overall/prefs.xml
Jan 27, 2004 9:51:31 PM java.util.prefs.FileSystemPreferences$8 run
WARNING: Invalid preferences format in
/home/cajos/.java/.userPrefs/com/meditech/EasyABPM/intervalDefaults/
morning/prefs.xml
Jan 27, 2004 9:52:53 PM java.util.prefs.FileSystemPreferences$8 run
WARNING: Invalid preferences format in
/home/cajos/.java/.userPrefs/com/meditech/EasyABPM/intervalDefaults/
night/prefs.xml
Jan 27, 2004 9:52:53 PM java.util.prefs.FileSystemPreferences$8 run
WARNING: Invalid preferences format in
/home/cajos/.java/.userPrefs/com/meditech/EasyABPM/intervalDefaults/
day/prefs.xml
Jan 27, 2004 9:52:53 PM java.util.prefs.FileSystemPreferences$8 run
WARNING: Invalid preferences format in
/home/cajos/.java/.userPrefs/com/meditech/EasyABPM/intervalDefaults/
special/prefs.xml
Jan 27, 2004 9:52:53 PM java.util.prefs.FileSystemPreferences$8 run
WARNING: Invalid preferences format in
/home/cajos/.java/.userPrefs/com/meditech/EasyABPM/intervalDefaults/
overall/prefs.xml
Jan 27, 2004 9:52:53 PM java.util.prefs.FileSystemPreferences$8 run
WARNING: Invalid preferences format in
/home/cajos/.java/.userPrefs/com/meditech/EasyABPM/intervalDefaults/
morning/prefs.xml
I tried to track the source of this problem in the Java source and I
suspect it's in FileSystemPreferences.java:558-562 lines.
Please check it.
I attached a prefs.xml and a rescued (by Java itself!)
IncorrectFormatPrefs.xml. Both are saved by Java system.
The only difference between them is an "enabled" key with a boolean
value "true".
FREEBSD VERSION:
-bash-2.05b$ uname -a
FreeBSD core0.monarakh.hu 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Tue Oct
21 14:18:08 CEST 2003
cajos at core0.monarakh.hu:/usr/src/sys/compile/CORE0 i386
JAVA VERSION:
-bash-2.05b$ java -version
java version "1.4.2-p5"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.4.2-p5-root_07_jan_2004_07_52)
Java HotSpot(TM) Client VM (build 1.4.2-p5-root_07_jan_2004_07_52,
mixed mode)
Best regards,
Gabor
More information about the freebsd-java
mailing list