|
From: Kalesse S. <Soe...@dw...> - 2025-11-03 14:36:12
|
Hi Jody, that would be a disaster for many applications that had been using GeoTools as well as JAI for many years. While I agree that migration should be done, imagine how so many applications exist outside that cannot make that migration in a rush. JAI has been there for many years without an alternative and is therefore built into applications deep down at their core. It's very unlikely that each and every application can now go and replace just like that - funding, resources, testing rollout etc.. And on the other hand. Why can I not use JAI and ImageN at the same time? That's exactly the point. Both can coexist at the same time. They have their own registries and their own set of operations. I don't see why they cannot? The only problem exists when the registries intermingle, which is what happens here and what is the bug in ImageN: The Java ServiceLoader definitions of the ImageN libraries register the ImageN operations at the wrong registry (JAI). They are using the wrong interfaces. Independent of JAI / ImageN, that will not work in Java at all and must be fixed. That's what the PR tried to do. Then, it turned out that when fixing ServiceLoader it still won't work, because then operations get registered twice - of course, because ImageN seems to be using two different mechanisms at the same time for registration of operations, but the registry cannot cope with it. Something must be fixed here: 1) ServiceLoader definitions must be fixed, oherwise they will never work at all. That's Java. 2) With ServiceLoader definitions fixed, ImageN must decide to either a) support multiple ways of registration, then it must not fail to initialize if a operation was registered by some other means. b) decide to support one way of registration and go for that. My PR tries a least invasive fix, by removing the 3 wrong ServiceLoader defintions (2b). That will fix the registration and lets both ImageN and JAI live very well in one application. Thanks! Sören -----Ursprüngliche Nachricht----- Von: Jody Garnett <jod...@gm...> Gesendet: Freitag, 31. Oktober 2025 09:02 An: Kalesse Sören <ska...@ex...> Cc: GeoTools Users <geo...@li...> Betreff: Re: [Geotools-gt2-users] GeoTools 34.0 released for Java 17 with Eclipse ImageN processing engine You cannot use ImageN and JAI at the same time. ImageN is in effect JAI 2.0 - - Jody Garnett On Thu, Oct 30, 2025 at 17:29 Kalesse Sören <Soe...@dw... <mailto:Soe...@dw...> > wrote: Hi, thanks for the new release! We have noticed a problem though, that deals with environments where GeoTools (and now ImageN) and JAI are used at the same time. I have documented the issue at https://github.com/eclipse-imagen/imagen/issues/118 <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVMxOj46MS19NjklOy1ibzY7OjE7Oi14Ymxlan9+eW42OjJqPD9tMzw7Ozxoaj04OTptOj84P2g7Oz8/aj1ub29paW0+OTI9ai1/Njo8PTozMjw8Mz0temJvNj4yXTM4PU1+Ozs4MjI+Jj4yXTM4PU19Ozs4MjI+LXloe382WGRueW5lJUBqZ254eG5Lb3xvJW9uLWg2PjktY29nNjs=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fissues%2f118> and there is a PR attached https://github.com/eclipse-imagen/imagen/pull/119 <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVMxOj46MS19NjklOy1ibzY7OjE7Oi14Ymxlan9+eW42MjppODxoPW0yPDI4bmkzOTk5OTgzOjwzPmlvMmg5bj4/ajxobmpuPC1/Njo8PTozMjw8Mz0temJvNj4yXTM4PU1+Ozs4MjI+Jj4yXTM4PU19Ozs4MjI+LXloe382WGRueW5lJUBqZ254eG5Lb3xvJW9uLWg2PjktY29nNjs=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fpull%2f119> . I wonder if there's any chance the problem can be solved soon as it currently prevents us from upgrading to GeoServer 2.28.x. Thanks and Best Regards Sören -----Ursprüngliche Nachricht----- Von: Jody Garnett <jod...@gm... <mailto:jod...@gm...> > Gesendet: Mittwoch, 22. Oktober 2025 20:57 An: GeoTools Users <geo...@li... <mailto:geo...@li...> > Betreff: [Geotools-gt2-users] GeoTools 34.0 released for Java 17 with Eclipse ImageN processing engine The GeoTools team is pleased to announce the release <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVE3PDg8Nyt7MD8jPStkaTA9PDc9PCt+ZGpjbHl4f2gwazk7bj5uNG8+Oj5saW5ub2s4NT5raW5paWg+bGw+bjs0OT41azw9PCt5MDw6Ozw8ODQ1OjsrfGRpMDg0QEc5bGFpPT85NDs4IDg0QEc5bGFoPT85NDs4K39ufXkwXmJof2hjI0ZsYWh+fmhNaXppI2loK24wNT0rZWlhMD0=&url=https%3a%2f%2fgeotoolsnews.blogspot.com%2f2025%2f10%2fgeotools-340-release.html> of the latest stable version of GeoTools 34.0 <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVE3PDg8Nyt7MD8jPStkaTA9PDc9PCt+ZGpjbHl4f2gwbDU1azU5OWhpaT9sbG5rPTRuPmw9ND9rOWg7NGhuPDU9Oz88aWtsOit5MDw6Ozw8ODQ1OjsrfGRpMDg0QEc5bGFpPT85NDs4IDg0QEc5bGFoPT85NDs4K39ufXkwXmJof2hjI0ZsYWh+fmhNaXppI2loK24wOD8rZWlhMD0=&url=https%3a%2f%2fsourceforge.net%2fprojects%2fgeotools%2ffiles%2fGeoTools%252034%2520Releases%2f34.0%2f> . This release is available from the repo.osgeo.org <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVMxOj46MS19NjklOy1ibzY7OjE7Oi14Ymxlan9+eW42Om9tPT84aG4zam08Om84ODlvbTo6Oj09Mm8yOD5vP2hqOzI5bz45Py1/Njo8PTozMjw8Mz0temJvNj4yXTM4PU1+Ozs4MjI+Jj4yXTM4PU19Ozs4MjI+LXloe382WGRueW5lJUBqZ254eG5Lb3xvJW9uLWg2PjktY29nNjs=&url=http%3a%2f%2frepo.osgeo.org> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVE3PDg8Nyt7MD8jPStkaTA9PDc9PCt+ZGpjbHl4f2gwbGw0Pms+O2g7NDs/aD84NT47PjloPj48O2g6PGw7OGxpbDg+aG44byt5MDw6Ozw8ODQ1OjsrfGRpMDg0QEc5bGFpPT85NDs4IDg0QEc5bGFoPT85NDs4K39ufXkwXmJof2hjI0ZsYWh+fmhNaXppI2loK24wOD8rZWlhMD0=&url=http%3a%2f%2frepo.osgeo.org> and is made in conjunction with ImageN 0.9.0, ImageIO-Ext 2.0.0, GeoWebCache 1.28.0, and GeoServer 2.28.0. This is a major update: * The library now requires Java 17, ending support for Java 11 * Upgrade from Java Advanced Imaging Library 1.1.3 to Eclipse ImageN 0.9.0. * Library now provides a maven bill-of-materials import for both library modules and third-party-dependences making it considerably easier for downstream projects to synchronize dependences when upgrading GeoTools * For more information please see upgrade instructions <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVE3PDg8Nyt7MD8jPStkaTA9PDc9PCt+ZGpjbHl4f2gwNDk1bjo7P2s0bms0OTk9aTo+a287a2k8PzlvbjhuaTw9PjtoPj81NSt5MDw6Ozw8ODQ1OjsrfGRpMDg0QEc5bGFpPT85NDs4IDg0QEc5bGFoPT85NDs4K39ufXkwXmJof2hjI0ZsYWh+fmhNaXppI2loK24wOD8rZWlhMD0=&url=https%3a%2f%2fdocs.geotools.org%2fstable%2fuserguide%2fwelcome%2fupgrade.html> in the user manual Thanks to Jody Garnett (GeoCat) for making this release, Gabriel Roldan (Camptocamp) for all the build improvements, and Andrea Aime (GeoServer) for working so hard on the Eclipse ImageN migration. These major library updates were undertaken as part of the GeoServer 3 activities, and we would like to the crowdfunding sponsors their financial support. _______________________________________________ GeoTools-GT2-Users mailing list Geo...@li... <mailto:Geo...@li...> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVMxOj46MS19NjklOy1ibzY7OjE7Oi14Ymxlan9+eW42aW5vb2k4OT9paD1tPjlvOjppamlvaG89M288bTM8PW5qbzk6M209bS1/Njo8PTozMjw8Mz0temJvNj4yXTM4PU1+Ozs4MjI+Jj4yXTM4PU19Ozs4MjI+LXloe382WGRueW5lJUBqZ254eG5Lb3xvJW9uLWg2PjktY29nNjs=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users> |