StackOverflowError caused by Secure Catalog decorators

Description

In the context of a Boundless Exchange deployment, over time, Layers in GeoServer would start to throw StackOverflowErrors when performing GetCapabilities and GetMap calls. If unaddressed, eventually trying to navigate to the Layer list page or the Layer Preview page in GeoServer would cause StackOverflowErrors as well. It was discovered that reloading the Catalog would alleviate the symptoms for a while. However, over time, the symptoms would pop back up.

The StackOverflowErrors were observed in both Java serialization and deserialization of DataStoreInfo objects related to the layers, specifically SecuredDataStoreInfo object instances (see attached logs).

Environment

OS: Centos 7
GeoServer: 2.12.2
Java: 1.8.0_161

This is in the context of a Boundless Exchange deployment based on GeoNode.

Attachments

2

Activity

Erik Merkle 
May 11, 2018 at 7:32 PM

Thanks Andrea!

Erik Merkle 
May 11, 2018 at 6:38 PM

Based on the tags, the fix for this is fully in 2.12.3. Release 2.13.0 did not get all of the fix, but 2.13.1 will have all the commits. All the commits are in 2.14.x, which has not had a release as of yet that I can see.

Andrea Aime 
May 11, 2018 at 4:18 PM

So what are the "fix for" versions?

Erik Merkle 
May 10, 2018 at 2:09 PM

This issue has been fixed as off the following PRs:
https://github.com/geoserver/geoserver/pull/2771
https://github.com/geoserver/geoserver/pull/2805

Fixes were backported into GeoServer 2.12.x and GeoServer 2.13.x as well.

Fixed

Details

Assignee

Reporter

Affects versions

Components

Priority

Created February 27, 2018 at 4:30 PM
Updated November 15, 2021 at 10:09 AM
Resolved May 11, 2018 at 7:31 PM