Unable to start GeoServer 2.27.x with last version of COG extension

Hello,

Apparently the last changes on the 2.27.x branch for the COG extension has introduced a regression preventing GeoServer to start. The error is:
Caused by: java.lang.NoSuchMethodError: 'void org.geoserver.config.util.XStreamPersister.registerBriefMapComplexType(java.lang.String, java.lang.Class)'

at org.geoserver.cog.CogSettingsXStreamInitializer.init(CogSettingsXStreamInitializer.java:16)

at org.geoserver.config.util.XStreamPersisterFactory.buildPersister(XStreamPersisterFactory.java:90)

at org.geoserver.config.util.XStreamPersisterFactory.createXMLPersister(XStreamPersisterFactory.java:54)

at org.geoserver.security.GeoServerSecurityManager.buildPersister(GeoServerSecurityManager.java:2574)

at org.geoserver.security.GeoServerSecurityManager.buildGlobalPersister(GeoServerSecurityManager.java:2544)

at org.geoserver.security.GeoServerSecurityManager.globalPersister(GeoServerSecurityManager.java:2538)

at org.geoserver.security.GeoServerSecurityManager.loadMasterPasswordConfig(GeoServerSecurityManager.java:2595)

at org.geoserver.security.GeoServerSecurityManager.<init>(GeoServerSecurityManager.java:301)

at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)

at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)

at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)

at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:213)

... 79 more

If I remove the extension my geoserver docker image works nicely (but I need it for this environment).

I think it is related to this commit: [Backport 2.27.x] [GEOS-11917] INSPIRE configuration does not get pro… · geoserver/geoserver@1223f7e · GitHub

Regards
Alexandre

I tried to run the 2.27.2 version. Is a 2.27.3 version planned to be released?

Release Schedule · geoserver/geoserver Wiki · GitHub says 2025-10-18

what about running a snapshot of geoserver as you seem to be running a snapshot version of the plugin, or build and package the plugin from the 2.27.2 tag

I run the snapshot version of the plugin because for a community extension it is the only available version to download. There is no snapshot version of 2.27 as docker image, only a 2.28 version.

I think I will have to build the extension with the right version.

Alexandre

There has bene indeed a method rename to fix a tipo (I was not happy to see It but the other reviewer insisted on it).
Community modules are exposed to this kind of issue when you mix a release version of Geoserver with a community module. Best course of action is to push funding towards getting the module up to extension status. The COG module has two issues left: handling large COG files efficiently, without having to set a system variable, and the online testing (that’s missing). Packaging is also a issue, cloud libraries have a large, unpredictable across versions, set of dependencies. We’d also need to run online tests against the module zip packages

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

Il gio 11 set 2025, 16:23 Alex Gacon via OSGeo Discourse <noreply@discourse.osgeo.org> ha scritto:

AlexGacon
September 11

I run the snapshot version of the plugin because for a community extension it is the only available version to download. There is no snapshot version of 2.27 as docker image, only a 2.28 version.

I think I will have to build the extension with the right version.

Alexandre


Visit Topic or reply to this email to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, click here.

Daniele Romagnoli today reverted the API change in the stable (2.27.x) and maintenance (2.26.x) series, starting tomorrow nightly builds of community modules should be back to compatible with the 2.27.2 release.

That said, if anyone here depends on a community module, I would strongly suggest to work towards getting the modules in supported land (and yes, that takes either your development hours, or funding).

Cheers
Andrea