There is actually an entry in the FAQ, but I guess it needs to be updated, GeoAPI work revived in the meantime:
https://docs.geotools.org/stable/userguide/faq.html#q-relationship-with-geoapi Source of the docs is here, PRs welcomed: https://github.com/geotools/geotools/blob/master/docs/user/library/opengis/faq.rst Cheers Andrea On Sat, Nov 2, 2019 at 1:33 AM Eric Schoen <ejsch...@i2kconnect.com> wrote: > Hi, > > > > I just spent an afternoon resolving a NoSuchMethodError, and I wonder if > it would make sense to capture what I learned as an FAQ entry to help > others who might stumble into the same situation. I am using GeoTools > version 22 in a Clojure app (using Clojure’s Leiningen tool, which is a > wrapper on Maven) that also happens to link against a shaded jar containing > Apache’s tika-parsers. Unbeknownst to me, this brought in GeoAPI 3.0.1, > and GeoAPI’s implementation of org.opengis.referencing.cs.AxisDirection was > taking precedence over GeoTools’ version. This caused: > > > > java.lang.NoSuchMethodError: > org.opengis.referencing.cs.AxisDirection.absolute()Lorg/opengis/referencing/cs/AxisDirection > > > > At the time, I couldn’t find any similar issues on the places I would > normally look for help (e.g., stackoverflow) or on the geotools-gt2-users > list. After I figured out the issue, I did stumble across this almost 5 > year old thread: > http://osgeo-org.1560.x6.nabble.com/Unethical-use-of-GeoAPI-library-in-Geotools-td5188705.html > > > > Would it make sense to create an FAQ entry that suggests looking for > GeoAPI/gt-referencing conflicts in the case of unexplained > NoSuchMethodError or similar exceptions from Java? > > > > Many thanks, > > Eric Schoen > > > > > > — > > *Eric Schoen* > *CTO* > > i2k Connect > Cell: +1 (832) 605-3907 > > ejsch...@i2kconnect.com > *i2kconnect.com <http://i2kconnect.com/>* > > > > > _______________________________________________ > GeoTools-GT2-Users mailing list > GeoTools-GT2-Users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > -- Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- *Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.*
_______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users