Date: Tue, 27 Jan 2004 22:26:35 +0100 From: =?ISO-8859-1?Q?Sebesty=E9n_G=E1bor?= <gabor.sebestyen@freemail.hu> To: freebsd-java@freebsd.org Subject: Bug: loading preferences Message-ID: <7C4D62A6-510F-11D8-8456-0003936A8632@freemail.hu>
next in thread | raw e-mail | index | archive | help
--Apple-Mail-4-294831808 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed 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@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 --Apple-Mail-4-294831808--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7C4D62A6-510F-11D8-8456-0003936A8632>