Hi Ben, I'm not sure what's causing this but both GeoTools 2.6.6 and 2.7.0 use the same version of Xerces (2.7.1).
I wonder if any other list members have had similar problems ? Michael 2011/5/6 Benoît Thiébault <[email protected]>: > Hi everyone, > > I recently upgraded my software to use geotools 2.7.0 and I have a new > error message when I put new values in Java preferences. > > There is a bug filed (and closed as not reproductible...) here: > http://bugs.sun.com/view_bug.do?bug_id=6618386 > > The code snippet is the following: > import java.util.prefs.Preferences; > > public class PrefTest { > public static void main(String[] args){ > String key = "testKey"; > > Preferences pr = Preferences.userRoot(); > pr.put(key,"hello world"); > > } > } > > The error message is: > Exception in thread "Thread-1" java.lang.AbstractMethodError: org. > customer .xerces.dom.DocumentImpl.getXmlStandalone()Z > at com.sun.org. > customer .xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(DOM2TO.java:373) > at com.sun.org. > customer .xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:127) > at com.sun.org. > customer .xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:94) > at com.sun.org. > customer > .xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:663) > at com.sun.org. > customer > .xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:709) > at com.sun.org. > customer > .xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313) > at java.util.prefs.XmlSupport.writeDoc(XmlSupport.java:254) > at java.util.prefs.XmlSupport.exportMap(XmlSupport.java:333) > at java.util.prefs.FileSystemPreferences > $8.run(FileSystemPreferences.java:607) > at java.security.AccessController.doPrivileged(Native Method) > at > java.util.prefs.FileSystemPreferences.writeBackCache(FileSystemPreferences.java:600) > at > java.util.prefs.FileSystemPreferences.syncSpiPrivileged(FileSystemPreferences.java:784) > at java.util.prefs.FileSystemPreferences.access > $2300(FileSystemPreferences.java:33) > at java.util.prefs.FileSystemPreferences > $13.run(FileSystemPreferences.java:754) > at java.security.AccessController.doPrivileged(Native Method) > at > java.util.prefs.FileSystemPreferences.syncSpi(FileSystemPreferences.java:752) > at > java.util.prefs.AbstractPreferences.sync2(AbstractPreferences.java:1317) > at > java.util.prefs.AbstractPreferences.sync(AbstractPreferences.java:1308) > at > java.util.prefs.FileSystemPreferences.sync(FileSystemPreferences.java:731) > at > java.util.prefs.FileSystemPreferences.flush(FileSystemPreferences.java:807) > at > java.util.prefs.FileSystemPreferences.syncWorld(FileSystemPreferences.java:451) > at java.util.prefs.FileSystemPreferences.access > $1200(FileSystemPreferences.java:33) > at java.util.prefs.FileSystemPreferences$5 > $1.run(FileSystemPreferences.java:429) > > Switching back to geotools 2.6.6 solved the issue. I guess there is a > new version of Xerces provided with geotools 2.7.0 that Java preferences > do not like. > > Kind regards, > Ben > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
