You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(23) |
Dec
(4) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(8) |
Feb
(11) |
Mar
(14) |
Apr
(21) |
May
(43) |
Jun
(25) |
Jul
(19) |
Aug
(23) |
Sep
(26) |
Oct
(27) |
Nov
(46) |
Dec
(13) |
| 2004 |
Jan
(34) |
Feb
(20) |
Mar
(17) |
Apr
(18) |
May
(58) |
Jun
(64) |
Jul
(86) |
Aug
(50) |
Sep
(67) |
Oct
(124) |
Nov
(83) |
Dec
(159) |
| 2005 |
Jan
(127) |
Feb
(127) |
Mar
(133) |
Apr
(113) |
May
(113) |
Jun
(176) |
Jul
(182) |
Aug
(156) |
Sep
(138) |
Oct
(182) |
Nov
(148) |
Dec
(130) |
| 2006 |
Jan
(156) |
Feb
(158) |
Mar
(170) |
Apr
(114) |
May
(145) |
Jun
(135) |
Jul
(85) |
Aug
(163) |
Sep
(170) |
Oct
(180) |
Nov
(167) |
Dec
(124) |
| 2007 |
Jan
(133) |
Feb
(200) |
Mar
(193) |
Apr
(237) |
May
(154) |
Jun
(140) |
Jul
(199) |
Aug
(331) |
Sep
(123) |
Oct
(95) |
Nov
(125) |
Dec
(194) |
| 2008 |
Jan
(162) |
Feb
(148) |
Mar
(143) |
Apr
(207) |
May
(207) |
Jun
(231) |
Jul
(225) |
Aug
(178) |
Sep
(141) |
Oct
(201) |
Nov
(146) |
Dec
(124) |
| 2009 |
Jan
(232) |
Feb
(264) |
Mar
(213) |
Apr
(215) |
May
(153) |
Jun
(244) |
Jul
(71) |
Aug
(124) |
Sep
(247) |
Oct
(278) |
Nov
(155) |
Dec
(178) |
| 2010 |
Jan
(203) |
Feb
(133) |
Mar
(338) |
Apr
(226) |
May
(386) |
Jun
(385) |
Jul
(146) |
Aug
(162) |
Sep
(172) |
Oct
(72) |
Nov
(69) |
Dec
(96) |
| 2011 |
Jan
(63) |
Feb
(112) |
Mar
(235) |
Apr
(198) |
May
(260) |
Jun
(239) |
Jul
(309) |
Aug
(186) |
Sep
(140) |
Oct
(174) |
Nov
(105) |
Dec
(41) |
| 2012 |
Jan
(68) |
Feb
(132) |
Mar
(89) |
Apr
(61) |
May
(113) |
Jun
(129) |
Jul
(62) |
Aug
(144) |
Sep
(94) |
Oct
(116) |
Nov
(151) |
Dec
(57) |
| 2013 |
Jan
(101) |
Feb
(144) |
Mar
(93) |
Apr
(75) |
May
(67) |
Jun
(52) |
Jul
(64) |
Aug
(67) |
Sep
(65) |
Oct
(55) |
Nov
(26) |
Dec
(32) |
| 2014 |
Jan
(38) |
Feb
(40) |
Mar
(40) |
Apr
(43) |
May
(28) |
Jun
(50) |
Jul
(79) |
Aug
(90) |
Sep
(75) |
Oct
(45) |
Nov
(62) |
Dec
(49) |
| 2015 |
Jan
(40) |
Feb
(64) |
Mar
(80) |
Apr
(43) |
May
(49) |
Jun
(46) |
Jul
(23) |
Aug
(69) |
Sep
(49) |
Oct
(61) |
Nov
(43) |
Dec
(33) |
| 2016 |
Jan
(15) |
Feb
(63) |
Mar
(40) |
Apr
(56) |
May
(43) |
Jun
(35) |
Jul
(41) |
Aug
(35) |
Sep
(10) |
Oct
(41) |
Nov
(39) |
Dec
(37) |
| 2017 |
Jan
(57) |
Feb
(19) |
Mar
(36) |
Apr
(8) |
May
(19) |
Jun
(17) |
Jul
(9) |
Aug
(18) |
Sep
(19) |
Oct
(17) |
Nov
(4) |
Dec
(13) |
| 2018 |
Jan
(17) |
Feb
(15) |
Mar
(23) |
Apr
(22) |
May
(5) |
Jun
(3) |
Jul
(30) |
Aug
(10) |
Sep
(20) |
Oct
(12) |
Nov
(1) |
Dec
(9) |
| 2019 |
Jan
(13) |
Feb
(19) |
Mar
(34) |
Apr
(16) |
May
(14) |
Jun
(10) |
Jul
(21) |
Aug
(25) |
Sep
(22) |
Oct
(3) |
Nov
(10) |
Dec
(8) |
| 2020 |
Jan
|
Feb
(19) |
Mar
(3) |
Apr
(51) |
May
(5) |
Jun
(12) |
Jul
(16) |
Aug
(15) |
Sep
(7) |
Oct
(16) |
Nov
(24) |
Dec
(24) |
| 2021 |
Jan
(11) |
Feb
(27) |
Mar
(14) |
Apr
(14) |
May
(3) |
Jun
(11) |
Jul
(8) |
Aug
(8) |
Sep
(15) |
Oct
(24) |
Nov
(11) |
Dec
(2) |
| 2022 |
Jan
(6) |
Feb
(14) |
Mar
(1) |
Apr
(9) |
May
(4) |
Jun
(3) |
Jul
(4) |
Aug
(4) |
Sep
(17) |
Oct
(5) |
Nov
(15) |
Dec
(4) |
| 2023 |
Jan
(7) |
Feb
(16) |
Mar
(9) |
Apr
(13) |
May
(15) |
Jun
(7) |
Jul
(8) |
Aug
(3) |
Sep
(3) |
Oct
(13) |
Nov
(4) |
Dec
(8) |
| 2024 |
Jan
(9) |
Feb
(10) |
Mar
(6) |
Apr
(3) |
May
(7) |
Jun
(7) |
Jul
(7) |
Aug
(5) |
Sep
|
Oct
(6) |
Nov
(1) |
Dec
|
| 2025 |
Jan
(3) |
Feb
(1) |
Mar
(5) |
Apr
|
May
(1) |
Jun
(1) |
Jul
(1) |
Aug
(6) |
Sep
(4) |
Oct
(4) |
Nov
(8) |
Dec
|
|
From: Kalesse S. <Soe...@dw...> - 2025-11-12 09:59:35
|
Hi Jody and Andrea, I just wanted to give you an update on the progress. I have made these three tickets and PRs: - [ImageN Ticket](https://github.com/eclipse-imagen/imagen/issues/118) --> [ImageN PR](https://github.com/eclipse-imagen/imagen/pull/121) - [GeoTools Ticket](https://osgeo-org.atlassian.net/browse/GEOT-7832) --> [GeoTools PR](https://github.com/geotools/geotools/pull/5414) - [GeoServer Ticket](https://osgeo-org.atlassian.net/browse/GEOS-11987) --> [GeoServer PR](https://github.com/geoserver/geoserver/pull/8935) The first is the change of names and registry in ImageN. The latter two are preparing the update to ImageN 0.9.1 that might hopefully include a fix for this problem - once in GeoTools and once in GeoServer. I have marked the latter as draft, because they can only be tackled once a new ImageN version would be available. Thanks Sören -----Ursprüngliche Nachricht----- Von: Kalesse Sören <ska...@ex...> Gesendet: Donnerstag, 6. November 2025 15:44 An: Kalesse Sören <ska...@ex...>; 'Jody Garnett' <jod...@gm...> Cc: GeoTools Users <geo...@li...> Betreff: AW: [Geotools-gt2-users] GeoTools 34.0 released for Java 17 with Eclipse ImageN processing engine Hi Jody, I have made that PR for ImageN now, see https://github.com/eclipse-imagen/imagen/pull/121. I have branches on my fork for GeoTools and GeoServer as well, but I would probably have to wait for a new ImageN release and make some JIRA tickets first as well right? All of ImageN compiled and test-cases run successfully. I also tried locally and was able to verify that GeoTools and GeoServer are using the new scheme correctly. Infact it was one test-case in GeoTools that failed with the new lib, and was repaired by also switching the naming scheme there. So we know that it should work once I make my PRs for GeoTools and GeoServer. Thanks! Sören -----Ursprüngliche Nachricht----- Von: Kalesse Sören <Soe...@dw...> Gesendet: Donnerstag, 6. November 2025 12:01 An: 'Jody Garnett' <jod...@gm...> Cc: GeoTools Users <geo...@li...> Betreff: Re: [Geotools-gt2-users] GeoTools 34.0 released for Java 17 with Eclipse ImageN processing engine Hi Jody, I cannot judge about that. I have done a quick check and it seems GeoTools has two operators (in gt-coverage and gt-process-raster) and GeoServer has one in wps-download. I can make Prs for those too if you want. Still, I think that this renaming task of the registry files is unrelated to the actual problem. I hope that we can agree on that. Btw, out of curiosity I have checked JAI-EXT and it turns out that it has the same problem. I have looked at GeoServer 2.27.3 that still uses JAI and JAI-EXT: - jt-jiffle and jt-vectorize have invalid ServiceLoader interface definitions similar too ImageN. Therefore these are ignored by JAI (Jai-ext seems to use the JAI operation registry) - jt-crop that the correct ServiceLoader interface, so in theory we would expect it to crash because it has both registryFile AND ServiceLoader. But for some extremely odd reasons, in jt-crop the registryFile is called registryFile.jaiext. Therefore, here in this case the registryFile is ignored by JAI (it does not know anything about the jaiext file extension). So it looks these problems have been ported over from JAI-EXT, but since in any case only one of the registration schemes actually works, the problem is hidden. Sören -----Ursprüngliche Nachricht----- Von: Jody Garnett <jod...@gm...> Gesendet: Mittwoch, 5. November 2025 16:16 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 Because ImageN is so new I do it think other projects have implemented operators yet to be registered? - - Jody Garnett On Wed, Nov 5, 2025 at 4:08 AM Kalesse Sören <Soe...@dw... <mailto:Soe...@dw...> > wrote: Hi again, after reading my previous e-mail I believe maybe an example would make it clearer. Let's go by the ImageN crop example (although the same argumentation is valid also for the other two (jiffle and vectorize)). So let's assume at first that both ImageN and JAI work well individually with the two mechanisms of registration: the (JAI/ImageN) registryFile and Java ServiceLoader. Then, let's look at crops's resources on the ImageN main branch. We have: RegistryFile: modules/crop/src/main/resources/META-INF/registryFile.jai (stripped of comments): --------------------------------------------------------------------------------------------------------------------------- descriptor org.eclipse.imagen.media.crop.CropDescriptor rendered org.eclipse.imagen.media.crop.CropCRIF org.eclipse.imagen.media Crop Crop and we have the Java ServiceLoader definition: modules/crop/src/main/resources/META-INF/services/javax.media.jai.OperationRegistrySpi: --------------------------------------------------------------------------------------------------------------------------- org.eclipse.imagen.media.crop.CropSpi The most obvious thing here is that the Java ServiceLoader definition is wrong, because CropSpi does not implement the javax.media.jai.OperationRegistrySpi interface. If we use only ImageN in our application, we will not notice the problem. ImageN is simply ignoring that ServiceLoader definition, because the interface is unknown to ImageN. BUT this will crash JAI, because ServiceLoader in JAI throws a ClassCastException given that definition. Now, as proposed, we could (and should) fix this by renaming modules/crop/src/main/resources/META-INF/services/javax.media.jai.OperationRegistrySpi to modules/crop/src/main/resources/META-INF/services/org.eclipse.imagen.OperationRegistrySpi. That now pleases JAI, because JAI does not know that new (ImageN) interface. Great! So now all should be good? NO! Because now we have this: RegistryFile: modules/crop/src/main/resources/META-INF/registryFile.jai (stripped of comments): --------------------------------------------------------------------------------------------------------------------------- descriptor org.eclipse.imagen.media.crop.CropDescriptor rendered org.eclipse.imagen.media.crop.CropCRIF org.eclipse.imagen.media Crop Crop and we have the fixed Java ServiceLoader definition: modules/crop/src/main/resources/META-INF/services/org.eclipse.imagen.OperationRegistrySpi: --------------------------------------------------------------------------------------------------------------------------- org.eclipse.imagen.media.crop.CropSpi Technically everything looks fine, BUT ImageN will no longer initialize, because we apply the two types of registration schemes at once. With this, what happens is that the Crop operation gets registered once using registryFile, and then ImageN tries again using ServiceLoader, because now the definition is no longer ignored. And this is the core problem. The wrong ServiceLoader definition files on main branch are simply hiding the problem, because ImageN will ignore them, but if we fix them to be correct, then ImageN will fail to initialize, because Crop is already there. The same argumentation goes for jiffle and vectorize, because those two also have (wrong) Java ServiceLoader definitions. So fixing them too, will result in the same problem of failing initialization. And last but not least, the reason for all other libraries to not fail, is that none of the other libraries have Java ServiceLoader definitions at all. That as the reason why my initial PR#119 simply removed the three ServiceLoader definitions from crop, jiffle and vectorize. Does that better illustrate the problem? ==== Now another topic: should we rename registryFile.jai --> registryFile.imagen ======= Maybe it should be done to make a more explicit distinction between ImageN and JAI registration. It should be noted though that the renaming is a breaking change for everyone using ImageN, because for example GeoTools/GeoServer and other applications that have their own ImageN operators implemented will have to switch to that new naming scheme. But, yeah, maybe it's worth the effort - I don't know. What I want to emphasize though is that I have tried locally with the wrong ServiceLoader definitions removed from ImageN. I ran GeoServer 2.28.0 that is now based on ImageN with some of our custom JAI operators that are still based on JAI 1.1.3. First, now both ImageN and JAI initialized correctly and I was able to successfully run WMS queries (which should prove that ImageN is working correctly) and I could also verify that our own custom JAI operators are working as well. My assumption based on that test is that it does not seem to matter too much how these registry files are named. It seems both, ImageN as well as JAI can cope with either and probably filtering the operations by the definitions they support. Of course I can currently not prove that by the same names, both work correctly, but that was my first try. Maybe a JAI/ImageN interoperability Test-case could prove. I don't know. But to summarize the current discussion. Whether or not the registry files should be renamed, does not relate to that other issue I presented in the first part of the e-mail. I hope, by this report, my argumentation becomes clearer. Sorry for that long wall of text. Thanks! Sören -----Ursprüngliche Nachricht----- Von: Kalesse Sören <Soe...@dw... <mailto:Soe...@dw...> > Gesendet: Mittwoch, 5. November 2025 10:55 An: Jody Garnett <jod...@gm... <mailto:jod...@gm...> > Cc: GeoTools Users <geo...@li... <mailto:geo...@li...> > Betreff: Re: [Geotools-gt2-users] GeoTools 34.0 released for Java 17 with Eclipse ImageN processing engine Hi Jody, Ok, I can make a PR, but with that all renaming happening, it'll be quite some big change and probably PRs needed for GeoTools and GeoServer as well, right? ... and all other libs that are already using ImageN. I am very sorry but I really need to emphasize again, that the registry files are not the problem here! ImageN and JAI seem to be able to cope with them even though they have the same name (registryFile.jai). I have tested it locally running ImageN and JAI in the same application and they do not interfere at all. I was able to run GeoServer 2.28.0 that uses ImageN and still use our own JAI operators based on JAI core 1.1.3 without any problems at all. Really, the problem here are those invalid Java ServiceLoader definitions. modules/crop/src/main/resources/META-INF/services/javax.media.jai.OperationRegistrySpi modules/jiffle/jt-jiffle-op/src/main/resources/META-INF/services/javax.media.jai.OperationsRegistrySpi modules/vectorize/src/main/resources/META-INF/services/javax.media.jai.OperationsRegistrySpi The first one (crop) tries registering at JAI operation registry, which is wrong. This will cause a ClassCastException in JAI. The other two (jiffle and vectorize) try the same thing but even worse, the interface names are wrong --> OperationsRegistrySpi vs. OperationRegistrySpi. So these two will simply be ignored, because that interface does not exist. I could fix the names of the ServiceLoader definitions --> org.eclipse.imagen.OperationRegistrySpi. That would please Java at least. So that's good, but ImageN will no longer work, because as mentioned earlier, ImageN registry cannot currently not deal with two mechanisms being in place at the same time. Fixing the names will do this (Example taken from the Jiffle test cases): [ERROR] org.eclipse.imagen.media.jiffleop.NoSourceTest.createSequentialImage -- Time elapsed: 0 s <<< ERROR! java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.imagen.ImageN at org.eclipse.imagen.media.jiffleop.NoSourceTest.reset(NoSourceTest.java:82) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.RunAfters.invokeMethod(RunAfters.java:46) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.IllegalArgumentException: A descriptor is already registered against the name "Jiffle" under registry mode "rendered" [in thread "main"] at org.eclipse.imagen.DescriptorCache.addDescriptor(DescriptorCache.java:144) at org.eclipse.imagen.OperationRegistry.registerDescriptor(OperationRegistry.java:580) at org.eclipse.imagen.ThreadSafeOperationRegistry.registerDescriptor(ThreadSafeOperationRegistry.java:156) at org.eclipse.imagen.media.jiffleop.JiffleSpi.updateRegistry(JiffleSpi.java:73) at org.eclipse.imagen.OperationRegistry.registerServices(OperationRegistry.java:1556) at org.eclipse.imagen.ThreadSafeOperationRegistry.registerServices(ThreadSafeOperationRegistry.java:529) at org.eclipse.imagen.OperationRegistry.initializeRegistry(OperationRegistry.java:311) at org.eclipse.imagen.ImageN.<clinit>(ImageN.java:351) The descriptor cache does not allow an operation to be registered twice. That is why I am saying that fixing the ServiceLoader definitions won't help at all. The only options I see is: 1. make descriptor cache support registry definitions coming from multiple places at the same time ---> I am not sure if that's really a good idea 2. remove the ServiceLoader definitions from those three libs I am wondering anyway, why is it that only those three libs do have ServiceLoader files at all? What about the other libs? Not a single other lib has any ServiceLoader definition at all. My PR#119 did exactly that. It removed the ServiceLoader definitions from those three libs. That's all it did and that fixed it all. No renaming of registryFile.jai required. To summarize: ============ I can make a PR that renames all registryFile.jai --> registryFile.imagen and changes the ImageN registry to use those instead - no problem. But that will not help with the initial problem, we need to deal with those ServiceLoader files - fixing their names to match the correct interface will not help. On the contrary, it will make it worse, because ImageN will no longer initialize, because it cannot handle both (registryFile.[jai|imagen] and ServiceLoader) at the same time. My proposal is to go by the initial PR and remove the ServiceLoader files all together for these three modules that have them (crop, jiffle, vectorize). What do you think? Thanks Sören -----Ursprüngliche Nachricht----- Von: Jody Garnett <jod...@gm... <mailto:jod...@gm...> > Gesendet: Mittwoch, 5. November 2025 02:47 An: Kalesse Sören <ska...@ex... <mailto:ska...@ex...> > Cc: GeoTools Users <geo...@li... <mailto:geo...@li...> > Betreff: Re: [Geotools-gt2-users] GeoTools 34.0 released for Java 17 with Eclipse ImageN processing engine So ideally we should fix the invalid definitions, and rename the files to end with “imagen”. If you make a PR I am willing to do a 0.9.1 relate; and Gabe offered to make a geotools release on schedule next week. - - Jody Garnett On Mon, Nov 3, 2025 at 11:12 PM Kalesse Sören <Soe...@dw... <mailto:Soe...@dw...> <mailto:Soe...@dw... <mailto:Soe...@dw...> > > wrote: Hi Andrea, That's exactly my point. I do assume that it was not intended for these two to coexist, but it should just work fine because there are two different registries and the operations interfaces are different, so in theory these two do not collide at all. That gives all users a good "workaround" to live with until applications and libraries have succeeded to migrate. And that's also exactly where my PR comes in. The three mentioned ImageN libraries (and only those three!) contain ServiceLoader definitions that are wrong. The register the ImageN operations at the JAI registry. That leads to class cast exceptions (wrong interfaces). That's the point that must definitely be fixed whatsoever. Now that fixed, here arises the second aspect: Right now you cannot mix standard ImageN and ServiceLoader registration. ImageN does not support that. It will fail to initialize if one operation had already been registered by that other means. So you must decide: either support multiple ways of registration in the ImageN core or decide upon one and let it go. Therefore my PR removes the three ServiceLoader definitions: 1) because they were wrong and 2) because that is the least invasive fix to make ImageN initialize correctly. The PR#119 was tested locally running GeoServer 2.2.8.0 and another application that uses JAI and it worked just fine. I hope you can agree that this is a proper fix and should be part in one of the next releases. For us it is a show-stopper for upgrading to GT 33.x / GS 2.28.x. Thanks! Sören -----Ursprüngliche Nachricht----- Von: Andrea Aime <and...@ge... <mailto:and...@ge...> <mailto:and...@ge... <mailto:and...@ge...> > > Gesendet: Freitag, 31. Oktober 2025 15:25 An: Kalesse Sören <ska...@ex... <mailto:ska...@ex...> <mailto:ska...@ex... <mailto:ska...@ex...> > > Cc: GeoTools Users <geo...@li... <mailto:geo...@li...> <mailto:geo...@li... <mailto:geo...@li...> > > Betreff: Re: [Geotools-gt2-users] GeoTools 34.0 released for Java 17 with Eclipse ImageN processing engine Hi, I second what Jody said, there was no plan to make the coexist, it's an upgrade path. However... I believe that a coexistence could be possible, the java packages are different, so by having ImageN use a different file name for the registry files in META-INF, from registryFile.jai to registryFile.imagen, a coexistence might be possible, even if likely wasteful (two separate image processing caches in memory are not the greatest of ideas). A coexistence is just not in our plans, but since ImageN is not yet available as 1.0, if DWD wants to put the development effort to get it done, I would not be against it. I see this applicable to the GeoServer 3.0 series. I would recommend switching existing software to ImageN though, we prepared migration scripts that should help in the endeavor. Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://bit.ly/gs-services-us <http://bit.ly/gs-services-us> for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions Group phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszP2s2ODk/Nm04PGs2b29vODk6Oj1tNj5rOG9tbG1qOG9sbDtqaG06aCh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2fwww.geosolutionsgroup.com%2f <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0bTs+Ozo+bDtqajtqMDsxPT1qOmg5PD49MDE+Omwwam0xMWprbzE4Oy99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2fwww.geosolutionsgroup.com%2f> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+Ozs6OjQ2MTAyM2Y1MDU1NjQxZzFiOzUwMWA0ZjAwZzQwNzA6ZTY2NCV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&url=https%3a%2f%2fwww.geosolutionsgroup.com%2f> https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszNmpqbG1sO2g5ajhsOT1rOjo9PG0+PW9sbWw2PW06PW06Oz88ajo5aCh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zPTkoZmpiMz4=&url=http%3a%2f%2ftwitter.com%2fgeosolutions_it <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0PWg9bW1obzFqaGpsPz5sbToxa2xrPjA9PW06PDBobDk5bG09a2s5bS99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0Oj4vYW1lNDk=&url=http%3a%2f%2ftwitter.com%2fgeosolutions_it> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+MDplNTQ7ZzM6YTozNmU7NGY1OjtmZzdnYTIzYjIwYmJmNGU2MDBgZiV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+MDQla2dvPjM=&url=http%3a%2f%2ftwitter.com%2fgeosolutions_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 On Thu, Oct 30, 2025 at 5:29 PM Kalesse Sören <Soe...@dw... <mailto:Soe...@dw...> <mailto:Soe...@dw... <mailto:Soe...@dw...> > <mailto:Soe...@dw... <mailto:Soe...@dw...> <mailto: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://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszb2tqOmw5bDo6Nz45OWhoPTc7PjY/PT89ajo+Pjo5a285azttPD8/bSh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fissues%2f118 <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0MDs9azlvOT0+bT1oa2s7aGgwamxqPzAwbDs8OmxrPj88MD4+azo9PS99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fissues%2f118> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+NDE1YDExNTs1ZjpnNTEwZzIyZmU7NmE7O2ZmZWFgYjJnMzA0NmY1NSV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fissues%2f118> and there is a PR attached https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszOmxrOTdqams6Ozk/OTs3PGg7PTo9Oj1qN2s2Nm84Pms2OTw2Pm0/PSh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fpull%2f119 <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0ajxsOGtoaj9sbzs9ODhvOG1qaDFqbTowPTg8Pzs4PWhoOzs/OT1vPi99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fpull%2f119> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+ZmVgNDplZTRlYWY0NWUzZ2BlMjA3M2UzZTU1MGdmNjQ6Zzc1MGdnNyV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&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...> <mailto:jod...@gm... <mailto:jod...@gm...> > <mailto:jod...@gm... <mailto:jod...@gm...> <mailto:jod...@gm... <mailto:jod...@gm...> > > > Gesendet: Mittwoch, 22. Oktober 2025 20:57 An: GeoTools Users <geo...@li... <mailto:geo...@li...> <mailto:geo...@li... <mailto:geo...@li...> > <mailto:geo...@li... <mailto:geo...@li...> <mailto: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:JVw4MzczOCR0PzAsMiRrZj8yMzgyMyRxa2VsY3Z3cGc/ZGA6MTE6NGEzZzthNTIwZ2AzOjFkNjQxNjVgMjsxOzQ1NWcwMTc1OiR2PzM1NDAxNzc6MzIkc2tmPzdDN0RFbXNxMjM2OzQ6LzdDN0RFbXN2MjM2OzQ6JHBhcnY/UW1ncGdsLEljbmdxcWdCZnVmLGZnJGE/NzAkamZuPzI=&url=http%3a%2f%2frepo.osgeo.org> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0PWtvPTBobDk6Pjs/MDloPDg7aGhsbTs4bTBsaz9sOjkxPWxoaGw5bC99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=http%3a%2f%2frepo.osgeo.org> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+YGFhNzE3MmAxNDM1YmJlNjNhOzpiYTpiYjc6NGU6N2BiNTRiOjQyZiV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&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...> <mailto:Geo...@li... <mailto:Geo...@li...> > <mailto:Geo...@li... <mailto:Geo...@li...> <mailto:Geo...@li... <mailto:Geo...@li...> > > https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszPjZvNj46OTw7OTc/Ozs4aDc+PDttO21oPDxrPmg7OGpvazdob283Pyh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0PG88aDw7OW05Pj5rPGs5MTgwMG8xOTs/MG87Pj86aD4/PD86bTtqOS99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+Zmc0OmBnYDViNTA1NDdmMzMyNTQ6ZmIxYmcxNTJnNTMyNGJiNDU2NiV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users> _______________________________________________ GeoTools-GT2-Users mailing list Geo...@li... <mailto:Geo...@li...> <mailto:Geo...@li... <mailto:Geo...@li...> > https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszPjZvNj46OTw7OTc/Ozs4aDc+PDttO21oPDxrPmg7OGpvazdob283Pyh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0PG88aDw7OW05Pj5rPGs5MTgwMG8xOTs/MG87Pj86aD4/PD86bTtqOS99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users> _______________________________________________ GeoTools-GT2-Users mailing list Geo...@li... <mailto:Geo...@li...> https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszPjZvNj46OTw7OTc/Ozs4aDc+PDttO21oPDxrPmg7OGpvazdob283Pyh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users _______________________________________________ GeoTools-GT2-Users mailing list Geo...@li... https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVw4MzczOCR0PzAsMiRrZj8yMzgyMyRxa2VsY3Z3cGc/YTQ6NjAxZDMyMjc1YzEwZjdjZ2RmNDJhZjVmOzQzYzQxY2Q6NjczMiR2PzM1NDA2MDUyMzQkc2tmPzdDNEAxY2BLMjA2Mjs1LzdDNEAxY2BIMjA2Mjs1JHBhcnY/UW1ncGdsLEljbmdxcWdCZnVmLGZnJGE/NzAkamZuPzI=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users |
|
From: Kalesse S. <Soe...@dw...> - 2025-11-06 14:51:20
|
Hi Jody, I have made that PR for ImageN now, see https://github.com/eclipse-imagen/imagen/pull/121. I have branches on my fork for GeoTools and GeoServer as well, but I would probably have to wait for a new ImageN release and make some JIRA tickets first as well right? All of ImageN compiled and test-cases run successfully. I also tried locally and was able to verify that GeoTools and GeoServer are using the new scheme correctly. Infact it was one test-case in GeoTools that failed with the new lib, and was repaired by also switching the naming scheme there. So we know that it should work once I make my PRs for GeoTools and GeoServer. Thanks! Sören -----Ursprüngliche Nachricht----- Von: Kalesse Sören <Soe...@dw...> Gesendet: Donnerstag, 6. November 2025 12:01 An: 'Jody Garnett' <jod...@gm...> Cc: GeoTools Users <geo...@li...> Betreff: Re: [Geotools-gt2-users] GeoTools 34.0 released for Java 17 with Eclipse ImageN processing engine Hi Jody, I cannot judge about that. I have done a quick check and it seems GeoTools has two operators (in gt-coverage and gt-process-raster) and GeoServer has one in wps-download. I can make Prs for those too if you want. Still, I think that this renaming task of the registry files is unrelated to the actual problem. I hope that we can agree on that. Btw, out of curiosity I have checked JAI-EXT and it turns out that it has the same problem. I have looked at GeoServer 2.27.3 that still uses JAI and JAI-EXT: - jt-jiffle and jt-vectorize have invalid ServiceLoader interface definitions similar too ImageN. Therefore these are ignored by JAI (Jai-ext seems to use the JAI operation registry) - jt-crop that the correct ServiceLoader interface, so in theory we would expect it to crash because it has both registryFile AND ServiceLoader. But for some extremely odd reasons, in jt-crop the registryFile is called registryFile.jaiext. Therefore, here in this case the registryFile is ignored by JAI (it does not know anything about the jaiext file extension). So it looks these problems have been ported over from JAI-EXT, but since in any case only one of the registration schemes actually works, the problem is hidden. Sören -----Ursprüngliche Nachricht----- Von: Jody Garnett <jod...@gm...> Gesendet: Mittwoch, 5. November 2025 16:16 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 Because ImageN is so new I do it think other projects have implemented operators yet to be registered? - - Jody Garnett On Wed, Nov 5, 2025 at 4:08 AM Kalesse Sören <Soe...@dw... <mailto:Soe...@dw...> > wrote: Hi again, after reading my previous e-mail I believe maybe an example would make it clearer. Let's go by the ImageN crop example (although the same argumentation is valid also for the other two (jiffle and vectorize)). So let's assume at first that both ImageN and JAI work well individually with the two mechanisms of registration: the (JAI/ImageN) registryFile and Java ServiceLoader. Then, let's look at crops's resources on the ImageN main branch. We have: RegistryFile: modules/crop/src/main/resources/META-INF/registryFile.jai (stripped of comments): --------------------------------------------------------------------------------------------------------------------------- descriptor org.eclipse.imagen.media.crop.CropDescriptor rendered org.eclipse.imagen.media.crop.CropCRIF org.eclipse.imagen.media Crop Crop and we have the Java ServiceLoader definition: modules/crop/src/main/resources/META-INF/services/javax.media.jai.OperationRegistrySpi: --------------------------------------------------------------------------------------------------------------------------- org.eclipse.imagen.media.crop.CropSpi The most obvious thing here is that the Java ServiceLoader definition is wrong, because CropSpi does not implement the javax.media.jai.OperationRegistrySpi interface. If we use only ImageN in our application, we will not notice the problem. ImageN is simply ignoring that ServiceLoader definition, because the interface is unknown to ImageN. BUT this will crash JAI, because ServiceLoader in JAI throws a ClassCastException given that definition. Now, as proposed, we could (and should) fix this by renaming modules/crop/src/main/resources/META-INF/services/javax.media.jai.OperationRegistrySpi to modules/crop/src/main/resources/META-INF/services/org.eclipse.imagen.OperationRegistrySpi. That now pleases JAI, because JAI does not know that new (ImageN) interface. Great! So now all should be good? NO! Because now we have this: RegistryFile: modules/crop/src/main/resources/META-INF/registryFile.jai (stripped of comments): --------------------------------------------------------------------------------------------------------------------------- descriptor org.eclipse.imagen.media.crop.CropDescriptor rendered org.eclipse.imagen.media.crop.CropCRIF org.eclipse.imagen.media Crop Crop and we have the fixed Java ServiceLoader definition: modules/crop/src/main/resources/META-INF/services/org.eclipse.imagen.OperationRegistrySpi: --------------------------------------------------------------------------------------------------------------------------- org.eclipse.imagen.media.crop.CropSpi Technically everything looks fine, BUT ImageN will no longer initialize, because we apply the two types of registration schemes at once. With this, what happens is that the Crop operation gets registered once using registryFile, and then ImageN tries again using ServiceLoader, because now the definition is no longer ignored. And this is the core problem. The wrong ServiceLoader definition files on main branch are simply hiding the problem, because ImageN will ignore them, but if we fix them to be correct, then ImageN will fail to initialize, because Crop is already there. The same argumentation goes for jiffle and vectorize, because those two also have (wrong) Java ServiceLoader definitions. So fixing them too, will result in the same problem of failing initialization. And last but not least, the reason for all other libraries to not fail, is that none of the other libraries have Java ServiceLoader definitions at all. That as the reason why my initial PR#119 simply removed the three ServiceLoader definitions from crop, jiffle and vectorize. Does that better illustrate the problem? ==== Now another topic: should we rename registryFile.jai --> registryFile.imagen ======= Maybe it should be done to make a more explicit distinction between ImageN and JAI registration. It should be noted though that the renaming is a breaking change for everyone using ImageN, because for example GeoTools/GeoServer and other applications that have their own ImageN operators implemented will have to switch to that new naming scheme. But, yeah, maybe it's worth the effort - I don't know. What I want to emphasize though is that I have tried locally with the wrong ServiceLoader definitions removed from ImageN. I ran GeoServer 2.28.0 that is now based on ImageN with some of our custom JAI operators that are still based on JAI 1.1.3. First, now both ImageN and JAI initialized correctly and I was able to successfully run WMS queries (which should prove that ImageN is working correctly) and I could also verify that our own custom JAI operators are working as well. My assumption based on that test is that it does not seem to matter too much how these registry files are named. It seems both, ImageN as well as JAI can cope with either and probably filtering the operations by the definitions they support. Of course I can currently not prove that by the same names, both work correctly, but that was my first try. Maybe a JAI/ImageN interoperability Test-case could prove. I don't know. But to summarize the current discussion. Whether or not the registry files should be renamed, does not relate to that other issue I presented in the first part of the e-mail. I hope, by this report, my argumentation becomes clearer. Sorry for that long wall of text. Thanks! Sören -----Ursprüngliche Nachricht----- Von: Kalesse Sören <Soe...@dw... <mailto:Soe...@dw...> > Gesendet: Mittwoch, 5. November 2025 10:55 An: Jody Garnett <jod...@gm... <mailto:jod...@gm...> > Cc: GeoTools Users <geo...@li... <mailto:geo...@li...> > Betreff: Re: [Geotools-gt2-users] GeoTools 34.0 released for Java 17 with Eclipse ImageN processing engine Hi Jody, Ok, I can make a PR, but with that all renaming happening, it'll be quite some big change and probably PRs needed for GeoTools and GeoServer as well, right? ... and all other libs that are already using ImageN. I am very sorry but I really need to emphasize again, that the registry files are not the problem here! ImageN and JAI seem to be able to cope with them even though they have the same name (registryFile.jai). I have tested it locally running ImageN and JAI in the same application and they do not interfere at all. I was able to run GeoServer 2.28.0 that uses ImageN and still use our own JAI operators based on JAI core 1.1.3 without any problems at all. Really, the problem here are those invalid Java ServiceLoader definitions. modules/crop/src/main/resources/META-INF/services/javax.media.jai.OperationRegistrySpi modules/jiffle/jt-jiffle-op/src/main/resources/META-INF/services/javax.media.jai.OperationsRegistrySpi modules/vectorize/src/main/resources/META-INF/services/javax.media.jai.OperationsRegistrySpi The first one (crop) tries registering at JAI operation registry, which is wrong. This will cause a ClassCastException in JAI. The other two (jiffle and vectorize) try the same thing but even worse, the interface names are wrong --> OperationsRegistrySpi vs. OperationRegistrySpi. So these two will simply be ignored, because that interface does not exist. I could fix the names of the ServiceLoader definitions --> org.eclipse.imagen.OperationRegistrySpi. That would please Java at least. So that's good, but ImageN will no longer work, because as mentioned earlier, ImageN registry cannot currently not deal with two mechanisms being in place at the same time. Fixing the names will do this (Example taken from the Jiffle test cases): [ERROR] org.eclipse.imagen.media.jiffleop.NoSourceTest.createSequentialImage -- Time elapsed: 0 s <<< ERROR! java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.imagen.ImageN at org.eclipse.imagen.media.jiffleop.NoSourceTest.reset(NoSourceTest.java:82) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.RunAfters.invokeMethod(RunAfters.java:46) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.IllegalArgumentException: A descriptor is already registered against the name "Jiffle" under registry mode "rendered" [in thread "main"] at org.eclipse.imagen.DescriptorCache.addDescriptor(DescriptorCache.java:144) at org.eclipse.imagen.OperationRegistry.registerDescriptor(OperationRegistry.java:580) at org.eclipse.imagen.ThreadSafeOperationRegistry.registerDescriptor(ThreadSafeOperationRegistry.java:156) at org.eclipse.imagen.media.jiffleop.JiffleSpi.updateRegistry(JiffleSpi.java:73) at org.eclipse.imagen.OperationRegistry.registerServices(OperationRegistry.java:1556) at org.eclipse.imagen.ThreadSafeOperationRegistry.registerServices(ThreadSafeOperationRegistry.java:529) at org.eclipse.imagen.OperationRegistry.initializeRegistry(OperationRegistry.java:311) at org.eclipse.imagen.ImageN.<clinit>(ImageN.java:351) The descriptor cache does not allow an operation to be registered twice. That is why I am saying that fixing the ServiceLoader definitions won't help at all. The only options I see is: 1. make descriptor cache support registry definitions coming from multiple places at the same time ---> I am not sure if that's really a good idea 2. remove the ServiceLoader definitions from those three libs I am wondering anyway, why is it that only those three libs do have ServiceLoader files at all? What about the other libs? Not a single other lib has any ServiceLoader definition at all. My PR#119 did exactly that. It removed the ServiceLoader definitions from those three libs. That's all it did and that fixed it all. No renaming of registryFile.jai required. To summarize: ============ I can make a PR that renames all registryFile.jai --> registryFile.imagen and changes the ImageN registry to use those instead - no problem. But that will not help with the initial problem, we need to deal with those ServiceLoader files - fixing their names to match the correct interface will not help. On the contrary, it will make it worse, because ImageN will no longer initialize, because it cannot handle both (registryFile.[jai|imagen] and ServiceLoader) at the same time. My proposal is to go by the initial PR and remove the ServiceLoader files all together for these three modules that have them (crop, jiffle, vectorize). What do you think? Thanks Sören -----Ursprüngliche Nachricht----- Von: Jody Garnett <jod...@gm... <mailto:jod...@gm...> > Gesendet: Mittwoch, 5. November 2025 02:47 An: Kalesse Sören <ska...@ex... <mailto:ska...@ex...> > Cc: GeoTools Users <geo...@li... <mailto:geo...@li...> > Betreff: Re: [Geotools-gt2-users] GeoTools 34.0 released for Java 17 with Eclipse ImageN processing engine So ideally we should fix the invalid definitions, and rename the files to end with “imagen”. If you make a PR I am willing to do a 0.9.1 relate; and Gabe offered to make a geotools release on schedule next week. - - Jody Garnett On Mon, Nov 3, 2025 at 11:12 PM Kalesse Sören <Soe...@dw... <mailto:Soe...@dw...> <mailto:Soe...@dw... <mailto:Soe...@dw...> > > wrote: Hi Andrea, That's exactly my point. I do assume that it was not intended for these two to coexist, but it should just work fine because there are two different registries and the operations interfaces are different, so in theory these two do not collide at all. That gives all users a good "workaround" to live with until applications and libraries have succeeded to migrate. And that's also exactly where my PR comes in. The three mentioned ImageN libraries (and only those three!) contain ServiceLoader definitions that are wrong. The register the ImageN operations at the JAI registry. That leads to class cast exceptions (wrong interfaces). That's the point that must definitely be fixed whatsoever. Now that fixed, here arises the second aspect: Right now you cannot mix standard ImageN and ServiceLoader registration. ImageN does not support that. It will fail to initialize if one operation had already been registered by that other means. So you must decide: either support multiple ways of registration in the ImageN core or decide upon one and let it go. Therefore my PR removes the three ServiceLoader definitions: 1) because they were wrong and 2) because that is the least invasive fix to make ImageN initialize correctly. The PR#119 was tested locally running GeoServer 2.2.8.0 and another application that uses JAI and it worked just fine. I hope you can agree that this is a proper fix and should be part in one of the next releases. For us it is a show-stopper for upgrading to GT 33.x / GS 2.28.x. Thanks! Sören -----Ursprüngliche Nachricht----- Von: Andrea Aime <and...@ge... <mailto:and...@ge...> <mailto:and...@ge... <mailto:and...@ge...> > > Gesendet: Freitag, 31. Oktober 2025 15:25 An: Kalesse Sören <ska...@ex... <mailto:ska...@ex...> <mailto:ska...@ex... <mailto:ska...@ex...> > > Cc: GeoTools Users <geo...@li... <mailto:geo...@li...> <mailto:geo...@li... <mailto:geo...@li...> > > Betreff: Re: [Geotools-gt2-users] GeoTools 34.0 released for Java 17 with Eclipse ImageN processing engine Hi, I second what Jody said, there was no plan to make the coexist, it's an upgrade path. However... I believe that a coexistence could be possible, the java packages are different, so by having ImageN use a different file name for the registry files in META-INF, from registryFile.jai to registryFile.imagen, a coexistence might be possible, even if likely wasteful (two separate image processing caches in memory are not the greatest of ideas). A coexistence is just not in our plans, but since ImageN is not yet available as 1.0, if DWD wants to put the development effort to get it done, I would not be against it. I see this applicable to the GeoServer 3.0 series. I would recommend switching existing software to ImageN though, we prepared migration scripts that should help in the endeavor. Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://bit.ly/gs-services-us <http://bit.ly/gs-services-us> for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions Group phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszP2s2ODk/Nm04PGs2b29vODk6Oj1tNj5rOG9tbG1qOG9sbDtqaG06aCh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2fwww.geosolutionsgroup.com%2f <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0bTs+Ozo+bDtqajtqMDsxPT1qOmg5PD49MDE+Omwwam0xMWprbzE4Oy99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2fwww.geosolutionsgroup.com%2f> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+Ozs6OjQ2MTAyM2Y1MDU1NjQxZzFiOzUwMWA0ZjAwZzQwNzA6ZTY2NCV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&url=https%3a%2f%2fwww.geosolutionsgroup.com%2f> https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszNmpqbG1sO2g5ajhsOT1rOjo9PG0+PW9sbWw2PW06PW06Oz88ajo5aCh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zPTkoZmpiMz4=&url=http%3a%2f%2ftwitter.com%2fgeosolutions_it <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0PWg9bW1obzFqaGpsPz5sbToxa2xrPjA9PW06PDBobDk5bG09a2s5bS99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0Oj4vYW1lNDk=&url=http%3a%2f%2ftwitter.com%2fgeosolutions_it> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+MDplNTQ7ZzM6YTozNmU7NGY1OjtmZzdnYTIzYjIwYmJmNGU2MDBgZiV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+MDQla2dvPjM=&url=http%3a%2f%2ftwitter.com%2fgeosolutions_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 On Thu, Oct 30, 2025 at 5:29 PM Kalesse Sören <Soe...@dw... <mailto:Soe...@dw...> <mailto:Soe...@dw... <mailto:Soe...@dw...> > <mailto:Soe...@dw... <mailto:Soe...@dw...> <mailto: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://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszb2tqOmw5bDo6Nz45OWhoPTc7PjY/PT89ajo+Pjo5a285azttPD8/bSh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fissues%2f118 <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0MDs9azlvOT0+bT1oa2s7aGgwamxqPzAwbDs8OmxrPj88MD4+azo9PS99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fissues%2f118> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+NDE1YDExNTs1ZjpnNTEwZzIyZmU7NmE7O2ZmZWFgYjJnMzA0NmY1NSV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fissues%2f118> and there is a PR attached https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszOmxrOTdqams6Ozk/OTs3PGg7PTo9Oj1qN2s2Nm84Pms2OTw2Pm0/PSh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fpull%2f119 <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0ajxsOGtoaj9sbzs9ODhvOG1qaDFqbTowPTg8Pzs4PWhoOzs/OT1vPi99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fpull%2f119> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+ZmVgNDplZTRlYWY0NWUzZ2BlMjA3M2UzZTU1MGdmNjQ6Zzc1MGdnNyV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&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...> <mailto:jod...@gm... <mailto:jod...@gm...> > <mailto:jod...@gm... <mailto:jod...@gm...> <mailto:jod...@gm... <mailto:jod...@gm...> > > > Gesendet: Mittwoch, 22. Oktober 2025 20:57 An: GeoTools Users <geo...@li... <mailto:geo...@li...> <mailto:geo...@li... <mailto:geo...@li...> > <mailto:geo...@li... <mailto:geo...@li...> <mailto: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:JVw4MzczOCR0PzAsMiRrZj8yMzgyMyRxa2VsY3Z3cGc/ZGA6MTE6NGEzZzthNTIwZ2AzOjFkNjQxNjVgMjsxOzQ1NWcwMTc1OiR2PzM1NDAxNzc6MzIkc2tmPzdDN0RFbXNxMjM2OzQ6LzdDN0RFbXN2MjM2OzQ6JHBhcnY/UW1ncGdsLEljbmdxcWdCZnVmLGZnJGE/NzAkamZuPzI=&url=http%3a%2f%2frepo.osgeo.org> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0PWtvPTBobDk6Pjs/MDloPDg7aGhsbTs4bTBsaz9sOjkxPWxoaGw5bC99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=http%3a%2f%2frepo.osgeo.org> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+YGFhNzE3MmAxNDM1YmJlNjNhOzpiYTpiYjc6NGU6N2BiNTRiOjQyZiV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&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...> <mailto:Geo...@li... <mailto:Geo...@li...> > <mailto:Geo...@li... <mailto:Geo...@li...> <mailto:Geo...@li... <mailto:Geo...@li...> > > https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszPjZvNj46OTw7OTc/Ozs4aDc+PDttO21oPDxrPmg7OGpvazdob283Pyh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0PG88aDw7OW05Pj5rPGs5MTgwMG8xOTs/MG87Pj86aD4/PD86bTtqOS99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+Zmc0OmBnYDViNTA1NDdmMzMyNTQ6ZmIxYmcxNTJnNTMyNGJiNDU2NiV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users> _______________________________________________ GeoTools-GT2-Users mailing list Geo...@li... <mailto:Geo...@li...> <mailto:Geo...@li... <mailto:Geo...@li...> > https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszPjZvNj46OTw7OTc/Ozs4aDc+PDttO21oPDxrPmg7OGpvazdob283Pyh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0PG88aDw7OW05Pj5rPGs5MTgwMG8xOTs/MG87Pj86aD4/PD86bTtqOS99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users> _______________________________________________ GeoTools-GT2-Users mailing list Geo...@li... <mailto:Geo...@li...> https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszPjZvNj46OTw7OTc/Ozs4aDc+PDttO21oPDxrPmg7OGpvazdob283Pyh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users _______________________________________________ GeoTools-GT2-Users mailing list Geo...@li... https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVw4MzczOCR0PzAsMiRrZj8yMzgyMyRxa2VsY3Z3cGc/YTQ6NjAxZDMyMjc1YzEwZjdjZ2RmNDJhZjVmOzQzYzQxY2Q6NjczMiR2PzM1NDA2MDUyMzQkc2tmPzdDNEAxY2BLMjA2Mjs1LzdDNEAxY2BIMjA2Mjs1JHBhcnY/UW1ncGdsLEljbmdxcWdCZnVmLGZnJGE/NzAkamZuPzI=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users |
|
From: Kalesse S. <Soe...@dw...> - 2025-11-06 11:00:56
|
Hi Jody, I cannot judge about that. I have done a quick check and it seems GeoTools has two operators (in gt-coverage and gt-process-raster) and GeoServer has one in wps-download. I can make Prs for those too if you want. Still, I think that this renaming task of the registry files is unrelated to the actual problem. I hope that we can agree on that. Btw, out of curiosity I have checked JAI-EXT and it turns out that it has the same problem. I have looked at GeoServer 2.27.3 that still uses JAI and JAI-EXT: - jt-jiffle and jt-vectorize have invalid ServiceLoader interface definitions similar too ImageN. Therefore these are ignored by JAI (Jai-ext seems to use the JAI operation registry) - jt-crop that the correct ServiceLoader interface, so in theory we would expect it to crash because it has both registryFile AND ServiceLoader. But for some extremely odd reasons, in jt-crop the registryFile is called registryFile.jaiext. Therefore, here in this case the registryFile is ignored by JAI (it does not know anything about the jaiext file extension). So it looks these problems have been ported over from JAI-EXT, but since in any case only one of the registration schemes actually works, the problem is hidden. Sören -----Ursprüngliche Nachricht----- Von: Jody Garnett <jod...@gm...> Gesendet: Mittwoch, 5. November 2025 16:16 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 Because ImageN is so new I do it think other projects have implemented operators yet to be registered? - - Jody Garnett On Wed, Nov 5, 2025 at 4:08 AM Kalesse Sören <Soe...@dw... <mailto:Soe...@dw...> > wrote: Hi again, after reading my previous e-mail I believe maybe an example would make it clearer. Let's go by the ImageN crop example (although the same argumentation is valid also for the other two (jiffle and vectorize)). So let's assume at first that both ImageN and JAI work well individually with the two mechanisms of registration: the (JAI/ImageN) registryFile and Java ServiceLoader. Then, let's look at crops's resources on the ImageN main branch. We have: RegistryFile: modules/crop/src/main/resources/META-INF/registryFile.jai (stripped of comments): --------------------------------------------------------------------------------------------------------------------------- descriptor org.eclipse.imagen.media.crop.CropDescriptor rendered org.eclipse.imagen.media.crop.CropCRIF org.eclipse.imagen.media Crop Crop and we have the Java ServiceLoader definition: modules/crop/src/main/resources/META-INF/services/javax.media.jai.OperationRegistrySpi: --------------------------------------------------------------------------------------------------------------------------- org.eclipse.imagen.media.crop.CropSpi The most obvious thing here is that the Java ServiceLoader definition is wrong, because CropSpi does not implement the javax.media.jai.OperationRegistrySpi interface. If we use only ImageN in our application, we will not notice the problem. ImageN is simply ignoring that ServiceLoader definition, because the interface is unknown to ImageN. BUT this will crash JAI, because ServiceLoader in JAI throws a ClassCastException given that definition. Now, as proposed, we could (and should) fix this by renaming modules/crop/src/main/resources/META-INF/services/javax.media.jai.OperationRegistrySpi to modules/crop/src/main/resources/META-INF/services/org.eclipse.imagen.OperationRegistrySpi. That now pleases JAI, because JAI does not know that new (ImageN) interface. Great! So now all should be good? NO! Because now we have this: RegistryFile: modules/crop/src/main/resources/META-INF/registryFile.jai (stripped of comments): --------------------------------------------------------------------------------------------------------------------------- descriptor org.eclipse.imagen.media.crop.CropDescriptor rendered org.eclipse.imagen.media.crop.CropCRIF org.eclipse.imagen.media Crop Crop and we have the fixed Java ServiceLoader definition: modules/crop/src/main/resources/META-INF/services/org.eclipse.imagen.OperationRegistrySpi: --------------------------------------------------------------------------------------------------------------------------- org.eclipse.imagen.media.crop.CropSpi Technically everything looks fine, BUT ImageN will no longer initialize, because we apply the two types of registration schemes at once. With this, what happens is that the Crop operation gets registered once using registryFile, and then ImageN tries again using ServiceLoader, because now the definition is no longer ignored. And this is the core problem. The wrong ServiceLoader definition files on main branch are simply hiding the problem, because ImageN will ignore them, but if we fix them to be correct, then ImageN will fail to initialize, because Crop is already there. The same argumentation goes for jiffle and vectorize, because those two also have (wrong) Java ServiceLoader definitions. So fixing them too, will result in the same problem of failing initialization. And last but not least, the reason for all other libraries to not fail, is that none of the other libraries have Java ServiceLoader definitions at all. That as the reason why my initial PR#119 simply removed the three ServiceLoader definitions from crop, jiffle and vectorize. Does that better illustrate the problem? ==== Now another topic: should we rename registryFile.jai --> registryFile.imagen ======= Maybe it should be done to make a more explicit distinction between ImageN and JAI registration. It should be noted though that the renaming is a breaking change for everyone using ImageN, because for example GeoTools/GeoServer and other applications that have their own ImageN operators implemented will have to switch to that new naming scheme. But, yeah, maybe it's worth the effort - I don't know. What I want to emphasize though is that I have tried locally with the wrong ServiceLoader definitions removed from ImageN. I ran GeoServer 2.28.0 that is now based on ImageN with some of our custom JAI operators that are still based on JAI 1.1.3. First, now both ImageN and JAI initialized correctly and I was able to successfully run WMS queries (which should prove that ImageN is working correctly) and I could also verify that our own custom JAI operators are working as well. My assumption based on that test is that it does not seem to matter too much how these registry files are named. It seems both, ImageN as well as JAI can cope with either and probably filtering the operations by the definitions they support. Of course I can currently not prove that by the same names, both work correctly, but that was my first try. Maybe a JAI/ImageN interoperability Test-case could prove. I don't know. But to summarize the current discussion. Whether or not the registry files should be renamed, does not relate to that other issue I presented in the first part of the e-mail. I hope, by this report, my argumentation becomes clearer. Sorry for that long wall of text. Thanks! Sören -----Ursprüngliche Nachricht----- Von: Kalesse Sören <Soe...@dw... <mailto:Soe...@dw...> > Gesendet: Mittwoch, 5. November 2025 10:55 An: Jody Garnett <jod...@gm... <mailto:jod...@gm...> > Cc: GeoTools Users <geo...@li... <mailto:geo...@li...> > Betreff: Re: [Geotools-gt2-users] GeoTools 34.0 released for Java 17 with Eclipse ImageN processing engine Hi Jody, Ok, I can make a PR, but with that all renaming happening, it'll be quite some big change and probably PRs needed for GeoTools and GeoServer as well, right? ... and all other libs that are already using ImageN. I am very sorry but I really need to emphasize again, that the registry files are not the problem here! ImageN and JAI seem to be able to cope with them even though they have the same name (registryFile.jai). I have tested it locally running ImageN and JAI in the same application and they do not interfere at all. I was able to run GeoServer 2.28.0 that uses ImageN and still use our own JAI operators based on JAI core 1.1.3 without any problems at all. Really, the problem here are those invalid Java ServiceLoader definitions. modules/crop/src/main/resources/META-INF/services/javax.media.jai.OperationRegistrySpi modules/jiffle/jt-jiffle-op/src/main/resources/META-INF/services/javax.media.jai.OperationsRegistrySpi modules/vectorize/src/main/resources/META-INF/services/javax.media.jai.OperationsRegistrySpi The first one (crop) tries registering at JAI operation registry, which is wrong. This will cause a ClassCastException in JAI. The other two (jiffle and vectorize) try the same thing but even worse, the interface names are wrong --> OperationsRegistrySpi vs. OperationRegistrySpi. So these two will simply be ignored, because that interface does not exist. I could fix the names of the ServiceLoader definitions --> org.eclipse.imagen.OperationRegistrySpi. That would please Java at least. So that's good, but ImageN will no longer work, because as mentioned earlier, ImageN registry cannot currently not deal with two mechanisms being in place at the same time. Fixing the names will do this (Example taken from the Jiffle test cases): [ERROR] org.eclipse.imagen.media.jiffleop.NoSourceTest.createSequentialImage -- Time elapsed: 0 s <<< ERROR! java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.imagen.ImageN at org.eclipse.imagen.media.jiffleop.NoSourceTest.reset(NoSourceTest.java:82) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.RunAfters.invokeMethod(RunAfters.java:46) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.IllegalArgumentException: A descriptor is already registered against the name "Jiffle" under registry mode "rendered" [in thread "main"] at org.eclipse.imagen.DescriptorCache.addDescriptor(DescriptorCache.java:144) at org.eclipse.imagen.OperationRegistry.registerDescriptor(OperationRegistry.java:580) at org.eclipse.imagen.ThreadSafeOperationRegistry.registerDescriptor(ThreadSafeOperationRegistry.java:156) at org.eclipse.imagen.media.jiffleop.JiffleSpi.updateRegistry(JiffleSpi.java:73) at org.eclipse.imagen.OperationRegistry.registerServices(OperationRegistry.java:1556) at org.eclipse.imagen.ThreadSafeOperationRegistry.registerServices(ThreadSafeOperationRegistry.java:529) at org.eclipse.imagen.OperationRegistry.initializeRegistry(OperationRegistry.java:311) at org.eclipse.imagen.ImageN.<clinit>(ImageN.java:351) The descriptor cache does not allow an operation to be registered twice. That is why I am saying that fixing the ServiceLoader definitions won't help at all. The only options I see is: 1. make descriptor cache support registry definitions coming from multiple places at the same time ---> I am not sure if that's really a good idea 2. remove the ServiceLoader definitions from those three libs I am wondering anyway, why is it that only those three libs do have ServiceLoader files at all? What about the other libs? Not a single other lib has any ServiceLoader definition at all. My PR#119 did exactly that. It removed the ServiceLoader definitions from those three libs. That's all it did and that fixed it all. No renaming of registryFile.jai required. To summarize: ============ I can make a PR that renames all registryFile.jai --> registryFile.imagen and changes the ImageN registry to use those instead - no problem. But that will not help with the initial problem, we need to deal with those ServiceLoader files - fixing their names to match the correct interface will not help. On the contrary, it will make it worse, because ImageN will no longer initialize, because it cannot handle both (registryFile.[jai|imagen] and ServiceLoader) at the same time. My proposal is to go by the initial PR and remove the ServiceLoader files all together for these three modules that have them (crop, jiffle, vectorize). What do you think? Thanks Sören -----Ursprüngliche Nachricht----- Von: Jody Garnett <jod...@gm... <mailto:jod...@gm...> > Gesendet: Mittwoch, 5. November 2025 02:47 An: Kalesse Sören <ska...@ex... <mailto:ska...@ex...> > Cc: GeoTools Users <geo...@li... <mailto:geo...@li...> > Betreff: Re: [Geotools-gt2-users] GeoTools 34.0 released for Java 17 with Eclipse ImageN processing engine So ideally we should fix the invalid definitions, and rename the files to end with “imagen”. If you make a PR I am willing to do a 0.9.1 relate; and Gabe offered to make a geotools release on schedule next week. - - Jody Garnett On Mon, Nov 3, 2025 at 11:12 PM Kalesse Sören <Soe...@dw... <mailto:Soe...@dw...> <mailto:Soe...@dw... <mailto:Soe...@dw...> > > wrote: Hi Andrea, That's exactly my point. I do assume that it was not intended for these two to coexist, but it should just work fine because there are two different registries and the operations interfaces are different, so in theory these two do not collide at all. That gives all users a good "workaround" to live with until applications and libraries have succeeded to migrate. And that's also exactly where my PR comes in. The three mentioned ImageN libraries (and only those three!) contain ServiceLoader definitions that are wrong. The register the ImageN operations at the JAI registry. That leads to class cast exceptions (wrong interfaces). That's the point that must definitely be fixed whatsoever. Now that fixed, here arises the second aspect: Right now you cannot mix standard ImageN and ServiceLoader registration. ImageN does not support that. It will fail to initialize if one operation had already been registered by that other means. So you must decide: either support multiple ways of registration in the ImageN core or decide upon one and let it go. Therefore my PR removes the three ServiceLoader definitions: 1) because they were wrong and 2) because that is the least invasive fix to make ImageN initialize correctly. The PR#119 was tested locally running GeoServer 2.2.8.0 and another application that uses JAI and it worked just fine. I hope you can agree that this is a proper fix and should be part in one of the next releases. For us it is a show-stopper for upgrading to GT 33.x / GS 2.28.x. Thanks! Sören -----Ursprüngliche Nachricht----- Von: Andrea Aime <and...@ge... <mailto:and...@ge...> <mailto:and...@ge... <mailto:and...@ge...> > > Gesendet: Freitag, 31. Oktober 2025 15:25 An: Kalesse Sören <ska...@ex... <mailto:ska...@ex...> <mailto:ska...@ex... <mailto:ska...@ex...> > > Cc: GeoTools Users <geo...@li... <mailto:geo...@li...> <mailto:geo...@li... <mailto:geo...@li...> > > Betreff: Re: [Geotools-gt2-users] GeoTools 34.0 released for Java 17 with Eclipse ImageN processing engine Hi, I second what Jody said, there was no plan to make the coexist, it's an upgrade path. However... I believe that a coexistence could be possible, the java packages are different, so by having ImageN use a different file name for the registry files in META-INF, from registryFile.jai to registryFile.imagen, a coexistence might be possible, even if likely wasteful (two separate image processing caches in memory are not the greatest of ideas). A coexistence is just not in our plans, but since ImageN is not yet available as 1.0, if DWD wants to put the development effort to get it done, I would not be against it. I see this applicable to the GeoServer 3.0 series. I would recommend switching existing software to ImageN though, we prepared migration scripts that should help in the endeavor. Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://bit.ly/gs-services-us <http://bit.ly/gs-services-us> for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions Group phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszP2s2ODk/Nm04PGs2b29vODk6Oj1tNj5rOG9tbG1qOG9sbDtqaG06aCh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2fwww.geosolutionsgroup.com%2f <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0bTs+Ozo+bDtqajtqMDsxPT1qOmg5PD49MDE+Omwwam0xMWprbzE4Oy99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2fwww.geosolutionsgroup.com%2f> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+Ozs6OjQ2MTAyM2Y1MDU1NjQxZzFiOzUwMWA0ZjAwZzQwNzA6ZTY2NCV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&url=https%3a%2f%2fwww.geosolutionsgroup.com%2f> https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszNmpqbG1sO2g5ajhsOT1rOjo9PG0+PW9sbWw2PW06PW06Oz88ajo5aCh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zPTkoZmpiMz4=&url=http%3a%2f%2ftwitter.com%2fgeosolutions_it <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0PWg9bW1obzFqaGpsPz5sbToxa2xrPjA9PW06PDBobDk5bG09a2s5bS99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0Oj4vYW1lNDk=&url=http%3a%2f%2ftwitter.com%2fgeosolutions_it> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+MDplNTQ7ZzM6YTozNmU7NGY1OjtmZzdnYTIzYjIwYmJmNGU2MDBgZiV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+MDQla2dvPjM=&url=http%3a%2f%2ftwitter.com%2fgeosolutions_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 On Thu, Oct 30, 2025 at 5:29 PM Kalesse Sören <Soe...@dw... <mailto:Soe...@dw...> <mailto:Soe...@dw... <mailto:Soe...@dw...> > <mailto:Soe...@dw... <mailto:Soe...@dw...> <mailto: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://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszb2tqOmw5bDo6Nz45OWhoPTc7PjY/PT89ajo+Pjo5a285azttPD8/bSh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fissues%2f118 <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0MDs9azlvOT0+bT1oa2s7aGgwamxqPzAwbDs8OmxrPj88MD4+azo9PS99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fissues%2f118> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+NDE1YDExNTs1ZjpnNTEwZzIyZmU7NmE7O2ZmZWFgYjJnMzA0NmY1NSV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fissues%2f118> and there is a PR attached https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszOmxrOTdqams6Ozk/OTs3PGg7PTo9Oj1qN2s2Nm84Pms2OTw2Pm0/PSh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fpull%2f119 <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0ajxsOGtoaj9sbzs9ODhvOG1qaDFqbTowPTg8Pzs4PWhoOzs/OT1vPi99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fpull%2f119> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+ZmVgNDplZTRlYWY0NWUzZ2BlMjA3M2UzZTU1MGdmNjQ6Zzc1MGdnNyV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&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...> <mailto:jod...@gm... <mailto:jod...@gm...> > <mailto:jod...@gm... <mailto:jod...@gm...> <mailto:jod...@gm... <mailto:jod...@gm...> > > > Gesendet: Mittwoch, 22. Oktober 2025 20:57 An: GeoTools Users <geo...@li... <mailto:geo...@li...> <mailto:geo...@li... <mailto:geo...@li...> > <mailto:geo...@li... <mailto:geo...@li...> <mailto: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:JVw4MzczOCR0PzAsMiRrZj8yMzgyMyRxa2VsY3Z3cGc/ZGA6MTE6NGEzZzthNTIwZ2AzOjFkNjQxNjVgMjsxOzQ1NWcwMTc1OiR2PzM1NDAxNzc6MzIkc2tmPzdDN0RFbXNxMjM2OzQ6LzdDN0RFbXN2MjM2OzQ6JHBhcnY/UW1ncGdsLEljbmdxcWdCZnVmLGZnJGE/NzAkamZuPzI=&url=http%3a%2f%2frepo.osgeo.org> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0PWtvPTBobDk6Pjs/MDloPDg7aGhsbTs4bTBsaz9sOjkxPWxoaGw5bC99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=http%3a%2f%2frepo.osgeo.org> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+YGFhNzE3MmAxNDM1YmJlNjNhOzpiYTpiYjc6NGU6N2BiNTRiOjQyZiV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&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...> <mailto:Geo...@li... <mailto:Geo...@li...> > <mailto:Geo...@li... <mailto:Geo...@li...> <mailto:Geo...@li... <mailto:Geo...@li...> > > https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszPjZvNj46OTw7OTc/Ozs4aDc+PDttO21oPDxrPmg7OGpvazdob283Pyh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0PG88aDw7OW05Pj5rPGs5MTgwMG8xOTs/MG87Pj86aD4/PD86bTtqOS99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+Zmc0OmBnYDViNTA1NDdmMzMyNTQ6ZmIxYmcxNTJnNTMyNGJiNDU2NiV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users> _______________________________________________ GeoTools-GT2-Users mailing list Geo...@li... <mailto:Geo...@li...> <mailto:Geo...@li... <mailto:Geo...@li...> > https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszPjZvNj46OTw7OTc/Ozs4aDc+PDttO21oPDxrPmg7OGpvazdob283Pyh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0PG88aDw7OW05Pj5rPGs5MTgwMG8xOTs/MG87Pj86aD4/PD86bTtqOS99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users> _______________________________________________ GeoTools-GT2-Users mailing list Geo...@li... <mailto:Geo...@li...> https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszPjZvNj46OTw7OTc/Ozs4aDc+PDttO21oPDxrPmg7OGpvazdob283Pyh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users |
|
From: Kalesse S. <Soe...@dw...> - 2025-11-05 12:08:17
|
Hi again,
after reading my previous e-mail I believe maybe an example would make it clearer. Let's go by the ImageN crop example (although the same argumentation is valid also for the other two (jiffle and vectorize)).
So let's assume at first that both ImageN and JAI work well individually with the two mechanisms of registration: the (JAI/ImageN) registryFile and Java ServiceLoader.
Then, let's look at crops's resources on the ImageN main branch. We have:
RegistryFile:
modules/crop/src/main/resources/META-INF/registryFile.jai (stripped of comments):
---------------------------------------------------------------------------------------------------------------------------
descriptor org.eclipse.imagen.media.crop.CropDescriptor
rendered org.eclipse.imagen.media.crop.CropCRIF org.eclipse.imagen.media Crop Crop
and we have the Java ServiceLoader definition:
modules/crop/src/main/resources/META-INF/services/javax.media.jai.OperationRegistrySpi:
---------------------------------------------------------------------------------------------------------------------------
org.eclipse.imagen.media.crop.CropSpi
The most obvious thing here is that the Java ServiceLoader definition is wrong, because CropSpi does not implement the javax.media.jai.OperationRegistrySpi interface.
If we use only ImageN in our application, we will not notice the problem. ImageN is simply ignoring that ServiceLoader definition, because the interface is unknown to ImageN. BUT this will crash JAI, because ServiceLoader in JAI throws a ClassCastException given that definition.
Now, as proposed, we could (and should) fix this by renaming modules/crop/src/main/resources/META-INF/services/javax.media.jai.OperationRegistrySpi to modules/crop/src/main/resources/META-INF/services/org.eclipse.imagen.OperationRegistrySpi.
That now pleases JAI, because JAI does not know that new (ImageN) interface. Great! So now all should be good? NO! Because now we have this:
RegistryFile:
modules/crop/src/main/resources/META-INF/registryFile.jai (stripped of comments):
---------------------------------------------------------------------------------------------------------------------------
descriptor org.eclipse.imagen.media.crop.CropDescriptor
rendered org.eclipse.imagen.media.crop.CropCRIF org.eclipse.imagen.media Crop Crop
and we have the fixed Java ServiceLoader definition:
modules/crop/src/main/resources/META-INF/services/org.eclipse.imagen.OperationRegistrySpi:
---------------------------------------------------------------------------------------------------------------------------
org.eclipse.imagen.media.crop.CropSpi
Technically everything looks fine, BUT ImageN will no longer initialize, because we apply the two types of registration schemes at once. With this, what happens is that the Crop operation gets registered once using registryFile, and then ImageN tries again using ServiceLoader, because now the definition is no longer ignored.
And this is the core problem. The wrong ServiceLoader definition files on main branch are simply hiding the problem, because ImageN will ignore them, but if we fix them to be correct, then ImageN will fail to initialize, because Crop is already there. The same argumentation goes for jiffle and vectorize, because those two also have (wrong) Java ServiceLoader definitions. So fixing them too, will result in the same problem of failing initialization.
And last but not least, the reason for all other libraries to not fail, is that none of the other libraries have Java ServiceLoader definitions at all.
That as the reason why my initial PR#119 simply removed the three ServiceLoader definitions from crop, jiffle and vectorize.
Does that better illustrate the problem?
==== Now another topic: should we rename registryFile.jai --> registryFile.imagen =======
Maybe it should be done to make a more explicit distinction between ImageN and JAI registration. It should be noted though that the renaming is a breaking change for everyone using ImageN, because for example GeoTools/GeoServer and other applications that have their own ImageN operators implemented will have to switch to that new naming scheme. But, yeah, maybe it's worth the effort - I don't know.
What I want to emphasize though is that I have tried locally with the wrong ServiceLoader definitions removed from ImageN. I ran GeoServer 2.28.0 that is now based on ImageN with some of our custom JAI operators that are still based on JAI 1.1.3. First, now both ImageN and JAI initialized correctly and I was able to successfully run WMS queries (which should prove that ImageN is working correctly) and I could also verify that our own custom JAI operators are working as well.
My assumption based on that test is that it does not seem to matter too much how these registry files are named. It seems both, ImageN as well as JAI can cope with either and probably filtering the operations by the definitions they support.
Of course I can currently not prove that by the same names, both work correctly, but that was my first try. Maybe a JAI/ImageN interoperability Test-case could prove. I don't know.
But to summarize the current discussion. Whether or not the registry files should be renamed, does not relate to that other issue I presented in the first part of the e-mail.
I hope, by this report, my argumentation becomes clearer. Sorry for that long wall of text.
Thanks!
Sören
-----Ursprüngliche Nachricht-----
Von: Kalesse Sören <Soe...@dw...>
Gesendet: Mittwoch, 5. November 2025 10:55
An: Jody Garnett <jod...@gm...>
Cc: GeoTools Users <geo...@li...>
Betreff: Re: [Geotools-gt2-users] GeoTools 34.0 released for Java 17 with Eclipse ImageN processing engine
Hi Jody,
Ok, I can make a PR, but with that all renaming happening, it'll be quite some big change and probably PRs needed for GeoTools and GeoServer as well, right? ... and all other libs that are already using ImageN.
I am very sorry but I really need to emphasize again, that the registry files are not the problem here! ImageN and JAI seem to be able to cope with them even though they have the same name (registryFile.jai). I have tested it locally running ImageN and JAI in the same application and they do not interfere at all. I was able to run GeoServer 2.28.0 that uses ImageN and still use our own JAI operators based on JAI core 1.1.3 without any problems at all.
Really, the problem here are those invalid Java ServiceLoader definitions.
modules/crop/src/main/resources/META-INF/services/javax.media.jai.OperationRegistrySpi
modules/jiffle/jt-jiffle-op/src/main/resources/META-INF/services/javax.media.jai.OperationsRegistrySpi
modules/vectorize/src/main/resources/META-INF/services/javax.media.jai.OperationsRegistrySpi
The first one (crop) tries registering at JAI operation registry, which is wrong. This will cause a ClassCastException in JAI.
The other two (jiffle and vectorize) try the same thing but even worse, the interface names are wrong --> OperationsRegistrySpi vs. OperationRegistrySpi. So these two will simply be ignored, because that interface does not exist.
I could fix the names of the ServiceLoader definitions --> org.eclipse.imagen.OperationRegistrySpi. That would please Java at least. So that's good, but ImageN will no longer work, because as mentioned earlier, ImageN registry cannot currently not deal with two mechanisms being in place at the same time. Fixing the names will do this (Example taken from the Jiffle test cases):
[ERROR] org.eclipse.imagen.media.jiffleop.NoSourceTest.createSequentialImage -- Time elapsed: 0 s <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.imagen.ImageN
at org.eclipse.imagen.media.jiffleop.NoSourceTest.reset(NoSourceTest.java:82)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at org.junit.internal.runners.statements.RunAfters.invokeMethod(RunAfters.java:46)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.IllegalArgumentException: A descriptor is already registered against the name "Jiffle" under registry mode "rendered" [in thread "main"]
at org.eclipse.imagen.DescriptorCache.addDescriptor(DescriptorCache.java:144)
at org.eclipse.imagen.OperationRegistry.registerDescriptor(OperationRegistry.java:580)
at org.eclipse.imagen.ThreadSafeOperationRegistry.registerDescriptor(ThreadSafeOperationRegistry.java:156)
at org.eclipse.imagen.media.jiffleop.JiffleSpi.updateRegistry(JiffleSpi.java:73)
at org.eclipse.imagen.OperationRegistry.registerServices(OperationRegistry.java:1556)
at org.eclipse.imagen.ThreadSafeOperationRegistry.registerServices(ThreadSafeOperationRegistry.java:529)
at org.eclipse.imagen.OperationRegistry.initializeRegistry(OperationRegistry.java:311)
at org.eclipse.imagen.ImageN.<clinit>(ImageN.java:351)
The descriptor cache does not allow an operation to be registered twice. That is why I am saying that fixing the ServiceLoader definitions won't help at all. The only options I see is:
1. make descriptor cache support registry definitions coming from multiple places at the same time
---> I am not sure if that's really a good idea
2. remove the ServiceLoader definitions from those three libs
I am wondering anyway, why is it that only those three libs do have ServiceLoader files at all? What about the other libs? Not a single other lib has any ServiceLoader definition at all.
My PR#119 did exactly that. It removed the ServiceLoader definitions from those three libs. That's all it did and that fixed it all. No renaming of registryFile.jai required.
To summarize:
============
I can make a PR that renames all registryFile.jai --> registryFile.imagen and changes the ImageN registry to use those instead - no problem.
But that will not help with the initial problem, we need to deal with those ServiceLoader files - fixing their names to match the correct interface will not help. On the contrary, it will make it worse, because ImageN will no longer initialize, because it cannot handle both (registryFile.[jai|imagen] and ServiceLoader) at the same time.
My proposal is to go by the initial PR and remove the ServiceLoader files all together for these three modules that have them (crop, jiffle, vectorize).
What do you think?
Thanks
Sören
-----Ursprüngliche Nachricht-----
Von: Jody Garnett <jod...@gm...>
Gesendet: Mittwoch, 5. November 2025 02:47
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
So ideally we should fix the invalid definitions, and rename the files to end with “imagen”.
If you make a PR I am willing to do a 0.9.1 relate; and Gabe offered to make a geotools release on schedule next week.
- -
Jody Garnett
On Mon, Nov 3, 2025 at 11:12 PM Kalesse Sören <Soe...@dw... <mailto:Soe...@dw...> > wrote:
Hi Andrea,
That's exactly my point. I do assume that it was not intended for these two to coexist, but it should just work fine because there are two different registries and the operations interfaces are different, so in theory these two do not collide at all. That gives all users a good "workaround" to live with until applications and libraries have succeeded to migrate.
And that's also exactly where my PR comes in. The three mentioned ImageN libraries (and only those three!) contain ServiceLoader definitions that are wrong. The register the ImageN operations at the JAI registry. That leads to class cast exceptions (wrong interfaces). That's the point that must definitely be fixed whatsoever.
Now that fixed, here arises the second aspect: Right now you cannot mix standard ImageN and ServiceLoader registration. ImageN does not support that. It will fail to initialize if one operation had already been registered by that other means. So you must decide: either support multiple ways of registration in the ImageN core or decide upon one and let it go.
Therefore my PR removes the three ServiceLoader definitions: 1) because they were wrong and 2) because that is the least invasive fix to make ImageN initialize correctly. The PR#119 was tested locally running GeoServer 2.2.8.0 and another application that uses JAI and it worked just fine.
I hope you can agree that this is a proper fix and should be part in one of the next releases. For us it is a show-stopper for upgrading to GT 33.x / GS 2.28.x.
Thanks!
Sören
-----Ursprüngliche Nachricht-----
Von: Andrea Aime <and...@ge... <mailto:and...@ge...> >
Gesendet: Freitag, 31. Oktober 2025 15:25
An: Kalesse Sören <ska...@ex... <mailto:ska...@ex...> >
Cc: GeoTools Users <geo...@li... <mailto:geo...@li...> >
Betreff: Re: [Geotools-gt2-users] GeoTools 34.0 released for Java 17 with Eclipse ImageN processing engine
Hi,
I second what Jody said, there was no plan to make the coexist, it's an upgrade path.
However... I believe that a coexistence could be possible, the java packages
are different, so by having ImageN use a different file name for the registry files in META-INF,
from registryFile.jai to registryFile.imagen, a coexistence might be possible, even if likely
wasteful (two separate image processing caches in memory are not the greatest of ideas).
A coexistence is just not in our plans, but since ImageN is not yet available as 1.0, if DWD wants
to put the development effort to get it done, I would not be against it.
I see this applicable to the GeoServer 3.0 series.
I would recommend switching existing software to ImageN though, we prepared migration scripts
that should help in the endeavor.
Regards,
Andrea Aime
==
GeoServer Professional Services from the experts!
Visit http://bit.ly/gs-services-us <http://bit.ly/gs-services-us> for more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions Group
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszP2s2ODk/Nm04PGs2b29vODk6Oj1tNj5rOG9tbG1qOG9sbDtqaG06aCh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2fwww.geosolutionsgroup.com%2f <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0bTs+Ozo+bDtqajtqMDsxPT1qOmg5PD49MDE+Omwwam0xMWprbzE4Oy99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2fwww.geosolutionsgroup.com%2f> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+Ozs6OjQ2MTAyM2Y1MDU1NjQxZzFiOzUwMWA0ZjAwZzQwNzA6ZTY2NCV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&url=https%3a%2f%2fwww.geosolutionsgroup.com%2f>
https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszNmpqbG1sO2g5ajhsOT1rOjo9PG0+PW9sbWw2PW06PW06Oz88ajo5aCh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zPTkoZmpiMz4=&url=http%3a%2f%2ftwitter.com%2fgeosolutions_it <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0PWg9bW1obzFqaGpsPz5sbToxa2xrPjA9PW06PDBobDk5bG09a2s5bS99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0Oj4vYW1lNDk=&url=http%3a%2f%2ftwitter.com%2fgeosolutions_it> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+MDplNTQ7ZzM6YTozNmU7NGY1OjtmZzdnYTIzYjIwYmJmNGU2MDBgZiV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+MDQla2dvPjM=&url=http%3a%2f%2ftwitter.com%2fgeosolutions_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
On Thu, Oct 30, 2025 at 5:29 PM Kalesse Sören <Soe...@dw... <mailto:Soe...@dw...> <mailto: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://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszb2tqOmw5bDo6Nz45OWhoPTc7PjY/PT89ajo+Pjo5a285azttPD8/bSh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fissues%2f118 <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0MDs9azlvOT0+bT1oa2s7aGgwamxqPzAwbDs8OmxrPj88MD4+azo9PS99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fissues%2f118> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+NDE1YDExNTs1ZjpnNTEwZzIyZmU7NmE7O2ZmZWFgYjJnMzA0NmY1NSV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fissues%2f118> and there is a PR attached https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszOmxrOTdqams6Ozk/OTs3PGg7PTo9Oj1qN2s2Nm84Pms2OTw2Pm0/PSh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fpull%2f119 <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0ajxsOGtoaj9sbzs9ODhvOG1qaDFqbTowPTg8Pzs4PWhoOzs/OT1vPi99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fpull%2f119> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+ZmVgNDplZTRlYWY0NWUzZ2BlMjA3M2UzZTU1MGdmNjQ6Zzc1MGdnNyV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&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...> <mailto:jod...@gm... <mailto:jod...@gm...> > >
Gesendet: Mittwoch, 22. Oktober 2025 20:57
An: GeoTools Users <geo...@li... <mailto:geo...@li...> <mailto: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:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0PWtvPTBobDk6Pjs/MDloPDg7aGhsbTs4bTBsaz9sOjkxPWxoaGw5bC99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=http%3a%2f%2frepo.osgeo.org> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+YGFhNzE3MmAxNDM1YmJlNjNhOzpiYTpiYjc6NGU6N2BiNTRiOjQyZiV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&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...> <mailto:Geo...@li... <mailto:Geo...@li...> >
https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszPjZvNj46OTw7OTc/Ozs4aDc+PDttO21oPDxrPmg7OGpvazdob283Pyh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0PG88aDw7OW05Pj5rPGs5MTgwMG8xOTs/MG87Pj86aD4/PD86bTtqOS99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+Zmc0OmBnYDViNTA1NDdmMzMyNTQ6ZmIxYmcxNTJnNTMyNGJiNDU2NiV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users>
_______________________________________________
GeoTools-GT2-Users mailing list
Geo...@li... <mailto:Geo...@li...>
https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszPjZvNj46OTw7OTc/Ozs4aDc+PDttO21oPDxrPmg7OGpvazdob283Pyh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0PG88aDw7OW05Pj5rPGs5MTgwMG8xOTs/MG87Pj86aD4/PD86bTtqOS99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users>
_______________________________________________
GeoTools-GT2-Users mailing list
Geo...@li...
https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVA0Pzs/NCh4MzwgPihnajM+PzQ+Pyh9Z2lgb3p7fGszPjZvNj46OTw7OTc/Ozs4aDc+PDttO21oPDxrPmg7OGpvazdob283Pyh6Mz85ODw9PTg4PToof2dqMztPOzd4S1pmPjw8PD85IztPOzd4S1pnPjw8PD85KHxtfnozXWFrfGtgIEVvYmt9fWtOanlqIGprKG0zOzwoZmpiMz4=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users
|
|
From: Kalesse S. <Soe...@dw...> - 2025-11-05 09:55:40
|
Hi Jody,
Ok, I can make a PR, but with that all renaming happening, it'll be quite some big change and probably PRs needed for GeoTools and GeoServer as well, right? ... and all other libs that are already using ImageN.
I am very sorry but I really need to emphasize again, that the registry files are not the problem here! ImageN and JAI seem to be able to cope with them even though they have the same name (registryFile.jai). I have tested it locally running ImageN and JAI in the same application and they do not interfere at all. I was able to run GeoServer 2.28.0 that uses ImageN and still use our own JAI operators based on JAI core 1.1.3 without any problems at all.
Really, the problem here are those invalid Java ServiceLoader definitions.
modules/crop/src/main/resources/META-INF/services/javax.media.jai.OperationRegistrySpi
modules/jiffle/jt-jiffle-op/src/main/resources/META-INF/services/javax.media.jai.OperationsRegistrySpi
modules/vectorize/src/main/resources/META-INF/services/javax.media.jai.OperationsRegistrySpi
The first one (crop) tries registering at JAI operation registry, which is wrong. This will cause a ClassCastException in JAI.
The other two (jiffle and vectorize) try the same thing but even worse, the interface names are wrong --> OperationsRegistrySpi vs. OperationRegistrySpi. So these two will simply be ignored, because that interface does not exist.
I could fix the names of the ServiceLoader definitions --> org.eclipse.imagen.OperationRegistrySpi. That would please Java at least. So that's good, but ImageN will no longer work, because as mentioned earlier, ImageN registry cannot currently not deal with two mechanisms being in place at the same time. Fixing the names will do this (Example taken from the Jiffle test cases):
[ERROR] org.eclipse.imagen.media.jiffleop.NoSourceTest.createSequentialImage -- Time elapsed: 0 s <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.imagen.ImageN
at org.eclipse.imagen.media.jiffleop.NoSourceTest.reset(NoSourceTest.java:82)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at org.junit.internal.runners.statements.RunAfters.invokeMethod(RunAfters.java:46)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.IllegalArgumentException: A descriptor is already registered against the name "Jiffle" under registry mode "rendered" [in thread "main"]
at org.eclipse.imagen.DescriptorCache.addDescriptor(DescriptorCache.java:144)
at org.eclipse.imagen.OperationRegistry.registerDescriptor(OperationRegistry.java:580)
at org.eclipse.imagen.ThreadSafeOperationRegistry.registerDescriptor(ThreadSafeOperationRegistry.java:156)
at org.eclipse.imagen.media.jiffleop.JiffleSpi.updateRegistry(JiffleSpi.java:73)
at org.eclipse.imagen.OperationRegistry.registerServices(OperationRegistry.java:1556)
at org.eclipse.imagen.ThreadSafeOperationRegistry.registerServices(ThreadSafeOperationRegistry.java:529)
at org.eclipse.imagen.OperationRegistry.initializeRegistry(OperationRegistry.java:311)
at org.eclipse.imagen.ImageN.<clinit>(ImageN.java:351)
The descriptor cache does not allow an operation to be registered twice. That is why I am saying that fixing the ServiceLoader definitions won't help at all. The only options I see is:
1. make descriptor cache support registry definitions coming from multiple places at the same time
---> I am not sure if that's really a good idea
2. remove the ServiceLoader definitions from those three libs
I am wondering anyway, why is it that only those three libs do have ServiceLoader files at all? What about the other libs? Not a single other lib has any ServiceLoader definition at all.
My PR#119 did exactly that. It removed the ServiceLoader definitions from those three libs. That's all it did and that fixed it all. No renaming of registryFile.jai required.
To summarize:
============
I can make a PR that renames all registryFile.jai --> registryFile.imagen and changes the ImageN registry to use those instead - no problem.
But that will not help with the initial problem, we need to deal with those ServiceLoader files - fixing their names to match the correct interface will not help. On the contrary, it will make it worse, because ImageN will no longer initialize, because it cannot handle both (registryFile.[jai|imagen] and ServiceLoader) at the same time.
My proposal is to go by the initial PR and remove the ServiceLoader files all together for these three modules that have them (crop, jiffle, vectorize).
What do you think?
Thanks
Sören
-----Ursprüngliche Nachricht-----
Von: Jody Garnett <jod...@gm...>
Gesendet: Mittwoch, 5. November 2025 02:47
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
So ideally we should fix the invalid definitions, and rename the files to end with “imagen”.
If you make a PR I am willing to do a 0.9.1 relate; and Gabe offered to make a geotools release on schedule next week.
- -
Jody Garnett
On Mon, Nov 3, 2025 at 11:12 PM Kalesse Sören <Soe...@dw... <mailto:Soe...@dw...> > wrote:
Hi Andrea,
That's exactly my point. I do assume that it was not intended for these two to coexist, but it should just work fine because there are two different registries and the operations interfaces are different, so in theory these two do not collide at all. That gives all users a good "workaround" to live with until applications and libraries have succeeded to migrate.
And that's also exactly where my PR comes in. The three mentioned ImageN libraries (and only those three!) contain ServiceLoader definitions that are wrong. The register the ImageN operations at the JAI registry. That leads to class cast exceptions (wrong interfaces). That's the point that must definitely be fixed whatsoever.
Now that fixed, here arises the second aspect: Right now you cannot mix standard ImageN and ServiceLoader registration. ImageN does not support that. It will fail to initialize if one operation had already been registered by that other means. So you must decide: either support multiple ways of registration in the ImageN core or decide upon one and let it go.
Therefore my PR removes the three ServiceLoader definitions: 1) because they were wrong and 2) because that is the least invasive fix to make ImageN initialize correctly. The PR#119 was tested locally running GeoServer 2.2.8.0 and another application that uses JAI and it worked just fine.
I hope you can agree that this is a proper fix and should be part in one of the next releases. For us it is a show-stopper for upgrading to GT 33.x / GS 2.28.x.
Thanks!
Sören
-----Ursprüngliche Nachricht-----
Von: Andrea Aime <and...@ge... <mailto:and...@ge...> >
Gesendet: Freitag, 31. Oktober 2025 15:25
An: Kalesse Sören <ska...@ex... <mailto:ska...@ex...> >
Cc: GeoTools Users <geo...@li... <mailto:geo...@li...> >
Betreff: Re: [Geotools-gt2-users] GeoTools 34.0 released for Java 17 with Eclipse ImageN processing engine
Hi,
I second what Jody said, there was no plan to make the coexist, it's an upgrade path.
However... I believe that a coexistence could be possible, the java packages
are different, so by having ImageN use a different file name for the registry files in META-INF,
from registryFile.jai to registryFile.imagen, a coexistence might be possible, even if likely
wasteful (two separate image processing caches in memory are not the greatest of ideas).
A coexistence is just not in our plans, but since ImageN is not yet available as 1.0, if DWD wants
to put the development effort to get it done, I would not be against it.
I see this applicable to the GeoServer 3.0 series.
I would recommend switching existing software to ImageN though, we prepared migration scripts
that should help in the endeavor.
Regards,
Andrea Aime
==
GeoServer Professional Services from the experts!
Visit http://bit.ly/gs-services-us <http://bit.ly/gs-services-us> for more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions Group
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
https://www.geosolutionsgroup.com/ <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0bTs+Ozo+bDtqajtqMDsxPT1qOmg5PD49MDE+Omwwam0xMWprbzE4Oy99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2fwww.geosolutionsgroup.com%2f> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+Ozs6OjQ2MTAyM2Y1MDU1NjQxZzFiOzUwMWA0ZjAwZzQwNzA6ZTY2NCV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&url=https%3a%2f%2fwww.geosolutionsgroup.com%2f>
http://twitter.com/geosolutions_it <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0PWg9bW1obzFqaGpsPz5sbToxa2xrPjA9PW06PDBobDk5bG09a2s5bS99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0Oj4vYW1lNDk=&url=http%3a%2f%2ftwitter.com%2fgeosolutions_it> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+MDplNTQ7ZzM6YTozNmU7NGY1OjtmZzdnYTIzYjIwYmJmNGU2MDBgZiV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+MDQla2dvPjM=&url=http%3a%2f%2ftwitter.com%2fgeosolutions_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
On Thu, Oct 30, 2025 at 5:29 PM Kalesse Sören <Soe...@dw... <mailto:Soe...@dw...> <mailto: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:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0MDs9azlvOT0+bT1oa2s7aGgwamxqPzAwbDs8OmxrPj88MD4+azo9PS99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fissues%2f118> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+NDE1YDExNTs1ZjpnNTEwZzIyZmU7NmE7O2ZmZWFgYjJnMzA0NmY1NSV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&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:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0ajxsOGtoaj9sbzs9ODhvOG1qaDFqbTowPTg8Pzs4PWhoOzs/OT1vPi99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2fgithub.com%2feclipse-imagen%2fimagen%2fpull%2f119> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+ZmVgNDplZTRlYWY0NWUzZ2BlMjA3M2UzZTU1MGdmNjQ6Zzc1MGdnNyV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&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...> <mailto:jod...@gm... <mailto:jod...@gm...> > >
Gesendet: Mittwoch, 22. Oktober 2025 20:57
An: GeoTools Users <geo...@li... <mailto:geo...@li...> <mailto: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:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0PWtvPTBobDk6Pjs/MDloPDg7aGhsbTs4bTBsaz9sOjkxPWxoaGw5bC99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=http%3a%2f%2frepo.osgeo.org> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+YGFhNzE3MmAxNDM1YmJlNjNhOzpiYTpiYjc6NGU6N2BiNTRiOjQyZiV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&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...> <mailto:Geo...@li... <mailto:Geo...@li...> >
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0PG88aDw7OW05Pj5rPGs5MTgwMG8xOTs/MG87Pj86aD4/PD86bTtqOS99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users> <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+Zmc0OmBnYDViNTA1NDdmMzMyNTQ6ZmIxYmcxNTJnNTMyNGJiNDU2NiV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users>
_______________________________________________
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:JVUzODw4My9/NDsnOS9gbTQ5ODM5OC96YG5naH18e2w0PG88aDw7OW05Pj5rPGs5MTgwMG8xOTs/MG87Pj86aD4/PD86bTtqOS99NDg+Pzs6OT47MDkveGBtNDxIPDhkSGN5OTg/Pj46JDxIPDhkSGN4OTg/Pj46L3tqeX00WmZse2xnJ0JoZWx6emxJbX5tJ21sL2o0PDsvYW1lNDk=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users>
|
|
From: Jody G. <jod...@gm...> - 2025-11-05 01:47:43
|
So ideally we should fix the invalid definitions, and rename the files to end with “imagen”. If you make a PR I am willing to do a 0.9.1 relate; and Gabe offered to make a geotools release on schedule next week. - - Jody Garnett On Mon, Nov 3, 2025 at 11:12 PM Kalesse Sören <Soe...@dw...> wrote: > Hi Andrea, > > That's exactly my point. I do assume that it was not intended for these > two to coexist, but it should just work fine because there are two > different registries and the operations interfaces are different, so in > theory these two do not collide at all. That gives all users a good > "workaround" to live with until applications and libraries have succeeded > to migrate. > > And that's also exactly where my PR comes in. The three mentioned ImageN > libraries (and only those three!) contain ServiceLoader definitions that > are wrong. The register the ImageN operations at the JAI registry. That > leads to class cast exceptions (wrong interfaces). That's the point that > must definitely be fixed whatsoever. > > Now that fixed, here arises the second aspect: Right now you cannot mix > standard ImageN and ServiceLoader registration. ImageN does not support > that. It will fail to initialize if one operation had already been > registered by that other means. So you must decide: either support multiple > ways of registration in the ImageN core or decide upon one and let it go. > > Therefore my PR removes the three ServiceLoader definitions: 1) because > they were wrong and 2) because that is the least invasive fix to make > ImageN initialize correctly. The PR#119 was tested locally running > GeoServer 2.2.8.0 and another application that uses JAI and it worked just > fine. > > I hope you can agree that this is a proper fix and should be part in one > of the next releases. For us it is a show-stopper for upgrading to GT 33.x > / GS 2.28.x. > > Thanks! > Sören > > -----Ursprüngliche Nachricht----- > Von: Andrea Aime <and...@ge...> > Gesendet: Freitag, 31. Oktober 2025 15:25 > 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 > > Hi, > I second what Jody said, there was no plan to make the coexist, it's an > upgrade path. > However... I believe that a coexistence could be possible, the java > packages > are different, so by having ImageN use a different file name for the > registry files in META-INF, > from registryFile.jai to registryFile.imagen, a coexistence might be > possible, even if likely > wasteful (two separate image processing caches in memory are not the > greatest of ideas). > > A coexistence is just not in our plans, but since ImageN is not yet > available as 1.0, if DWD wants > to put the development effort to get it done, I would not be against it. > I see this applicable to the GeoServer 3.0 series. > > I would recommend switching existing software to ImageN though, we > prepared migration scripts > that should help in the endeavor. > > Regards, > > Andrea Aime > > > > > == > > > GeoServer Professional Services from the experts! > > Visit http://bit.ly/gs-services-us <http://bit.ly/gs-services-us> for > more information. > > > > == > > Ing. Andrea Aime > @geowolf > Technical Lead > > > > GeoSolutions Group > phone: +39 0584 962313 > > fax: +39 0584 1660272 > > mob: +39 339 8844549 > > > https://www.geosolutionsgroup.com/ < > https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+Ozs6OjQ2MTAyM2Y1MDU1NjQxZzFiOzUwMWA0ZjAwZzQwNzA6ZTY2NCV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&url=https%3a%2f%2fwww.geosolutionsgroup.com%2f> > > > http://twitter.com/geosolutions_it < > https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+MDplNTQ7ZzM6YTozNmU7NGY1OjtmZzdnYTIzYjIwYmJmNGU2MDBgZiV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+MDQla2dvPjM=&url=http%3a%2f%2ftwitter.com%2fgeosolutions_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 > > > > On Thu, Oct 30, 2025 at 5:29 PM 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:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+NDE1YDExNTs1ZjpnNTEwZzIyZmU7NmE7O2ZmZWFgYjJnMzA0NmY1NSV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&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:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+ZmVgNDplZTRlYWY0NWUzZ2BlMjA3M2UzZTU1MGdmNjQ6Zzc1MGdnNyV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&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:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+YGFhNzE3MmAxNDM1YmJlNjNhOzpiYTpiYjc6NGU6N2BiNTRiOjQyZiV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&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:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+Zmc0OmBnYDViNTA1NDdmMzMyNTQ6ZmIxYmcxNTJnNTMyNGJiNDU2NiV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users> > > > > > _______________________________________________ > GeoTools-GT2-Users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > |
|
From: Kalesse S. <Soe...@dw...> - 2025-11-04 07:10:53
|
Hi Andrea, That's exactly my point. I do assume that it was not intended for these two to coexist, but it should just work fine because there are two different registries and the operations interfaces are different, so in theory these two do not collide at all. That gives all users a good "workaround" to live with until applications and libraries have succeeded to migrate. And that's also exactly where my PR comes in. The three mentioned ImageN libraries (and only those three!) contain ServiceLoader definitions that are wrong. The register the ImageN operations at the JAI registry. That leads to class cast exceptions (wrong interfaces). That's the point that must definitely be fixed whatsoever. Now that fixed, here arises the second aspect: Right now you cannot mix standard ImageN and ServiceLoader registration. ImageN does not support that. It will fail to initialize if one operation had already been registered by that other means. So you must decide: either support multiple ways of registration in the ImageN core or decide upon one and let it go. Therefore my PR removes the three ServiceLoader definitions: 1) because they were wrong and 2) because that is the least invasive fix to make ImageN initialize correctly. The PR#119 was tested locally running GeoServer 2.2.8.0 and another application that uses JAI and it worked just fine. I hope you can agree that this is a proper fix and should be part in one of the next releases. For us it is a show-stopper for upgrading to GT 33.x / GS 2.28.x. Thanks! Sören -----Ursprüngliche Nachricht----- Von: Andrea Aime <and...@ge...> Gesendet: Freitag, 31. Oktober 2025 15:25 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 Hi, I second what Jody said, there was no plan to make the coexist, it's an upgrade path. However... I believe that a coexistence could be possible, the java packages are different, so by having ImageN use a different file name for the registry files in META-INF, from registryFile.jai to registryFile.imagen, a coexistence might be possible, even if likely wasteful (two separate image processing caches in memory are not the greatest of ideas). A coexistence is just not in our plans, but since ImageN is not yet available as 1.0, if DWD wants to put the development effort to get it done, I would not be against it. I see this applicable to the GeoServer 3.0 series. I would recommend switching existing software to ImageN though, we prepared migration scripts that should help in the endeavor. Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://bit.ly/gs-services-us <http://bit.ly/gs-services-us> for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions Group phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 https://www.geosolutionsgroup.com/ <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+Ozs6OjQ2MTAyM2Y1MDU1NjQxZzFiOzUwMWA0ZjAwZzQwNzA6ZTY2NCV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&url=https%3a%2f%2fwww.geosolutionsgroup.com%2f> http://twitter.com/geosolutions_it <https://ofcsg2dvf1.dwd.de/fmlurlsvc/?fewReq=:B:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+MDplNTQ7ZzM6YTozNmU7NGY1OjtmZzdnYTIzYjIwYmJmNGU2MDBgZiV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+MDQla2dvPjM=&url=http%3a%2f%2ftwitter.com%2fgeosolutions_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 On Thu, Oct 30, 2025 at 5:29 PM 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:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+NDE1YDExNTs1ZjpnNTEwZzIyZmU7NmE7O2ZmZWFgYjJnMzA0NmY1NSV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&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:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+ZmVgNDplZTRlYWY0NWUzZ2BlMjA3M2UzZTU1MGdmNjQ6Zzc1MGdnNyV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&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:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+YGFhNzE3MmAxNDM1YmJlNjNhOzpiYTpiYjc6NGU6N2BiNTRiOjQyZiV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&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:JVs5MjYyOSV1PjEtMyVqZz4zMjkzMiVwamRtYnd2cWY+Zmc0OmBnYDViNTA1NDdmMzMyNTQ6ZmIxYmcxNTJnNTMyNGJiNDU2NiV3PjI0NTI6MTM0OzolcmpnPjY6VUZSV3FGMzEyMTswLjY6VUZSV3FFMzEyMTswJXFgc3c+UGxmcWZtLUhib2ZwcGZDZ3RnLWdmJWA+NjEla2dvPjM=&url=https%3a%2f%2flists.sourceforge.net%2flists%2flistinfo%2fgeotools-gt2-users> |
|
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> |
|
From: Andrea A. <and...@ge...> - 2025-10-31 14:32:07
|
Hi, I second what Jody said, there was no plan to make the coexist, it's an upgrade path. However... I believe that a coexistence could be possible, the java packages are different, so by having ImageN use a different file name for the registry files in META-INF, from registryFile.jai to registryFile.imagen, a coexistence might be possible, even if likely wasteful (two separate image processing caches in memory are not the greatest of ideas). A coexistence is just not in our plans, but since ImageN is not yet available as 1.0, if DWD wants to put the development effort to get it done, I would not be against it. I see this applicable to the GeoServer 3.0 series. I would recommend switching existing software to ImageN though, we prepared migration scripts that should help in the endeavor. Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://bit.ly/gs-services-us for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions Group phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 https://www.geosolutionsgroup.com/ 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 On Thu, Oct 30, 2025 at 5:29 PM Kalesse Sören <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 and there is a PR > attached https://github.com/eclipse-imagen/imagen/pull/119. > > 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...> > Gesendet: Mittwoch, 22. Oktober 2025 20:57 > An: GeoTools Users <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: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... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > |
|
From: Jody G. <jod...@gm...> - 2025-10-31 08:02:41
|
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...> 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 and there is a PR > attached https://github.com/eclipse-imagen/imagen/pull/119. > > 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...> > Gesendet: Mittwoch, 22. Oktober 2025 20:57 > An: GeoTools Users <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: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... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > |
|
From: Kalesse S. <Soe...@dw...> - 2025-10-30 16:28:34
|
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 and there is a PR attached https://github.com/eclipse-imagen/imagen/pull/119. 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...> Gesendet: Mittwoch, 22. Oktober 2025 20:57 An: GeoTools Users <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: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. |
|
From: Jody G. <jod...@gm...> - 2025-10-22 18:57:30
|
The GeoTools team is pleased to announce the release <https://geotoolsnews.blogspot.com/2025/10/geotools-340-release.html> of the latest stable version of GeoTools 34.0 <https://sourceforge.net/projects/geotools/files/GeoTools%2034%20Releases/34.0/>. This release is available from the repo.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://docs.geotools.org/stable/userguide/welcome/upgrade.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. |
|
From: Roar B. <roa...@gm...> - 2025-09-05 06:07:50
|
Hi, I'm trying to read a Sentinel TIFF image using GeoTiffReader and CogSourceSPIProvider. I've gotten the url's from a STAC and the url for the visual asset is working fine. The problem is when I try to read a single band. In this case B04. The error I get is "Bad value for bits!". After some debugging I see that the number of bits is 15. Here is the stack trace: java.lang.RuntimeException: Couldn't read url: https://sentinel2l2a01.blob.core.windows.net/sentinel2-l2/32/V/PM/2025/08/19/S2C_MSIL2A_20250819T104041_N0511_R008_T32VPM_20250819T155312.SAFE/GRANULE/L2A_T32VPM_A004983_20250819T104040/IMG_DATA/R10m/T32VPM_20250819T104041_B04_10m.tif at no.roarbra.PlanetaryCogReader.openReader(PlanetaryCogReader.java:70) at no.roarbra.SentinelViewer.main(SentinelViewer.java:21) Caused by: org.geotools.api.data.DataSourceException: Bad value for bits! at org.geotools.gce.geotiff.GeoTiffReader.<init>(GeoTiffReader.java:281) at no.roarbra.PlanetaryCogReader.openReader(PlanetaryCogReader.java:68) ... 1 more Caused by: org.geotools.api.data.DataSourceException: Bad value for bits! at org.geotools.gce.geotiff.GeoTiffReader.getHRInfo(GeoTiffReader.java:549) at org.geotools.gce.geotiff.GeoTiffReader.<init>(GeoTiffReader.java:268) ... 2 more Caused by: java.lang.IllegalArgumentException: Bad value for bits! at java.desktop/javax.imageio.ImageTypeSpecifier$Grayscale.<init>(ImageTypeSpecifier.java:584) at java.desktop/javax.imageio.ImageTypeSpecifier.createGrayscale(ImageTypeSpecifier.java:685) at it.geosolutions.imageio.plugins.tiff.TIFFDecompressor.getRawImageTypeSpecifier(TIFFDecompressor.java:1260) at it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReader.getImageTypes(TIFFImageReader.java:1365) at org.geotools.gce.geotiff.GeoTiffReader.getHRInfo(GeoTiffReader.java:368) ... 3 more And this is part of my code (the exception is at the last line): String token = readToken(); URL imageUrl = new URI(assetUrl + "?" + token).toURL(); HttpRangeReader rangeReader = new HttpRangeReader(imageUrl.toURI(), CogImageReadParam.DEFAULT_HEADER_LENGTH); CogSourceSPIProvider input = new CogSourceSPIProvider(new BasicAuthURI(imageUrl, false), new CogImageReaderSpi(), new CogImageInputStreamSpi(), rangeReader.getClass().getName()); return new GeoTiffReader(input, new Hints(Hints.SKIP_EXTERNAL_OVERVIEWS, true)); Best regards, Roar Brænden |
|
From: Andrea A. <and...@ge...> - 2025-09-03 08:02:03
|
You can access Jiffle the easy way by using the Jiffle process <https://github.com/geotools/geotools/blob/main/modules/unsupported/process-raster/src/main/java/org/geotools/process/raster/JiffleProcess.java> Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://bit.ly/gs-services-us for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions Group phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 https://www.geosolutionsgroup.com/ 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 On Wed, Sep 3, 2025 at 8:02 AM Jody Garnett <jod...@gm...> wrote: > Hi, > > This is one of the examples of the Jiffle "raster calculator" operator > approach. > > 9 <Transformation>10 <ogc:Function name="ras:Jiffle">11 <ogc:Function name="parameter">12 <ogc:Literal>coverage</ogc:Literal>13 </ogc:Function>14 <ogc:Function name="parameter">15 <ogc:Literal>script</ogc:Literal>16 <ogc:Literal>17 nir = src[7];18 vir = src[3];19 dest = (nir - vir) / (nir + vir);20 </ogc:Literal>21 </ogc:Function>22 </ogc:Function>23 </Transformation> > > See > https://docs.geoserver.org/latest/en/user/styling/sld/extensions/rendering-transform.html#running-map-algebra-on-the-fly-using-jiffle > > > - - > Jody Garnett > > > On Sep 2, 2025 at 10:47:35 PM, Roar Brænden <roa...@gm...> > wrote: > >> Hi, >> >> I would like to compute NDVI from a Sentinel 2 scene using bands B04 and >> B08. I asked Copilot if he had a suggestion how to do it, and here is its >> answer. >> >> To compute NDVI (Normalized Difference Vegetation Index) using Geotools >> from two GridCoverage2D objects (representing the NIR and Red bands), >> use the Operations class to perform raster math: >> >> 1. Subtract Red from NIR: nir - red >> 2. Add NIR and Red: nir + red >> 3. Divide the difference by the sum: (nir - red) / (nir + red) >> >> Here is how you can do it: >> >> // Assume redCoverage and nirCoverage are your GridCoverage2D objectsOperations op = new Operations(null); >> // Step 1: Compute numerator (nir - red)GridCoverage2D numerator = (GridCoverage2D) op.subtract(nirCoverage, redCoverage); >> // Step 2: Compute denominator (nir + red)GridCoverage2D denominator = (GridCoverage2D) op.add(nirCoverage, redCoverage); >> // Step 3: NDVI = (nir - red) / (nir + red)GridCoverage2D ndviCoverage = (GridCoverage2D) op.divide(numerator, denominator); >> >> This will give you a new GridCoverage2D containing the NDVI values. >> >> >> So far, so good. Exactly as I would have thought. The problem is that >> both op.subtract and op.divide doesn't exists. It is only possible to >> subtract by a constant or divide by a constant, not by a coverage. >> That seems strange because add and multiply have functions for both >> converage and constants and two coverages. >> Do anyone have an explanation for that? >> >> And I know this is old code, and someone might suggest other >> alternatives. That would be fine as well, but still the code is there and >> bothers me. >> >> Best regards, >> Roar Brænden >> >> >> _______________________________________________ >> GeoTools-GT2-Users mailing list >> Geo...@li... >> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >> > _______________________________________________ > GeoTools-GT2-Users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > |
|
From: Jody G. <jod...@gm...> - 2025-09-03 06:01:07
|
Hi,
This is one of the examples of the Jiffle "raster calculator" operator
approach.
9 <Transformation>10 <ogc:Function
name="ras:Jiffle">11 <ogc:Function name="parameter">12
<ogc:Literal>coverage</ogc:Literal>13
</ogc:Function>14 <ogc:Function name="parameter">15
<ogc:Literal>script</ogc:Literal>16 <ogc:Literal>17
nir = src[7];18 vir = src[3];19
dest = (nir - vir) / (nir + vir);20 </ogc:Literal>21
</ogc:Function>22 </ogc:Function>23
</Transformation>
See
https://docs.geoserver.org/latest/en/user/styling/sld/extensions/rendering-transform.html#running-map-algebra-on-the-fly-using-jiffle
- -
Jody Garnett
On Sep 2, 2025 at 10:47:35 PM, Roar Brænden <roa...@gm...>
wrote:
> Hi,
>
> I would like to compute NDVI from a Sentinel 2 scene using bands B04 and
> B08. I asked Copilot if he had a suggestion how to do it, and here is its
> answer.
>
> To compute NDVI (Normalized Difference Vegetation Index) using Geotools
> from two GridCoverage2D objects (representing the NIR and Red bands), use
> the Operations class to perform raster math:
>
> 1. Subtract Red from NIR: nir - red
> 2. Add NIR and Red: nir + red
> 3. Divide the difference by the sum: (nir - red) / (nir + red)
>
> Here is how you can do it:
>
> // Assume redCoverage and nirCoverage are your GridCoverage2D objectsOperations op = new Operations(null);
> // Step 1: Compute numerator (nir - red)GridCoverage2D numerator = (GridCoverage2D) op.subtract(nirCoverage, redCoverage);
> // Step 2: Compute denominator (nir + red)GridCoverage2D denominator = (GridCoverage2D) op.add(nirCoverage, redCoverage);
> // Step 3: NDVI = (nir - red) / (nir + red)GridCoverage2D ndviCoverage = (GridCoverage2D) op.divide(numerator, denominator);
>
> This will give you a new GridCoverage2D containing the NDVI values.
>
>
> So far, so good. Exactly as I would have thought. The problem is that both
> op.subtract and op.divide doesn't exists. It is only possible to subtract
> by a constant or divide by a constant, not by a coverage.
> That seems strange because add and multiply have functions for both
> converage and constants and two coverages.
> Do anyone have an explanation for that?
>
> And I know this is old code, and someone might suggest other alternatives.
> That would be fine as well, but still the code is there and bothers me.
>
> Best regards,
> Roar Brænden
>
>
> _______________________________________________
> GeoTools-GT2-Users mailing list
> Geo...@li...
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
|
|
From: Roar B. <roa...@gm...> - 2025-09-03 05:47:45
|
Hi, I would like to compute NDVI from a Sentinel 2 scene using bands B04 and B08. I asked Copilot if he had a suggestion how to do it, and here is its answer. To compute NDVI (Normalized Difference Vegetation Index) using Geotools from two GridCoverage2D objects (representing the NIR and Red bands), use the Operations class to perform raster math: Subtract Red from NIR: nir - red Add NIR and Red: nir + red Divide the difference by the sum: (nir - red) / (nir + red) Here is how you can do it: // Assume redCoverage and nirCoverage are your GridCoverage2D objects Operations op = new Operations(null); // Step 1: Compute numerator (nir - red) GridCoverage2D numerator = (GridCoverage2D) op.subtract(nirCoverage, redCoverage); // Step 2: Compute denominator (nir + red) GridCoverage2D denominator = (GridCoverage2D) op.add(nirCoverage, redCoverage); // Step 3: NDVI = (nir - red) / (nir + red) GridCoverage2D ndviCoverage = (GridCoverage2D) op.divide(numerator, denominator); This will give you a new GridCoverage2D containing the NDVI values. So far, so good. Exactly as I would have thought. The problem is that both op.subtract and op.divide doesn't exists. It is only possible to subtract by a constant or divide by a constant, not by a coverage. That seems strange because add and multiply have functions for both converage and constants and two coverages. Do anyone have an explanation for that? And I know this is old code, and someone might suggest other alternatives. That would be fine as well, but still the code is there and bothers me. Best regards, Roar Brænden |
|
From: Ian T. <ijt...@gm...> - 2025-08-19 14:55:03
|
This does look like a bug, probably introduced the last time I tried to fix measure and Z coordinates You can keep an eye on progress at https://osgeo-org.atlassian.net/browse/GEOT-7801 Ian On Mon, 18 Aug 2025 at 11:53, sunish <sun...@gm...> wrote: > > Please find a sample shape file attached with this mail. > > Thank You, > > On Mon, Aug 18, 2025 at 4:11 PM Ian Turton <ijt...@gm...> wrote: > >> can you please share a small copy of the data (or a subset) so we can >> test the issue >> >> Ian >> >> On Mon, 18 Aug 2025 at 11:21, sunish <sun...@gm...> wrote: >> >>> The issue exists with the latest Geotools version 33.2 when trying to >>> read this shape file. >>> >>> On Sun, Aug 17, 2025 at 4:35 PM Mark Prins <mc....@gm...> wrote: >>> >>>> >>>> Op 14-08-2025 om 09:44 schreef sunish: >>>> > Geotools Version: 28.2 >>>> >>>> Can you try with a supported version? >>>> >>>> - M >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> GeoTools-GT2-Users mailing list >>>> Geo...@li... >>>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >>>> >>> _______________________________________________ >>> GeoTools-GT2-Users mailing list >>> Geo...@li... >>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >>> >> >> >> -- >> Ian Turton >> > -- Ian Turton |
|
From: Ian T. <ijt...@gm...> - 2025-08-18 10:41:17
|
can you please share a small copy of the data (or a subset) so we can test the issue Ian On Mon, 18 Aug 2025 at 11:21, sunish <sun...@gm...> wrote: > The issue exists with the latest Geotools version 33.2 when trying to read > this shape file. > > On Sun, Aug 17, 2025 at 4:35 PM Mark Prins <mc....@gm...> wrote: > >> >> Op 14-08-2025 om 09:44 schreef sunish: >> > Geotools Version: 28.2 >> >> Can you try with a supported version? >> >> - M >> >> >> >> >> _______________________________________________ >> GeoTools-GT2-Users mailing list >> Geo...@li... >> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >> > _______________________________________________ > GeoTools-GT2-Users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > -- Ian Turton |
|
From: sunish <sun...@gm...> - 2025-08-18 08:02:16
|
The issue exists with the latest Geotools version 33.2 when trying to read this shape file. On Sun, Aug 17, 2025 at 4:35 PM Mark Prins <mc....@gm...> wrote: > > Op 14-08-2025 om 09:44 schreef sunish: > > Geotools Version: 28.2 > > Can you try with a supported version? > > - M > > > > > _______________________________________________ > GeoTools-GT2-Users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > |
|
From: Mark P. <mc....@gm...> - 2025-08-17 11:04:06
|
Op 14-08-2025 om 09:44 schreef sunish: > Geotools Version: 28.2 Can you try with a supported version? - M |
|
From: Ian T. <ijt...@gm...> - 2025-08-14 09:24:50
|
Does your shapefile actually contain XYM points? Can you share the file or
at least the print out of the schema
Ian
On Thu, 14 Aug 2025 at 08:45, sunish <sun...@gm...> wrote:
> I am getting Invalid ordinate index: 3 Exception while reading a shape
> file.
> Geotools Version: 28.2
>
> I have this code for reading shape file features. Please help.
>
> private void fileDataStoreTest() {
>
> String filePath ="naksha_vadakara_build.shp";
> File file = new File(filePath);
>
>
> try {
> FileDataStore fileDataStore = FileDataStoreFinder.getDataStore(file);
>
>
> Hints hints = new Hints(Hints.JTS_COORDINATE_SEQUENCE_FACTORY,
> PackedCoordinateSequenceFactory.DOUBLE_FACTORY);
>
> System.out.println(fileDataStore.getSchema().getTypeName());
> System.out.println(fileDataStore.getSchema().getAttributeDescriptors());
> System.out.println(fileDataStore.getSchema().getCoordinateReferenceSystem());
> List<AttributeDescriptor> descriptors = fileDataStore.getSchema().getAttributeDescriptors();
> for(AttributeDescriptor disc :descriptors ){
> System.out.println(disc.getLocalName()+" "+disc.getType().getBinding().getSimpleName());
> }
> System.out.println(fileDataStore.getFeatureSource().getBounds());
> System.out.println(CRS.lookupEpsgCode(fileDataStore.getSchema().getCoordinateReferenceSystem(),true));
>
> SimpleFeatureSource src = fileDataStore.getFeatureSource();
> SimpleFeatureCollection col = src.getFeatures();
> SimpleFeatureIterator itr = col.features();
> // while (itr.hasNext()) {
>
> SimpleFeature f = itr.next();
> System.out.println(f.getDefaultGeometry().toString());
>
> // }
> itr.close();
> fileDataStore.dispose();
>
> } catch (IOException e) {
> throw new RuntimeException(e);
> } catch (FactoryException e) {
> throw new RuntimeException(e);
> }
>
> }
>
> It is throwing this error.
>
> Exception in thread "main" java.lang.IllegalArgumentException: Invalid
> ordinate index: 3
> at
> org.locationtech.jts.geom.CoordinateXYM.setOrdinate(CoordinateXYM.java:156)
> at
> org.locationtech.jts.geom.impl.CoordinateArraySequence.setOrdinate(CoordinateArraySequence.java:309)
> at
> org.geotools.data.shapefile.shp.PolygonHandler.readCoordinates(PolygonHandler.java:316)
> at
> org.geotools.data.shapefile.shp.PolygonHandler.read(PolygonHandler.java:142)
> at
> org.geotools.data.shapefile.shp.ShapefileReader$Record.shape(ShapefileReader.java:114)
> at
> org.geotools.data.shapefile.ShapefileFeatureReader.getGeometry(ShapefileFeatureReader.java:239)
> at
> org.geotools.data.shapefile.ShapefileFeatureReader.hasNext(ShapefileFeatureReader.java:182)
> at
> org.geotools.data.shapefile.ShapefileFeatureReader.next(ShapefileFeatureReader.java:151)
> at
> org.geotools.data.shapefile.ShapefileFeatureReader.next(ShapefileFeatureReader.java:48)
> at
> org.geotools.data.store.ContentFeatureCollection$WrappingFeatureIterator.next(ContentFeatureCollection.java:154)
> at
> org.geotools.data.store.ContentFeatureCollection$WrappingFeatureIterator.next(ContentFeatureCollection.java:134)
> _______________________________________________
> GeoTools-GT2-Users mailing list
> Geo...@li...
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
--
Ian Turton
|
|
From: sunish <sun...@gm...> - 2025-08-14 07:44:48
|
I am getting Invalid ordinate index: 3 Exception while reading a shape file.
Geotools Version: 28.2
I have this code for reading shape file features. Please help.
private void fileDataStoreTest() {
String filePath ="naksha_vadakara_build.shp";
File file = new File(filePath);
try {
FileDataStore fileDataStore =
FileDataStoreFinder.getDataStore(file);
Hints hints = new Hints(Hints.JTS_COORDINATE_SEQUENCE_FACTORY,
PackedCoordinateSequenceFactory.DOUBLE_FACTORY);
System.out.println(fileDataStore.getSchema().getTypeName());
System.out.println(fileDataStore.getSchema().getAttributeDescriptors());
System.out.println(fileDataStore.getSchema().getCoordinateReferenceSystem());
List<AttributeDescriptor> descriptors =
fileDataStore.getSchema().getAttributeDescriptors();
for(AttributeDescriptor disc :descriptors ){
System.out.println(disc.getLocalName()+"
"+disc.getType().getBinding().getSimpleName());
}
System.out.println(fileDataStore.getFeatureSource().getBounds());
System.out.println(CRS.lookupEpsgCode(fileDataStore.getSchema().getCoordinateReferenceSystem(),true));
SimpleFeatureSource src = fileDataStore.getFeatureSource();
SimpleFeatureCollection col = src.getFeatures();
SimpleFeatureIterator itr = col.features();
// while (itr.hasNext()) {
SimpleFeature f = itr.next();
System.out.println(f.getDefaultGeometry().toString());
// }
itr.close();
fileDataStore.dispose();
} catch (IOException e) {
throw new RuntimeException(e);
} catch (FactoryException e) {
throw new RuntimeException(e);
}
}
It is throwing this error.
Exception in thread "main" java.lang.IllegalArgumentException: Invalid
ordinate index: 3
at
org.locationtech.jts.geom.CoordinateXYM.setOrdinate(CoordinateXYM.java:156)
at
org.locationtech.jts.geom.impl.CoordinateArraySequence.setOrdinate(CoordinateArraySequence.java:309)
at
org.geotools.data.shapefile.shp.PolygonHandler.readCoordinates(PolygonHandler.java:316)
at
org.geotools.data.shapefile.shp.PolygonHandler.read(PolygonHandler.java:142)
at
org.geotools.data.shapefile.shp.ShapefileReader$Record.shape(ShapefileReader.java:114)
at
org.geotools.data.shapefile.ShapefileFeatureReader.getGeometry(ShapefileFeatureReader.java:239)
at
org.geotools.data.shapefile.ShapefileFeatureReader.hasNext(ShapefileFeatureReader.java:182)
at
org.geotools.data.shapefile.ShapefileFeatureReader.next(ShapefileFeatureReader.java:151)
at
org.geotools.data.shapefile.ShapefileFeatureReader.next(ShapefileFeatureReader.java:48)
at
org.geotools.data.store.ContentFeatureCollection$WrappingFeatureIterator.next(ContentFeatureCollection.java:154)
at
org.geotools.data.store.ContentFeatureCollection$WrappingFeatureIterator.next(ContentFeatureCollection.java:134)
|
|
From: Jody G. <jod...@gm...> - 2025-07-28 14:34:21
|
Hi Topias, I am not close enough to this code to know if it is a bug, but I like that your fix includes an example. It would be preferable to know exactly where CRS.transform is producing a null reference, perhaps by stepping through with a debugger, to determine if that code could be made more robust. Your example does not show the same request passing or failing based on interpolation method. - - Jody Garnett On Mar 18, 2025 at 10:54:20 AM, Topias Rusanen <top...@fl...> wrote: > Hello, > > > > I’m currently experiencing issues when rendering coverages with bicubic > interpolation on GeoTools 32.1. > > > > When rendering my coverage, the API returns a null reference, which per > documentation would state that the coverage does not intersect the area to > be rendered. However, if I disable interpolation, the area is rendered fine > albeit the result is ugly. > > > > I created a fork of the main repo and was able to reproduce the issue in > unit tests. A simple CRS transformation would solve my issue, see the > modified unit test and a fix for the rendering issue in here: > https://github.com/FluiditLtd/geotools/commit/9a8fd3ebdb4321957c7f7dc10d290e36b25f7d04 > > > > My question is: Is this a bug? If this is indeed a bug, I can create a PR > from the fork if the fix is deemed adequate. > > > > Best regards, > > > > Topias Rusanen > > Software Team Lead > > Fluidit Oy > _______________________________________________ > GeoTools-GT2-Users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > |
|
From: Jody G. <jod...@gm...> - 2025-06-09 15:13:20
|
Security advisory is now published, and blog posts updated: CVE-2025-30220 <https://github.com/geotools/geotools/security/advisories/GHSA-826p-4gcg-35vw> XML External Entity (XXE) Processing Vulnerability in XSD schema handling GEOT-7760 <https://osgeo-org.atlassian.net/browse/GEOT-7760> CVE-2025-30220: XXE Processing Vulnerability in XSD schema handling (9.9 Critical) - - Jody Garnett On May 13, 2025 at 10:36:00 AM, Jody Garnett <jod...@gm...> wrote: > Several GeoTools release are now available: > > > - GeoTools 33.1 Released > <https://geotoolsnews.blogspot.com/2025/05/geotools-331-released.html> > (release notes <https://github.com/geotools/geotools/releases/tag/33.1> > ) > - GeoTools 32.3 Released > <https://geotoolsnews.blogspot.com/2025/05/geotools-323-released.html> > (release notes <https://github.com/geotools/geotools/releases/tag/32.3> > ) > - GeoTools 31.7 Released > <https://geotoolsnews.blogspot.com/2025/05/geotools-317-released.html> > (release notes <https://github.com/geotools/geotools/releases/tag/31.7> > ) > > > Release artifacts are available source forge > <https://sourceforge.net/projects/geotools/files/> and maven repository. > > *Security considerations* > > These releases are being made concurrently to address a security advisory, > scheduled for public disclosure Monday 2 June 2025. > - - > GeoTools Project Management Committee > |
|
From: Jody G. <jod...@gm...> - 2025-05-13 17:36:15
|
Several GeoTools release are now available: - GeoTools 33.1 Released <https://geotoolsnews.blogspot.com/2025/05/geotools-331-released.html> (release notes <https://github.com/geotools/geotools/releases/tag/33.1>) - GeoTools 32.3 Released <https://geotoolsnews.blogspot.com/2025/05/geotools-323-released.html> (release notes <https://github.com/geotools/geotools/releases/tag/32.3>) - GeoTools 31.7 Released <https://geotoolsnews.blogspot.com/2025/05/geotools-317-released.html> (release notes <https://github.com/geotools/geotools/releases/tag/31.7>) Release artifacts are available source forge <https://sourceforge.net/projects/geotools/files/> and maven repository. *Security considerations* These releases are being made concurrently to address a security advisory, scheduled for public disclosure Monday 2 June 2025. - - GeoTools Project Management Committee |