Date: Wed, 28 Jan 2004 08:38:43 +0100 From: Ernst de Haan <ernst.dehaan@nl.wanadoo.com> To: =?iso-8859-1?q?Sebesty=E9n=20G=E1bor?= <gabor.sebestyen@freemail.hu>, freebsd-java@freebsd.org Subject: Re: Bug: loading preferences Message-ID: <200401280838.43311.ernst.dehaan@nl.wanadoo.com> In-Reply-To: <7C4D62A6-510F-11D8-8456-0003936A8632@freemail.hu> References: <7C4D62A6-510F-11D8-8456-0003936A8632@freemail.hu>
next in thread | previous in thread | raw e-mail | index | archive | help
Sebestyén, Attachments don't come through. Please upload the files somewhere and mail a link to the group. Ernst On dinsdag 27 januari 2004 22:26, Sebestyén Gábor wrote: > 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 -- Wanadoo Nederland BV, http://www.wanadoo.nl & http://www.euronet.nl Ernst de Haan, Teamleader IS Tech Team Muiderstraat 1, P.o. BOX 11095, 1001 GB Amsterdam T:+31 (0)20 535 59 71, F:+31 (0)20 535 51 76 E-mail: ernst.dehaan@nl.wanadoo.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401280838.43311.ernst.dehaan>