Nope, nothing tricky in my POM. Guess I will stay at 2.6.6 for now.

Le vendredi 06 mai 2011 à 19:29 +1000, Michael Bedward a écrit :
> Ah, that's odd. I was pretty sure that JTS 1.10 had the same
> dependency on Xerces as JTS 1.11 but it doesn't look like it there.
> I'll check on that.
> 
> I guess you don't have any exclusions or other tricky bits in your
> project's pom ?
> 
> Michael
> 
> 
> 2011/5/6 Benoît Thiébault <[email protected]>:
> > When I do mvn dependency:tree on my project with geotools 2.6.6, I have
> > no dependency on xerces:
> > [INFO] +- org.geotools:gt-main:jar:2.6.6:compile
> > [INFO] |  +- org.geotools:gt-api:jar:2.6.6:compile
> > [INFO] |  +- com.vividsolutions:jts:jar:1.10:compile
> > [INFO] |  +- jdom:jdom:jar:1.0:compile
> > [INFO] |  \- commons-beanutils:commons-beanutils:jar:1.7.0:compile
> >
> > With 2.7.0, I have the following one:
> > [INFO] +- org.geotools:gt-main:jar:2.7.0:compile
> > [INFO] |  +- org.geotools:gt-api:jar:2.7.0:compile
> > [INFO] |  +- com.vividsolutions:jts:jar:1.11:compile
> > [INFO] |  |  \- xerces:xercesImpl:jar:2.4.0:compile
> > [INFO] |  \- jdom:jdom:jar:1.0:compile
> >
> > In my project, I don't use the whole geotools just:
> > <dependency>
> >                        <groupId>org.geotools</groupId>
> >                        <artifactId>gt-main</artifactId>
> >                        <version>${geotools.version}</version>
> >                </dependency>
> >                <dependency>
> >                        <groupId>org.geotools</groupId>
> >                        <artifactId>gt-shapefile</artifactId>
> >                        <version>${geotools.version}</version>
> >                </dependency>
> >                <dependency>
> >                        <groupId>org.geotools</groupId>
> >                        <artifactId>gt-epsg-hsql</artifactId>
> >                        <version>${geotools.version}</version>
> >                </dependency>
> >                <dependency>
> >            <groupId>org.geotools</groupId>
> >            <artifactId>gt-geotiff</artifactId>
> >            <version>${geotools.version}</version>
> >        </dependency>
> >        <dependency>
> >            <groupId>org.geotools</groupId>
> >            <artifactId>gt-coverage</artifactId>
> >            <version>${geotools.version}</version>
> >        </dependency>
> >
> >
> > Le vendredi 06 mai 2011 à 19:17 +1000, Michael Bedward a écrit :
> >> 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

Reply via email to